Compressed glb file is not loading in the editor

Meshopt processes buffer views, so that should be easier to integrate, similar to how viewer does it.

If you look at the viewer, it uses processAsync callback on the buffer view here:

where it uses that small function above (processBufferView).

That gets called from here in the engine:

So in theory that processBufferView function should be inlined here, just before the preprocess callback on the gltfBufferView is called. And then it could be removed from the viewer.

But note that even with this, meshOpt would only be partially supported. See details here on what else would need to be implemented for full support:

2 Likes