Meshopt support

Hi.

I’m trying to load a Meshopt compressed model into my scene but it shows up scrambled. If I try to view it in the viewer it does look fine but when I add it to my scene it messes everything up.

Is it a known issue? Is there a fix?

Thanks.

Any errors in the console log?
Are you using the meshopt wasm module?

Thanks for getting back to me. I get no errors in the console log and I am using wasm module. Any idea what could be the issue there?

Not sure to be honest. I assume you’re using the right versions of wasm / glue code.
Perhaps see how the model-viewer does it here:

There’s a part that registers the wasm module, and also a processing callback for glb loader or something along the lines.