Openfl / Haxe native extension for Microsoft Kinect for Windows SDK
To build ndll library:
haxelib run hxcpp Build.xml
To compile samples:
[haxelib run] openfl build project.xml windows
Copy KinectInteraction180_32.dll from %KINECT_TOOLKIT_DIR%/bin into same directory as .exe
// Set options
d = new DeviceOptions();
d.depthEnabled = true;
d.depthResolution = ImageResolution.NUI_IMAGE_RESOLUTION_640x480;
// Create a Kinect references
k = new Kinect(d);
k.start();
// Add the image stream display list
addChild(k.bmDepth);
// call update each frame
addEventListener(Event.ENTER_FRAME, function(e)
{
k.update();
});
- Kinect for Windows SDK & Kinect for Windows Developer Toolkit http://www.microsoft.com/en-us/kinectforwindowsdev/Downloads.aspx
- Haxe and OpenFL http://www.openfl.org/documentation/setup/install-haxe/
- Visual Studio 2012 / Visual Studio 2012 Express (2010 Will not compile) http://www.microsoft.com/en-us/download/details.aspx?id=34673