If you have some extra money you’ll like to donate. That would be really helpful!

OpenNI Win32 wrapper guide

Installing Drivers:

Download and install git for windows: http://code.google.com/p/git-osx-installer/ (If not installed)

Open Git Bash and download avin2 SensorKinect source:

git clone git://github.com/avin2/SensorKinect.git

Open Device Manager (Control Panel -> Device Manager)

Remove any drivers for kinect if installed (NUI or OpenKinect)

From SensorKinect\Platform\Win32\Driver run dpinst-amd64/dpinst-x86.

This will install PrimeSense’s drivers.

Check in Device Manager if Device was detected as PrimeSense Motor/Camera (Audio is not available)

If not install drivers manually as described in OpenKinect  guide but with the inf files in SensorKinect\Platform\Win32\Driver.

Using binaries:

Install OpenNI Drivers (Above).

Download and install: http://www.microsoft.com/downloads/en/details.aspx?familyid=A7B7A05E-6DE6-4D3A-A423-37BF0912DB84&displaylang=en (Microsoft Visual C++ 2010 Redistributable Package)

Download and Install OpenNI: http://openni.org/sites/default/files/OPENNI-Win32-1.0.0.23.exe

Download and Install PrimeSense NITE: http://downloads.primesense.com/NITE-Win32-1.3.0.17.exe Use the key provided by OpenNi ( 0KOIk2JeIBYClPWVnMoRKn5cdY4= )

Download and Install SensorKinect: https://github.com/avin2/SensorKinect/blob/master/Bin/SensorKinect-Win32-5.0.0.exe

Download openni_win_as3server.zip, unzip it somewhere.

Then you can run as3-server.exe

Note: If  SensorKinect-Win32-5.0.0.exe does not work try this:

Download and install git for windows: http://code.google.com/p/git-osx-installer/ (If not installed)

Open Git Bash and download avin2 SensorKinect source:

git clone git://github.com/avin2/SensorKinect.git
Install it from: SensorKinect\Bin\SensorKinect-Win32-5.0.0.exe

How to compile:

Download and install git for windows: http://code.google.com/p/git-osx-installer/

Download and extract openni_win_deps.zip somewhere. I will refer to this unziped folder as openni_win_deps.

Download and instal Visual C++ Express 2010: http://www.microsoft.com/express/Downloads/

Open Git Bash and download server source:

git clone git@github.com:imekinox/as3_openni.git

Copy Lib and Include from C:\Program Files (x86)\OpenNI <to> as3_openni/server/openni folder (you will need to create this folder).

Copy lib and include from openni_win_deps <to> sever/deps/ folder (you will need to create this folder).

Open as3-server_2010.sln

Press F7 or From Debug menu select Build Solution.

It should compile correctly with like 5 warnings.

Then inside bin\Debug <or> bin\Release we will find the binary.

Now we’ll have to copy here two files before it works.

Copy pthreadVC2.dll form openni_win_deps\lib to bin\Debug <or> bin\Release
Copy SamplesConfig.xml form C:\Program Files (x86)\OpenNI\Data to bin\Debug <or> bin\Release

