XNA and the Kinect for Windows 2? Here's an example...

  • Thread starter Thread starter Greg Duncan
  • Start date Start date
G

Greg Duncan

Guest
While XNA is somewhat (?), well, you know... it still has a good following and Ive not seen many examples of it with the Kinect for Windows v2, so when I saw Frank McCowns post I knew it was a must share...

Kinect for Windows 2 and XNA demo


Over the Thanksgiving break I managed to get my new Kinect for Windows 2 working with XNA. I couldnt find any code samples online using the new Kinect SDK, so hopefully this will help out others who are trying to do something similar.

This demo will show how to display the Kinects video feed which is provided by its 1080p color camera. This is similar to the Color Basics-WPF C# Sample provided in the Kinect SDK 2 except that it is tailored for XNA.



Prerequisites


You must have the Kinect for Windows 2 correctly installed along with the SDK. There are plenty of online tutorials showing you how to program with the older Kinect; this is for the latest version.

Microsoft is no longer maintaining XNA, but but you can still use it in Visual Studio 2013 as long as you install the following:

  1. Install Visual Studio 2010. Any edition will work.
  2. Install XNA Game Studio 4.0
  3. Install XNA 4.0 Refresh for VS 2013. After you have downloaded the zip file, extract it and run XNA Game Studio 4.0.vsix

If you do not have access to Visual Studio 2010, you might try MonoGame. Just be aware that it does not have a content pipeline converter (software that converts content like sound files into xnb files). I have not tried MonoGame with Kinect, but I dont see any reason why it wouldnt work.

Create an XNA Project


First create an XNA project by selecting FileProject... from the menu. Then select XNA Game Studio 4.0 template under Visual C# and select Windows Game (2.0). Name the project KinectVideoXna.

...

Project Information URL: http://frankmccown.blogspot.com/2014/11/kinect-for-windows-2-and-xna-demo.html

Contact Information:


Follow @CH9
Follow @Coding4Fun
Follow @KinectWindows
Follow @gduncan411

njs.gif


Continue reading...
 
Back
Top