I use an external program for the kinect, it gives me through OSC per limb the xyz position and wxyz rotation.
Little pseudo code:
// I got a OSC message and a Quaternion
// Set the rotation of Quaternion to the data of the OSC message
// First 3 floats are xyz position, next is the degree(w), followed by 3 floats of xyz rotation
// Openframeworks declaration starts with xyz and ends with degree(w)
// NI-mate sends its degree(w) then its xyz
rot.set( m.getArgAsFloat(4), m.getArgAsFloat(5), m.getArgAsFloat(6), m.getArgAsFloat(3) );
// Get angle and axis
rot.getRotate( angle, axis );
// Set angle and axis
ofRotate( angle, axis.x, axis.y, axis.z );
Does anyone have any clue whats going wrong? I’ve mixed up the sequence but with no luck, no correct rotation from limb to limb.
Thanks in advance!