Rotation from a matrix

hi,

i’m using the artk+ tracker. the tracker only has the possibility to get a matrix. my problem is to find out the parts of the matrix which are responsible for the rotation around the x/y/z axis. i need seperate values because i want to control a color-output with the rotation.

perhaps the rotation is even in the quaternion in the artk+ tracker?

can somebody help me with this question?

thx.

ceegee

there is no node to do this directly. but you are right, the quaternion is the right choice, now just google for ‘quaternion to euler angles’, like here

thx for the answer. i hope i can get this information from wikipedia into vvvv. i will do my best :)

there is no node which could help me?

here is some code, the node Expr (Value) just waits to handle the expressions, then with >, < and Switch you can handle the if cases for the singularities…