Const
The coordinate system of GDTF is different from three.js.
three.js (X, Y, Z) GDTF (X, Z, -Y) Y Z | | Y | | / | | / +---------> X +---------> X / / Z Copy
three.js (X, Y, Z) GDTF (X, Z, -Y) Y Z | | Y | | / | | / +---------> X +---------> X / / Z
This is why we need to apply this Matrix4 to the GDTF Matrix4 upon import. It is a so called change-of-basis matrix:
change-of-basis
1, 0, 0, 0,0, 0, 1, 0,0, - 1, 0, 0,0, 0, 0, 1 Copy
1, 0, 0, 0,0, 0, 1, 0,0, - 1, 0, 0,0, 0, 0, 1
https://discourse.threejs.org/t/convert-from-one-coordinate-system-to-another/13240/10
Generated using TypeDoc
The coordinate system of GDTF is different from three.js.
This is why we need to apply this Matrix4 to the GDTF Matrix4 upon import. It is a so called
change-of-basis
matrix: