On 03/02/2013 at 14:43, xxxxxxxx wrote:
Hi
i am trying to import some tracking data (faceshift) into c4d.
everything works fine, except that i can not get the head-rotation work properly.
the head rotation i get from faceshift is in quaternion format and consist of 4 float values (x,y,z,w)
i tried doing something like this:
newMatrix=c4d.utils.RotAxisToMatrix(c4d.Vector(x,y,z),w)
headTarget.SetMl(newMatrix)
i tried a lot with swapping or negating the values x,y,z and w, but had no luck so far.
i know that faceshift and c4d do not use the same coordinates systems (left handed vs right handed), because to get the head-translation correctly i need to negate the z-value.
hope someone can show me the way....