zeux / meshoptimizer

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

gltfpack settings.pos_bits default value #701

Closed mathieu-lemuzic closed 3 months ago

mathieu-lemuzic commented 3 months ago

I noticed that the default value for the number of position bits when quantizing positions with gltfpack is 14 bits, while the component type is uint16, which means that 2 bits of data is cropped unless the user explicitly requests 16 bits, is this intended?

zeux commented 3 months ago

Yes, you would note gltfpack -h lists the default value as 14. This results in improved compression and usually 14 bits is enough. The defaults used to match Draco but they now changed theirs to be even smaller, gltfpack defaults are unlikely to change.