Closed devirtua closed 9 months ago
DRACO can't be used with react-native, as it relies on both workers but importantly WASM/JIT (EU regulations on browser ban may enable this, since it's just iOS with this restriction). You'd need to implement http://github.com/google/draco over JSI and write the loader to interface with it. This is not something this library can support. I would suggest forgoing DRACO or meshopt on native, and/or rewriting the latter's encoders in JS or over JSI.
Thank you for the clear explanation.
I am using threejs, @react-three/fiber, @react-three/drei on react native. Trying to load compressed gltf model but getting
Reference Error: Property 'Worker' doesn't exist
error.Here is the related code:
There are the dependencies: