Hi, everyone! It appears that when exporting a scene to glTF from Babylon 5 I get different transform information than when I export it from Babylon 6. I’ve put together a really simple playground to demonstrate what I mean.
Running that playground on WebGL2 with Babylon version 6.25.1 exports a visually identical, but actually very different scene when compared to running it with WebGL2 with Babylon version 5.71.1.
The scene consists of a plane and two cubes; one parented to the other.
Exporting with Babylon version 5.71.1, nodes which have no parent (the plane and one cube) and are unrotated within Babylon, when exported to glTF both have a:
position: (x: 0, y: 0, z: 0) // no difference
rotation: (x: 0, y: 180, z: 0)
scale: (x: 1, y: 1, z: 1)
The same nodes exported with Babylon version 6.25.1 have:
position: (x: 0, y: 0, z: 0) // no difference
rotation: (x: 0, y: 0, z: 180)
scale: (x: 1, y: -1, z: 1)
Nodes which do have a parent (the other cube) also differ between versions, but differently than the un-parented nodes.
Child cube exported from 5.71.1:
position: (x: 1, y: 1, z: -1)
rotation: (x: 0, y: -45, z: 0)
scale: (x: 1, y: 1, z: 1) // no difference
Exported from 6.25.1:
position: (x: 1, y: 1, z: 1)
rotation: (x: 0, y: 45, z: 0)
scale: (x: 1, y: 1, z: 1) // no difference
What is the purpose of this difference between the exported transform data between versions? Is this an expected behavior? I appreciate any help in advance! Thanks!