Still very simple; It only supports color/depth/ir. I will implement body tracking soon.
SDK itself is also still very uncompleted. So it will change a lot.
I am afraid there’s not many people can use this yet because it’s preview and Microsoft only provide x64 library for VS so far (and I think it only works upon Windows8 or higher with official driver). But I have just post this for someone who wants to make experiments with it on OF.
Here’s a branch of OF for x64 apps for VS.
I added vs64 checkbox to projectGenerator so you can use it to create your own project.
Note that you should add include/ library directory for Kinect2 manually after generated.
add to C++ -> General -> Additional Include Directories: $(KINECTSDK20_DIR)\inc;
add to Linker -> General -> Additional Library Directories: $(KINECTSDK20_DIR)\lib\x64;
I will add them to libs folder after it’s redistributable.
Good luck!
I’m having a hard time getting this x64 version of OF to work. Can anyone give me clearer instructions?
Using VS 2012, I can get the project generator to create the examples, but none of those load correctly - I get a message saying the main version of the OF library is missing:
E:\openFrameworks-Win64\libs\openFrameworksCompiled\project\vs64\openframeworksLib.vcxproj : error : Project "E:\openFrameworks-Win64\libs\openFrameworksCompiled\project\vs64\openframeworksLib.vcxproj" could not be found.
Am I missing a step, do I need to build the OF core seperately somehow?
Did you success to run “addons/ofxKinect2/example” ?
Also in project generator, did you generate a project with checking “win VS64 projects” instead of “win VS projects” ?
Watch out it is checked “win VS projects” as default so you should change it.
I also came across with those errors, so as a workaround, I integrated sadmb’s addon to prisonerjohn’s branch of oF 64-bit. I used this branch mainly because I needed videos and assimp.
@dotchang
Oh, I got it.
The error says you use 32bit libraries for 64bit compile.
I didn’t modify batch files inside my 64bit project because I made it just for this ofxKinect2 addon. It’s not perfect package. So you may not use cmd files. Please use projectGenerator for creating new project. (And try “addons/ofxKinect2/example” for checking if ofxKinect2 works)
Unzip them and copy ofxKinect2 folder into openframeworks-Win64/addons folder.
Open “addons/ofxKinect2/example/example.sln”.
Compile it.
If you want to create your own project for ofxKinect2, then run “openframeworks-Win64/projectGenerator/projectGenerator.exe”.
Check “ofxKinect2”, “win VS64 projects” and “create project” then you got your new project folder generated.
Open sln file and modify project property as below.
add to C++ -> General -> Additional Include Directories: $(KINECTSDK20_DIR)\inc;
add to Linker -> General -> Additional Library Directories: $(KINECTSDK20_DIR)\lib\x64;
So you can compile it.
Enjoy!
@drosen@ou2s
Does this instruction help you? Please let me know if you got the same error with my steps.