Closed saturn118 closed 5 months ago
-kn
does not guarantee that the hierarchy is preserved. Because by default gltfpack uses quantization which requires dequantization transforms, it has to insert additional nodes for existing meshes. If you're using a recent version you can use -vpf
to disable fixed point quantization for positions only, which should usually maintain the hierarchy assuming all nodes are named; you can also use -noq
to disable all quantization altogether, resulting in a large file.
I'm using gltfpack to optimize a mesh. My use case requires exact preservation of the original file's node hierarchy. In teh blender before and after images below you can see that it's maintaining the naming of the nodes but it's also introducing new nodes into the hierarchy
gltfpack -i input.glb -o output.glb -kn -km
I can share the exact model if required. Github doesnt allow me to upload it here
Before![image](https://github.com/zeux/meshoptimizer/assets/55329484/8f5a9e93-dace-4e5e-bdc8-7279b58dea32)
After.![image](https://github.com/zeux/meshoptimizer/assets/55329484/eafef226-d590-4c70-a409-bd349de785b1)