X, Y, Z Coordinates of a Specific Joint in Skeletal RRS feed

  • Question

  • Very new to kinect programming, and trying to get the X,Y,Z coordinates of a specific joint in the skeleton. I have looked at all the various threads with similar questions with no answer. 

    I am currently getting the X,Y,Z coordinates of the skeleton using skeleton.Position.X, skeleton.Position.Y, and skeleton.Position.Z. I would like to get the X,Y,Z coordinates now of specific joints. The JointType object seems to define all of the joints. Is there a way to access the position data of the joints from that? I have tried JointType.RightShoulder.Position.X and variations of that with no success. 

    I am using the SkeletalViewer Sample from Microsoft in C# and just printing this data to a textfile.

    Any help would be greatly appreciated.

    Monday, July 16, 2012 2:39 PM


  • yo can try this code it may helps you

    var rightHand = skeleton.Joints[JointType.HandRight]; 
    var rightHandX = rightHand.Position.X; 
    var rightHandY = rightHand.Position.Y; 
    var rightHandZ = rightHand.Position.Z; 
    var leftHand = skeleton.Joints[JointType.HandLeft]; 
    var leftHandX = rightHand.Position.X; 
    var leftHandY = rightHand.Position.Y; 
    var leftHandZ = rightHand.Position.Z;

    and do the same for all joints in the skeleton

    MOHAMED A. SAKR | Technical Lead | Unified Communications | EgyptNetwork
    Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members. Also try to Vote as Helpful

    Wednesday, July 18, 2012 10:20 AM