Then if you already installed the drivers you can run as3-server.exe

  • Anonymous

    Getting a “Find user generator failed: Can’t create any node of the requested type!” when I run as3-server, after following through the detailed process you posted.

    • Hafizuddin Yusof

      I got same error as Ralidius. Already put in this line:

      in the SamplesConfig.xml file.

      • Wsvdmeer

        Glad i’m not the only one with that problem, i’ve posted the issue on the forum so i hope we’ll find/get a solution soon.

        • Hafizuddin Yusof

          Yeay, solved it. You just need to install PrimeSense NITE from this site: http://www.openni.org/
          and put in the license code (0KOIk2JeIBYClPWVnMoRKn5cdY4=) during install. as3-server and 3D_test.exe worked like a charm! :D

          • Anonymous

            So there is a package on that site that asks for a code at install time?
            Could you please give a direct link, there is a lot of stuff on there. Thank you.

          • Anonymous

            Its in the guide anyway. I’ve updated it.

          • Anonymous

            Cool. Man this thing is bi@tching :)

          • fox

            Does anyone have a simple source file for as3/Flash cs5 that I can use to test this? I have everything installed and working properly, can run the NiSimpleViewer.exe etc and it all works really well. I’m just confused as to how I can test tracking in Flash. Even just something where I can move something or scale it onscreen with my hands would be enough for me to understand and contribute more to this discussion once I figure out what’s going on.

          • Anonymous

            In the downloads section / OpenNI wrapper / demos and testing packages. There are files you can use for testing. There is also the OpenNI as3 server binary for windows.

          • fox

            Awesome. Thank you. Would you happen to have a simpler demo than the skeleton? Say, just moving a movieclip around the screen or using both hands to scale a circle up and down? Sorry to be a bother, I just would really like to dive in from there and start giving back so we can start the revolution.

          • Anonymous

            Just comment the getSkel from that sample and you’ll get just the both hand tracking, however you need to do the pose. But that is necesary for the current server, hand position can be obtained without position calibration.

          • fox

            Alrighty, so I have it working without the skeleton, tracing to the console textpanel and it seems to still want to calibrate. I have 2 movieclips, ‘lefthand’ and ‘righthand’. I am currently only using the as3w.getDepthBuffer(); – can I somehow get the x and y coordinates from this? I would like to make my movieclips follow the left and right hand x and y coordinates – which I will do within an enterframe event as such (rather than the rendertick in the skeleton example.):

            addEventListener(Event.ENTER_FRAME,myFunction);
            function myFunction(event:Event) {
            as3w.getDepthBuffer();
            }

            Getting closer! Thanks for all the help!

          • fox

            I’m now doing this within the got_depth function:

            function got_depth(event:as3kinectWrapperEvent)
            {
            as3w.byteArrayToBitmapData(event.data, _canvas);

            var thehands:Object = event.data;
            lefthand.x = thehands.l_hand.x;
            lefthand.y = thehands.l_hand.y;

            righthand.x = thehands.r_hand.x;
            righthand.y = thehands.r_hand.y;
            }

            lefthand and righthand are my movieclips. All of this compiles fine but it isn’t updating the position of the movieclips. I think I’m so close! Dumb side question: is l_hand and r_hand what the as3kinectWrapper refers to? This looks correct yes? I’m trying to reuse some of the techniques from the skeleton demo.

          • fox

            Updates. Got it working. I guess I was a little dense and thought I could get l_hand/r_hand x and y data from the depth function. It requires the skeleton from what I can tell. Onwards and upwards now!

          • fox

            Now, here’s a new question. How do I register a click event? Is it possible to be able to click a movieclip or some sort of button functionality? I would imagine it has something to do with depth? Or perhaps closing one’s hand or something like that?

          • Anonymous

            I still need to add hand tracking (independent to skeleton) and gesture recognition, im not far from that but is not implemented yet.

          • fox

            Hi, hope the New Year was great! Any progress on click-type events? I’m thinking of just writing some hit detection around it for now to get some things working but if you have anything in-progress, perhaps I’ll wait.

          • Anonymous

            Yes i have detected wave gesture and click gesture already, I just have not made the final integration yet. I think very soon will be available in the main repo.

          • http://www.facebook.com/masky81 Andrea Ascani

            we are waiting for, and happy to help you to develop them over! :)

          • Ariel Schvartz

            Hey! Good job on the library! Is really good and easy to use!

            How is the progress with the new functionalities??

          • John C

            I’m just holding a wireless mouse for click events.

            It does the job for now :)

          • fox

            hmm, got the skeleton tracker demo working but can’t figure out what pose it wants to calibrate with. Any help? My skeleton is all kind of messed up because I think I’m calibrating my pose incorrectly.

          • Anonymous

            Check this video to see the pose needed to start calibration:

            http://www.as3kinect.org/2010/12/openni-kinect-as3-demo/

    • Hafizuddin Yusof

      I got same error as Ralidius. Already put in this line:

      in the SamplesConfig.xml file.

  • Wsvdmeer

    Man this is awsome! Thanks for these great as3 wrappers!
    I’m now porting the papervision part to Away3D/Away3DLite and setting up the project in FlashDevelop.
    Can’t wait to build some apps for this technique!

  • Lee

    Hi.
    I`m begginer for KINECT. (and I don`t speak English very well)
    I don`t understand this sentence.
    ‘Copy lib and include from openni_win_deps
    sever/deps/ folder(you will need to create this folder).’
    Please describe in detail.

    Thank you.

  • Rid

    I tested AS3 openNI and a byteArrayToBitmapData function works well. But I cannot get the skeleton data from a server. How can I solve this problem?

    • Anonymous

      Did you make the pose? Does it calibrates successfully?

  • Anonymous

    Is there an example how to use the skeleton data from 2 bodies?

  • Delenigers

    When i type in git clone git@github.com:imekinox/as3_openni.git it says permission denied (publickey) what is that about plz help thank you.

  • cor de chasse

    Hello,

    After trying a lot of differents ways to install/reinstall/re-reinstall the kinect drivers + openNI + NITE + SensorKinect I’m totaly lost.

    I’ve tried to install the kinect on 2 differents computers (win7 and winXP) and have the same issue.
    If someone could help, it would be great ;-)

    1. STEP 1 Drivers:

    I’ve installed successfully the drivers (from git://github.com/avin2/SensorKinect.git), Kinect is recognized (except audio), and yellow led is tilting.

    2. STEP 2 Binaries

    I’ve installed Microsoft Visual C++ 2010 Redistributable Package.

    I think the page ‘openni win32 wrapper’ is out of date, the links to openNi and NITE are deads.

    So I downloaded and installed the files directly from openNI website :
    – openNI : OpenNI Stable Build for Windows x86 (32-bit) v1.1.0.38 Development Edition
    – NITE : PrimeSense NITE Stable Build for Windows x86 (32-bit) v1.3.1.3 Development Edition

    At this step, everything seems to work fine.

    When I install the file from avin2 github (“SensorKinect-Win32-5.0.0.exe”), I’ve got the message “Installation Failed! Could not register module with OpenNI”.

    I’ve tried to call directly the niReg.exe :
    niReg.exe -r “C:Program Files (x86)Prime SenseSensorBinXnDeviceFile.dll”

    (BTW, I’m not sure if I should use “SensorKinect-Win32-5.0.0.exe” provided on avin2 github or the one provided on openNI website (http://openni.org/downloadfiles/openni-compliant-hardware-binaries/32-stable))

    3. STEP Launching as3-server.exe
    When I launch the server, I’ve got the message “InitFromXml failed : Can’t create any node of the requested type”

    4. WHAT SHOULD I DO????

    Thanks for your help!

  • Sajjan

    Hi,

    I was compling the as3-server.exe code in VS 2010, I’m getting the following linker error, unable to resolve this. Can you please help me out

    Regards,
    Sajjna

  • Sajjan

    Hi,

    During the AS3 server running, when I was observing in RGB view, initially mirror image is try, when the skeleton reset is called, suddenly the mirror image will be false. It’s happening after skeleton reset. How can I deactivate the mirror image permanently true.

  • stefano

    hello
    can someone upload some .fla file with an example of how i can intercept the _skel.r_hand.x position and attach him some movieclip?

  • Lawrence

    Can someone update the link of file download, it is out of date

  • Ariel Schvartz

    Is there any way of showing the usual RGB video like the openkinect wrapper?

  • Justin

    Hi,

    When I need to “Copy Lib and Include from C:Program Files (x86)OpenNI as3_openni/server/openni folder”
    I’m experiencing a problem: I don’t have the Lib and Include folders.
    I needed to install a more recent version of OpenNI and NITE in order for SensorKinect to even install.
    Currently using OpenNI 1.1.0.41, which is an unstable version, the most recent stable version is 1.1.0.38 (I believe) but SensorKinect requires OpenNi 1.1.0.39.
    Any suggestions on this problem?

  • Johnrake

    Any support for the Xtion Pro?

Easy AdSense by Unreal