If you haven't heard, Microsoft has released a new version of the Kinect that's just for Windows applications, along with a new Software Development Kit so .NET developers can write apps for Windows that use the Kinect.
Code along with me while I show you how to get started.
This is a 64-bit SDK with a commercial license.
If you're going to use voice recognition with the Kinect, download these:
- Microsoft Speech Platform - Runtime (Version 11)
- Microsoft Speech Platform - Software Development Kit (SDK) (Version 11)
Download the x86 versions of each of these. Kinect only works with the 32-bit version.
We're going to make an application that simply tracks your right hand, showing the X, Y, and Z values in real-time as you move it.
- Create a new WPF application
- Add a reference to the Kinect SDK
C:\Program Files\Microsoft SDKs\Kinect\v1.0\Assemblies\Microsoft.Kinect.dll
- If using Speech, add a reference to the Microsoft Speech SDK
C:\Program Files (x86)\Microsoft SDKs\Speech\v11.0\Assembly\Microsoft.Speech.dll
Change the default <Grid></Grid> to the following: