GLTF draco compression (decoderModule is undefined)

I was trying to compress my GLB models with draco, but it seems to error with decoderModule is undefined.
My models do load in these viewers: https://gltf-viewer.donmccurdy.com/ https://sandbox.babylonjs.com/, but not in https://playcanvas.github.io/playcanvas-gltf/viewer/index.html.

The model is exported through Blender, with compression checked. I’ve also tried converting my normal GLB with the gltf-pipeline npm package, but same result.

Reading this post, it looks like it should be possible? [SOLVED] PlayCanvas glTF DRACO compression support

Is this a bug or am I just doing something wrong again? :slight_smile:

Do you have the wasm draco module loaded?

You can find it here: https://github.com/playcanvas/playcanvas-viewer/tree/master/lib/draco

1 Like

Sorry, I assumed https://playcanvas.github.io/playcanvas-gltf/viewer/index.html was supposed to work. It does work if I pull and localhost the github project you sent.
Copying the wasm-loader to my own project works too. It works fine, sorry for opening this topic.

Yeah, that’s on old viewer. We are looking to properly upload the the new version soon :slight_smile: