ReferenceError: Property "Worker" doesn't exist #3349
Unanswered
thechaudharysab
asked this question in
Q&A
Replies: 1 comment
-
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.
0 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.
-
I have a
.glb
that 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
glb
successfully?Beta Was this translation helpful? Give feedback.
All reactions