Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The examples I have show the old beta codes, can someone help here please. I don't understand the codes here
C#
private void ProcessGesture(Joint head, Joint handleft, Joint handright)
        {
           /* Microsoft.Research.Kinect.Nui.Vector vector = new Microsoft.Research.Kinect.Nui.Vector();
            vector.X = ScaleVector(800, handright.Position.X);
            vector.Y = ScaleVector(600, -handright.Position.Y);
            vector.Z = handright.Position.Z;

            handright.Position = vector;**/
}

and this one too
private void SetEllipsePosition(Ellipse ellipse, Joint joint)
        {
            /*Microsoft.Research.Kinect.Nui.Vector vector = new Microsoft.Research.Kinect.Nui.Vector();

            vector.X = ScaleVector(800, joint.Position.X);
            vector.Y = ScaleVector(600, -joint.Position.Y);
            vector.Z = joint.Position.Z;

            Joint updatedJoint = new Joint();
            updatedJoint.ID = joint.ID;
            updatedJoint.TrackingState = JointTrackingState.Tracked;
            updatedJoint.Position = vector;

            Canvas.SetLeft(ellipse, updatedJoint.Position.X);
            Canvas.SetTop(ellipse, updatedJoint.Position.Y);
            */

        }
Posted
Updated 11-May-14 12:53pm
v3
Comments
[no name] 9-May-14 21:28pm    
Since the code for both functions is commented out, they do nothing at all.
David_Wimbley 11-May-14 18:54pm    
Uncomment your code and then see what happens...commented code doesn't run...

1 solution

Yes I have done that earlier and it works thank you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900