-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
React Native - unable to load .glb files with useGLTF Android #2997
Comments
I get the same error on Android simulator with 18.14.1 It works on device on iOS and is the same as usual (no frames) on iOS simulator. Okay - same issue, same error with useLoader and GTLFLoader.
Also not sure if this is helpful but the error is different with the patch commit from last week, which gives the error: |
@CodyJasonBennett Yes this only happens on Android, in the APK file (generated by assembleRelease) the application crashes (Force Close) and during development the error is like the previous screenshots. On physical iOS devices and the iOS simulator it runs fine (on the iOS simulator it just goes blank I think this is a known issue ? #2546 (comment) ) as in the screenshots below |
iOS simulator is known not to render under the OpenGL backend. Frames will only sometimes flush, so you'll need to test on a real device for animation. I'll be continuing this in #2992 so we can consolidate efforts. They have the same underlying issue, APK aside. |
I got an error when importing a .glb file using useGLTF from @react-three/drei in react native.
The .glb file is just a cube and I used gltfjsx to convert it to a jsx file
I don't know if this is related to #2992 or not
Here is the code in my App.tsx file
This is the code generated by gltfjsx, I only added the import for modelPath
These are the dependencies in this project
This is my metro.config.js
and these are screenshots of the error
Thankyou
The text was updated successfully, but these errors were encountered: