It’s been a few busy weeks, as you might have seen in our dev-branch on github. We’ve just finalized the 2.1 release of AIRKinect, with the big new feature being OpenNI support on the windows platform.
We’ve worked on merging the native code base of both windows and osx to one project. This should make it easier for us to line up the features between the windows & osx native code: new features / bugfixes should be deployed faster in the future
These are some of the key points in this release:
- OpenNI support on windows. You can choose to use the MS SDK or OpenNI for you AIRKinect projects on the windows platform.
- General bugfixes: fixed some issues with wrong joint mapping & data corruption.
- Multithreading: We’ve integrated boost threading on the windows platform too now, the kinect device now runs in a seperate thread in windows too.
- Support for alternative depth camera’s using OpenNI (ex: Asus Xtion Pro) on both windows and mac.
- Support for settings the camera angle & near mode when you use the MS SDK version.
if(device.capabilities.hasCameraElevationSupport) {
device.cameraElevationAngle.value = 27; //value between -27 & 27
}
var settings:KinectSettings = new KinectSettings();
if(device.capabilities.hasNearModeSupport) {
settings.depthEnableNearMode = true;
}
Using nearmode, you will not have skeleton tracking, only user tracking. This is a limitation of the MS SDK.
There’s one catch: we had to create separate ane files: if you want to use the ms sdk driver on windows, you will use airkinect-2-core-mssdk, in the case of openni you will use airkinect-2-core-openni. On osx it doesn’t matter which ane you use, they both have the OSX version compiled.
Same as before:
- You can find the core library (with the ane) and the documentation at http://as3nui.github.com/airkinect-2-core/
- The examples are at https://github.com/AS3NUI/airkinect-2-examples
- You can report bugs in the ane on https://github.com/AS3NUI/airkinect-2-core/issues
- You can report bugs in the examples on https://github.com/AS3NUI/airkinect-2-examples/issues
Happy coding!
51 Responses to “AIRKinect 2.1: OpenNI on windows”
Trackbacks/Pingbacks
- Kinect | Pearltrees - [...] AIRKinect 2.1: OpenNI on windows | as3NUI Multithreading: We’ve integrated boost threading on the windows platform too now, the ...
- AIRKinect 2.1: OpenNI on windows | as3NUI « eaflash - [...] on www.as3nui.com Share this:TwitterFacebookLike this:LikeBe the first to like this [...]
- AIRKinectとKinect for windows中間まとめ - [...] for windows FlashBuilder4.6 AIRKinect2.1 ソースとサンプルは以下から取得する。 http://www.as3nui.com/airkinect-2-1-released-openni-on-windows/ 結論から言うと、AIRKinect2.0のチュートリアルビデオでうまくいく。 [...]

