Babylon xzy coordinate system convert to xyz coordinate system

image

You can rotate and parent the mesh to a TransformNode, and use that node to do transformations, or you can rotate the mesh and recalculate the positions of the local vertices, like:

mesh.rotate(BABYLON.Axis.X/Y/Z, Math.PI/2, BABYLON.Space.LOCAL/WORLD);
mesh.bakeCurrentTransformIntoVertices();
1 Like

In this way, every imported mesh needs to be rotated

why not moving your camera then ?

I hope it is a scene like bender, the default up is the z axis

so you could simply move your camera to face the y axis and you should be in a similar setup. A repro in the playground would help understanding your problem.

1 Like

Have you tried checking this option when exporting files ?
20211215214406

3 Likes

I found the problem, thank you for your answers.
I should use Plane instead of Ground

Hey i have the same problem, what do you meant by your solution? how does that change the rotation of the axes?

I changed the reference plane to Y up, same as Babylon.Ground

1 Like