-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useKTX2() seems not to work #1860
Comments
Having the same issue here, same specs. |
This needs more attention. |
same issue here. |
Same issue here :). Meanwhile, I've found a way to make it work. Just change the KTX2Loader to use threejs default instead of three-stdib. This is the code that worked for me:
It pays all the effort. I got a huge memory optimization. From 20MB VRAM usage for each mesh to 2.2 MB VRAM! It is fantastic! |
Same issue here. Did anybody find a solution that works globally (also for useGLTF)? |
Fix it please :) |
Environment:
Problem description:
When attempting to load a KTX2 texture using
useKTX2('my_texture_path')
, the console throws a ReferenceError:_KTX2Loader is not defined
, preventing the successful loading of KTX2 textures.Full error log:
The example provided in the documentation does not seem to work either (https://drei.pmnd.rs/?path=/docs/loaders-ktx2--docs).
I have followed the standard setup and installation procedures for three, @react-three/fiber, and @react-three/drei as recommended in the docs.
The text was updated successfully, but these errors were encountered: