문제

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