engine icon indicating copy to clipboard operation
engine copied to clipboard

Removing draco wasm module stops engine example from loading

Open mvaligursky opened this issue 2 years ago • 0 comments

Repro steps:

  1. remove draco config code from multi-view or post-effects engine example:
        pc.WasmModule.setConfig('DracoDecoderModule', {
            glueUrl: '/static/lib/draco/draco.wasm.js',
            wasmUrl: '/static/lib/draco/draco.wasm.wasm',
            fallbackUrl: '/static/lib/draco/draco.js'
        });
  1. reaload the example. The example does not load, nor we get any warnings / errors in the console. It seems the code is not even hitting this line in the glb-parser, where I assumed could be a problem:
     const decoderModule = dracoDecoderInstance || window.DracoDecoderModule;

I suspect our users might hit this in their applications, and logging some useful errors would be helpful.

mvaligursky avatar Jul 08 '22 16:07 mvaligursky