Frage

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.

War es hilfreich?

Lösung 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

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top