Anything new related to gestures?
there’s no built-in gesture support yet. You’ll have to write this yourself on top of the data you get. You can actually find code for this in our previous extended libs: https://github.com/AS3NUI/airkinect-1-extended & https://github.com/AS3NUI/airkinect-1-extended-examples. You will have to modify that code to get it working with airkinect 2. We will be adding gestures in the next update, keep an eye on our dev branches on github
fingers crossed, we’re looking forward..
That’s cool ! any schedule for the gesture support ?
I can’t wait and love to play with this.
Nice news
Thanks! Now we can get Joint Rotations with OpenNI on Windows?
Yep!
How to get Joint rotations with mssdk?? 0.0a
Thanks ! I was waiting for joint rotation on Windows. But with the new version airkinect-2-core-openni.ane, Kinect.isSupported() return false. I’ve installed NITE, OpenNI, sensor and Sensor Kinect. Is there any conflict with Kinect Windows SDK ?
You probably forgot to set the correct driver. By default, it will try to use the MS driver. You need to go to the device manager, navigate to the kinect device and choose for “update driver”. You should have the option the manually select a driver and select the PrimeSense / OpenNI driver in the wizard.
I have the same problem. Everything is installed but i still cannot change the driver to PrimeSense/OpenNI. Any idea? Thanks!
same problem for me too…any idea ! I changed the driver ‘Microsoft Kinect Camera’ for Primesense SensorKinect…it’s not working. I can just use mssdk, not openni. thanks
Hi there, i was having that same issue, and when i changed the drivers for the openNI, my prob disappeared…
For the ones that cannot change the drivers manually i shot a litle scrren capture for you:
http://www.youtube.com/watch?v=UpvchdbIWpA&feature=youtu.be
Keep it ON
Thanks! xD
Guys, you are just amazing!
I was trying to set the device.cameraElevationAngle.value = 25 but there was an error “access of possibly undefined property value through a reference with static type int”. i tried setting the value direct by using device.cameraElevationAngle = 25 and the program does not run either.
the boolean (device.capabilities.hasCameraElevationSupport) returned true
it should work through device.cameraElevationAngle. This only works after the device has started, maybe that wasn’t clear in the (short) example
. So: wait for the DeviceEvent.STARTED, and set the angle in that event handler.
Thanks! it worked when i added the listener for DeviceEvent.STARTED!
Ha snobody run into:
Main Thread (Suspended: ArgumentError: Error #3500: The extension context does not have a method with the name applicationStartup.)
flash.external::ExtensionContext/_call [no source]
flash.external::ExtensionContext/call [no source]
com.as3nui.nativeExtensions.air.kinect::Kinect$cinit [no source]
Yep getting the same here.
This is because the drivers aren’t installed properly. Make sure you’ve installed:
on windows: latest version of MS SDK / 32bit version of OpenNI
on osx: openni & requisites.
See the installation instructions on Github.
Thanks wouter, worked with the 32 bit version.
You may want to note on the installation page that as3nui doesn’t work with the 64-bit version of OpenNI.
Added 32-bit requirement to the installation page
Hi, in OSX does it work with the x64 version?
I downloaded the OpenNI 32 bit installers, installed, uninstalled, reinstalled, and I still get “Error #3500: The extension context does not have a method with the name applicationStartup.”
Note, if I try to run any of the OpenNI Samples I get the error that the program can’t run because the OpenNI.dll is missing.
Burned some hours on this. Anyone have any helpul ideas? Thanks.
PS I made sure the Kinect was using the OpenNI drivers in Device Manager.
You know what? Forget I said anything. I restarted my system and it works now.
Thanks!
hi~Can u develop a extended as “airkinect-1-extended” to support airkinect 2.I can’t use cursor.Be course it’s different types!plz..email to me..thx!!
I cant new Cursor() too,It dosent work!
LoL!..I found it!
I think u are so great!
are the hand raise and wave gestures going to be added in the future?
Can we use other depthCamera with this great Framework like panasonic d-imager ?
kinect sdk 1.5 issued. Expecting kinect sdk 1.5′s ane is Announced.
Hi!
Thanks by this extension, is awesome!
Error “The extension context does not have a method with the name applicationStartup.” on dev branch. windows7x64, ms kinect sdk 1.5.
On master branch everything is ok.
I’m on mac, counter this problem too.
The kinect camera is not delivered yet, I’ll wait the kinect devices for test.Maybe the problem will gone.
Hi,
same with me. latest MS SDK 1.5 and dev-branch –>
Error “The extension context does not have a method with the name applicationStartup.”
switching to the master branch –> everything works fine
But I want to explore the nearFieldMode and therefore I guess I need the dev-branch
pls help
thnX
Will take a look at what’s going wrong with the dev branch version later this week. I’ll keep you posted…
There was something wrong with the ane’s on the dev branch. This is now fixed, it should work again.
dev branch on git: “updated MSSDK to 1.5 – added joint orientation support to MSSDK”, is joint orientation supposed to work with MSSDK 1.5 now ? i can’t get it to work.
Works like a charm !! Just exchanged the ANE and all Demos work fine …
Thank you guys
Me too, I used MSSDK 1.5, overwritten the ane files and the swc with the new one and joint orientation support is still disabled…any clues anyone?
I’m currently using windows 7 64-bit if that helps…
Hello, I have error with export project to AIR package in Flash Builder 4.6, It shows
“Native extensions are being used in the project but are not supported by the AIR package type. Runtime issues can occur.”
How to resolve it?
I had the same issue but finally I exported a “Signed native installer” in Flash Builder 4.6. I have now a .dmg installer and it is working perfect.
Any time frame for finger tracking?
This isn’t something we plan to add in the near future, as finger tracking is highly unreliable & would add a lot of dependencies to the AIRKinect library.
Is there any release of extended classes and examples planned for airkinect2? If so when is it going to be published?
Right now we are focussing on the core library. You can always have a look at the old extended libraries and see if there’s stuff you need there. It shouldn’t need that much adjustments to get those running with the new AIRKinect.
Hi,
This is very nice wouter, thanks for your work !
I’m the developper of BiKinect/MappInect (http://www.youtube.com/watch?v=VzGRSQz6V_k) and i’m seriously thinking to port the whole development in AS3.
Your library is what made my take this decision, and i’ve a question about the OpenNI implementation (since i want it to still be openSource AND cross-platform)and multi-camera support : Your demo shows in the capabilities that there is no support for multi-camera : is it because i have only one camera connected (i will test with two soon), or is it because you’re implementation of OpenNI doesn’t support multicamera (the latest simple-openni supports multicam so i guess OpenNI has this capability) ?
Again, thanks for your work and motivation !
PS : i’m working on FlashDevelop and if you’re interested, i can provide a template with ane file copied and uncompressed so people can download a “ready-to-code” project.
I’ve been trying to put the examples to work with no success.
flex simples can’t locate the examples folder( com.as3nui.nativeExtensions.air.kinect.examples) it simply detects till com.as3nui.nativeExtensions.air.kinect and inside it I have Kinect, KinectSettings, constants, data, events, frameworks and namespaces noting else.
this is very weird.. what am I doing wrong?
Hello, your articles here AIRKinect 2.1: OpenNI on windows | as3NUI to write well, thanks for sharing!