-
Notifications
You must be signed in to change notification settings - Fork 725
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 :) |
Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward. Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar. Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project! |
We’re closing this issue to keep our project manageable and make room for other active work, but we truly appreciate your effort and contribution. If you’d like to continue working on this, please feel free to re-open it or reach out on Discord — our community is always ready to support you. Thanks again for helping us stay organized and for understanding our approach! |
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: