Rechi
December 9, 2022, 5:44pm
1
Building my own model-loader I’ve stumbled across the following issue:
I’ve exported a model from blender to .glb using compression:
https://xpe.at/testfiles/models/mercury-statue_05.glb
and without compression:
https://xpe.at/testfiles/models/mercury-statue_06.glb
Using the gltf-viewer both objects work, see:
Using the gltf-Loader example it did work with the uncompressed file, but not with the compressed one.
See:
https://playcanvas.com/editor/scene/1611735
(the glbUrl is currently set at the not working https://xpe.at/testfiles/models/mercury-statue_06.glb )
Is there something I’m missing?
Thanks for any heads up
Rechi
December 10, 2022, 12:24am
3
I used Blenders internal export tool, as far as I can tell,
this is indeed Google draco compression, checking here:
https://docs.blender.org/manual/en/3.4/addons/import_export/scene_gltf2.html#compression
I assume, this is probably not supported using glb-utils?
If I have to stick to uncompressed, that’s no deal-breaker, I was just wondering as the glTF Viewer was able to load the compressed file.
yaustar
December 10, 2022, 2:34pm
4
If its Draco, you will need the WASM runtime here Loading Draco Compressed GLBs | Learn PlayCanvas
1 Like
Rechi
December 10, 2022, 3:32pm
5
Perfect!
I’ve added the runtime, and it now works perfectly!
Thanks for your help!