zeux / meshoptimizer

Mesh optimization library that makes meshes smaller and faster to render
MIT License
5.49k stars 473 forks source link

gltfpack: Keep `EXT_mesh_gpu_instancing` #685

Closed zeux closed 3 months ago

zeux commented 4 months ago

Discussed in https://github.com/zeux/meshoptimizer/discussions/680

Originally posted by **BoyBaykiller** April 22, 2024 I am running `gltfpack -v -mi -noq -tc -i .\SimpleInstancing.gltf -o .\Compressed\Output.gltf` over [this](https://github.com/KhronosGroup/glTF-Sample-Models/tree/main/2.0/SimpleInstancing/glTF) gltf model. It uses the EXT_mesh_gpu_instancing extension to define a bunch of instanced cubes. I can render it correctly as it, but after running it through the command the EXT_mesh_gpu_instancing extension is removed, resulting in only a single cube being rendered.