I am trying to bake transformations of each mesh of an imported model and some meshes are distorted in the output. I figured that it is about transformations (mostly quaternions) and mesh hierarchy.
This is the PG link: https://www.babylonjs-playground.com/#B0LTE1#1
I have given some instructions as comments to try some combinations. Let me also state that I tried commenting out “boxQuat2” and give only Euler rotation to “boxQuat” with the same values, and problem continues.
The reason was to serialize the meshes for conversion and the output was distorted. I tried baking at that point and the distortion happened already before serialization. If I freeze mesh transformations in the 3D modeling software and get rid of quaternions and baking together, serialization output was successful. However, this requires me to modify all my models and do not use quaternions in my project, which is a big problem for my case.
I will be glad to receive any help. Thank you very much!!!