Closed
Description
Describe the bug
It seems that in some cases gltf-transform meshopt
alters bounds of skinned meshes and results in files with either incorrect scale or incorrect bounds (haven't been able to verify which it actually is so far).
To Reproduce
Steps to reproduce the behavior:
- Download and unpack BentCylinder-Meshopt.zip
- Drop "BentCylinder.glb" into https://gltf-viewer.donmccurdy.com/
- Now drop "BentCylinder.meshopt.glb" into it
- Note that the second file displays very differently, the only difference is that it was processed with gltf-transform meshopt.
Expected behavior
Files display the same.
This might also be an issue with bounds calculations inside modelviewer/gltf-viewer instead of gltf-transform (there's known issues with skinned meshes in model-viewer bounds calculations at least, see here: google/model-viewer#3189), but since in this case the only difference is meshopt compression might be a separate problem (and/or the model scale is incorrectly calculated in model-viewer).