ReferenceError: Property "Worker" doesn't exist #3349
Replies: 2 comments 2 replies
-
|
Even without workers, DRACO relies on a WASM decoder, which needs JIT to work. JIT is forbidden in app stores, and so interfaces like WASM are not implemented in react-native. If you want to implement something yourself via JSI, I would recommend https://github.com/zeux/meshoptimizer instead since it retains GPU optimizations, which are critical for mobile; DRACO perturbs this as part of its file size reduction. It's possible to implement this yourself in JS also as per https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_meshopt_compression/README.md. |
Beta Was this translation helpful? Give feedback.
-
|
@thechaudharysab did you found the solution? Could you share it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
.glbthat I'm trying to load in my react-native app, but I'm gettingReferenceError: Property "Worker" doesn't exist. The file I understand is DRACO compressed and it was exported from blender.And I'm loading it as:
How do I load my Draco compressed
glbsuccessfully?Beta Was this translation helpful? Give feedback.
All reactions