[react-native]: load GLTF model with bin file separately #1225
Unanswered
lexengineer
asked this question in
Q&A
Replies: 1 comment 2 replies
-
you cant use three loaders in react-native, they are all using dom apis, xhrrequests, etc. expo-gl has their own forks. if these understand gltf with separate assets i do not know, i would always pack them anyway. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone 👋
So I am facing an issue when I try to load
gltf
model with standalonebin
file using aGLTFLoader
fromThree.js
within myreact-native
project, the error is the following:THREE.GLTFLoader: Failed to load buffer model.bin
I assume this is because there is no
ArrayBuffer
withinreact-native
environment and just wondering how to solve this, the only working solution I saw for so far is loading aglb
model without textures, maybe it may work in the same way ifgltf
has no textures specified but why it complains aboutbin
file then?Any advice is appreciated, thank you 👍
Beta Was this translation helpful? Give feedback.
All reactions