Question

I have a transformation matrix from an application where the basis are XZY and I want to obtain this matrix into a system with XYZ basis. ¿Is it possible?

This is because i'm importing some 3D objects from an app in XZY basis and I want to rotate and translate them -but the axis here changed to XYZ-.

¿Could I have the quaternion of the rotation with the new basis?

Thanks.

Was it helpful?

Solution 2

There is a 2 ways to go.

  1. Simply swap Y <-> Z components of quaternion or rotation matrix.
  2. Build transformation from one Basis to other and multiply current transformation. Transformation changing coordinate axes can be described with 4x4 matrix or 3x3 if only rotation used

OTHER TIPS

It can be done by a basis transformation; however from your description exchanging of coordinates might be sufficient.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top