Track your head with Kinect and display on a 3D TV

    Probably, many have seen examples of using Kinect to track the position of the head in space. I wanted to make an example that would show this in “real” 3D.


    The Kinect SDK and XNA 4.0 were used to create this example. To determine the position of the head in space, an event is used in which you can get a position vector in space in just 10 lines:

    image

    Next, this vector is used to calculate the position of the camera and the viewing angle:

    image

    3D image is constructed in a very simple way, the same as in the real world. Just create two ViewPort that look at the same scene with a little parallax and draw this scene two times:

    image

    Next, you only need to turn on the 3D mode on the TV, wear glasses.

    image

    I published the source code for the example on the Codeplex website
    .

    Also popular now: