質問

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.

役に立ちましたか?

解決 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

他のヒント

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top