Kinect for Silverlight 5

Sign in to queue

Description

Today's project shows how even Silverlight can get into the Kinect game...

Kinect for Silverlight

In this project you will find a Silverlight 5 library for the Kinect. This is made possible by using the Silverlight P/Invoke feature which will call the native Kinect SDK v1.0 API. Along with this library, we also made an event system for the most common gestures.

Silverlight library

Finished:

  • Skeleton stream

Work in progress:

  • Color stream
  • Depth stream

Gestures

Move

  • MoveRightHandDown
  • MoveRightHandUp
  • MoveRightHandNavigating
  • MoveRightHandStopNavigating
  • MoveLeftHandDown
  • MoveLeftHandUp
  • MoveLeftHandNavigating
  • MoveLeftHandStopNavigating
  • Scale
  • Rotate
  • Translate
  • Transform
  • OnPersonEntered
  • OnPersonLeft
  • RightNavigatingClick
  • LeftNavigatingClick

MoveGesture

  • SwipeLeft
  • SwipeRight
  • SwipeUp
  • SwipeDown

Project Information URL: http://kinectforsilverlight.codeplex.com/

Project Download URL: http://kinectforsilverlight.codeplex.com/releases/view/87186

Project Source URL: http://kinectforsilverlight.codeplex.com/SourceControl/list/changesets

Note that the source is work in progress and might take a little hacking and playing with to get to run. But you can make it run and it does work... Here's a snap of the test app running on my notebook.

Here's its start up state (and the context menu visible so you can see that it's a Silverlight app)

SNAGHTML563ef78

With its gesture support working (i.e. me moving the circle around);

SNAGHTML562e0a9

Here's a snap of the solution;

image

What did I have to do to get it to run? I had to set the Startup Project to the KinectTestApp, set its debug mode to Out Of Browser, comment and uncomment some lines in the TestApp (see snap below).

image

Finally here are some snaps of the included Class diagrams;

image

image

image

The Discussion

Add Your 2 Cents