Hey everyone!
This is a simple example of head tracking in Unity using OpenNI and the Kinect. Calibration for position normalization was done extremely roughly, so it doesn’t correspond perfectly.
This one works just by changing the position of the camera while having it look at a very distant and invisible target.
Please note that all I did in this project was add head tracking. The soldier model, depth tracker node grabbing, skeleton binding, and scene were ALL done by the creators of the OpenNI Unity Wrapper. All I did was implement head tracking, which was relatively simple (roughly a day’s worth of work).
I plan to be implementing a version that modifies the project matrix soon, as we need it at work. I’ll update this post as I go.
Once it’s a little more mature and user friendly, I plan to release the source into the wild under the same terms OpenNI is licensed.
Questions, comments, and concerns are all welcome.