GLB import with unexpected rotation and scale

when I import a glb in the editor (but also in the sandbox), the glb is imported with 180° Y rotation and -1 Z scale.
If I import the FBX of the same model the transformations are ok.
Is it a bug?

Welcome aboard!

It is not a bug, it is because the coordinate system used by glTF is right handed whereas Babylon.js is using a left handed system by defaut. This rotation+scaling is there to transform right handed coordinates to left handed.

If loading the glTF by code, you can set scene.useRightHandedSystem = true before importing the file and you won’t get this rotation+scaling.


Many thanks for the answer and for the code hint!
Very appreciated!