pixi3d icon indicating copy to clipboard operation
pixi3d copied to clipboard

Support for KHR_mesh_quantization and EXT_meshopt_compression

Open goldenratio opened this issue 3 years ago • 3 comments
trafficstars

Hi, I am trying to optimize meshes in .glb files using gltfpack, gltfpack -i Soldier.glb -o Soldier-opt.glb -c

Pixi3D doesn't seem to render optimized 3d file. Further googling noticed three.js and playcanvas handles KHR_mesh_quantization and EXT_meshopt_compression

Minimal reproducible repo is here, https://github.com/goldenratio/pixi3d-poc-72 Any help is appreciated. attaching models

goldenratio avatar Mar 21 '22 01:03 goldenratio

Would be nice to support these, but seems like a lot of work to make it happen. I don't feel like digging into this right now, if anyone else does let me know :-)

jnsmalm avatar Mar 21 '22 05:03 jnsmalm

Attaching some additional minimal models AnimatedMorphCube.zip

AnimatedMorphCube.glb (plain) - works well with Pixi3D AnimatedMorphCube-meshquant.glb (KHR_mesh_quantization) - renders, but geometry is bit off AnimatedMorphCube-meshopt.glb (EXT_meshopt_compression) - doesn't render. It needs client-side decoder. It's not a priority.

I will try dig into KHR_mesh_quantization. I suspect something to do with byteStride in gltf-parser

goldenratio avatar Mar 21 '22 14:03 goldenratio