Kinect joint coordinates and XNA animation
- by Sweta Dwivedi
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);
}