Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How to get X,Y,Z rotation using for kinect 2 in windows?

$
0
0

@Julian_Puppo wrote:

So, i´ve been trying to accoplish this effect:

That´s is basically: knowing the angles of rotation in X,Y and Z of one joint.

I have a kinect 2.

The only addon that i´ve found that work with the kinect 2 in openframeworks is : https://github.com/elliotwoods/ofxKinectForWindows2
done by @elliotwoods .

Now the addon has two functions for knowing the rotation ( i think that is what these functions are for but don´t really know for certain) wich are :

GetOrientation() wich returns a Quarternion and getRawJointOrientation() wich returns a _JointOrientation type.

then.

When I acces to the X,Y and Z of these objects i get data i don´t understand, numbers that goes from -0.1 to 0.1. Tryed to map each number to -180,180 wich are the degrees that are posible to map with, but the data is still not clear, The number do now work as espected.

-Is something that im missing in the way that im using those functions?
-Is there any easy way to make this effect?
-Does someone done something familiar?

Any kind of help is greatly apreciatted.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles