⬆️ ⬇️

Head tracking 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.





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, literally in 10 lines, you can get a position vector in space:



image



Further, this vector is used to calculate the camera position and angle of view:

')

image



A 3D image is built in a very simple way, just like in the real world. Just create two ViewPort which with a small parallax look at the same scene and draw this scene twice:



image



Then it remains only to turn on the 3D mode on the TV, put on glasses.



image



I published the source code of the example on the Codeplex website

.

Source: https://habr.com/ru/post/127728/



All Articles