Implementation of Kinect For Windows v2 API using COM (not KinectCommonBridge)
The current version is designed for the upcoming oF 0.10.0 available from GitHub, and works with Visual Studio 2015 (it is not compatible with non-windows platforms).
0.9.0
tag0.8.4
branchCurrently lets you:
Currently doesn't support:
MIT License http://en.wikipedia.org/wiki/MIT_License
First install the Kinect for Windows SDK 2.0 installed (you will need to restart after installing this before all system paths are correctly set).
Try the examples to see if they build and run. Then try with your own project:
Add > Existing Project...
)Property Manager
(open it from View -> Other Windows -> Property Manager
), right click on your project to select Add Existing Property Sheet...
and select the ofxKinectForWindows2.props
file.Solution Explorer
, right click on your project (e.g. 'mySketch') and select 'Add Reference...', and add a reference to ofxKinectForWindows2Lib
.This method requires the OF nightly build of Project Generator. It will not work with the Project Generator from OF 0.9.8 or earlier.
Property Manager
(open it from View -> Other Windows -> Property Manager
), right click on your project to select Add Existing Property Sheet...
and select the ofxKinectForWindows2.props
file.Kinect.h
or ofxKinectForWindows2.h
First, please check that you have the Kinect SDK installed. The Kinect.h
file should be here on your drive:
Second check that one of the examples shipped with ofxKinectForWindows2 builds and runs.
Third please make sure you're using standard paths, e.g.:
addons/ofxKinectForWindows2
apps/myAppFolder/myApp/myApp.sln
If you're using your own path structure then ofxKinectForWindows2 may not work.
Check that your Solution Explorer has the right settings, e.g.:
Check that the .props
file has been added correctly, e.g.:
If you encounter errors like The specified task executable CL.exe could not be run
(or similarly ambiguous errors) it may be that the path to your project is too long for Visual Studio to compile (e.g. if your openFrameworks
folder is in a subfolder on your Desktop). While there are many solutions to making a shorter path, one easy solution is to move your openFrameworks root directory to something like C:\of
. reference.
This addon should work with both x86 and x64 platform settings. However, I'm mostly testing with x64 so I'd suggest you use that if you're having issues. Try changing the platfrom setting near the top of the Visual Studio window if you are having troubles.