Kinect joint coordinates and XNA animation

Posted by Sweta Dwivedi on Game Development See other posts from Game Development or by Sweta Dwivedi
Published on 2012-09-20T20:33:40Z Indexed on 2012/09/20 21:55 UTC
Read the original article Hit count: 230

Filed under:
|

I have written a program to record the x,y,z coordinated of the Hand joint and I want to animate my models 2D or 3D according to these coordinates. . .However the output of the x,y,z coordinates are fluctuating from -0 to 1 but not more than that..

So i assume I will need to multiply them back with the screen width and height, however it still doesnt seem to animate according to the original x,y,z points

Any transformations I might be missing out?

while ((line = r.ReadLine()) != null)
                {


                    string[] temp = line.Split(',');

                    int x = (int) float.Parse(temp[0]))* maxWidth);
                    int y = (int) float.Parse(temp[1])) * maxHeight);
                 }

© Game Development or respective owner

Related posts about xna-4.0

Related posts about Kinect