Kinect SimpleOpenNI joint rotation applying PImage over the top
in
Contributed Library Questions
•
3 months ago
Hi forum friends hopefully someone can point me in the correct direction or the mathematics required.
I currently have a nice skeleton tracking system in processing 2.0 using simpleopenni library. I can get the joint positions of the skeleton and overlay some Images so that you become a 2d puppet. What i cant figure out is the correct rotation of the images to align with the limbs and joints so that the hands for example point the correct way, the same with the arms and legs etc etc
Im sure its some PVector maths required between getting 2 joint positions and figuring the line bewteen the 2 points and then making that into the correct number of degrees...but this is as far as i have got.
Much appreciated
Ashley
1