OpenNI is a “natural interaction” software that uses the Kinect for XBox 360. Using this, connected to a Mac, we can control various software via OSC. Here, I will show you how to get the data into Max. The idea here is that you are like me, longing to try, but missing the few crucial steps that the README’s forget about the amateur hacker.
First, if you are not comfortable with the terminal, I will try to walk you through it. Everything in this tutorial will require being in the terminal. That does not mean that it is hard, just different for many of us.
Second, I have tried this on three machines just to be safe that I did not ruin anything. My school computer went first (17” MacBook Pro 2006, 2.33 ghz), then my old Mac Mini (1.83 ghz, 2006) and now my MacBook Pro (2008, 2.4 ghz). All are working great. All are Intel. I can make no promises about your machine… but mine are all running smooth.
UPDATE: you need to be on OS 10.6 for this to work from what I can tell
Third… I cannot help you. I would not even know where to begin. I am amazed that I have gotten this to work as it is with out something catching on fire or opening a hole to the Nether… there are far better programmers that could help you further than I ever will.
Where is it?
Applications> Utilities> Terminal
What to do with it for now?
Add it to your Dock if you don’t have it there… trust me on this one… you will use it a lot
What code will I need to know?
sudo= superuser… makes things happen. See this for more info
cd= change directory
Quick Tip: Drag a folder into terminal of where you want to go after typing cd[single space] to save from typing.
*** Click “Select Command Line Links” when finishing up MacPorts install, its very important for the next steps***
sudo port install libtool
Be patient, MacPorts is flying through the interwebs getting you files for you. It took about 20 minutes to run its course for me… just enough time to catch up on some music tech news or a little humor.
sudo port install libusb-devel +universal
*** Do not forget the +universal, it’s very important as well!!***
This takes awhile as well, get comfortable and perhaps enjoy a little light reading or a movie (yes, it is that long… your mileage may vary).
If you have troubles with the Macports portion, I have been getting good feedback about the Homebrew version of the install. More on that here. I personally have not tried it yet, but plan to on my next install (plus you gotta love the “Macports driving you to drink? Try Homebrew!” motto)
The avin2 version worked best for me. I had tried two others, but had problems, not sure why… get it here:
Please note, versions vary, I will not be typing out versions numbers for now.
Again, you need the latest unstable
***This is important, or you will get errors. Copy the 3 files from avin2…>NITE>Data to Nite-22.214.171.124>Data. It is ok to replace these files***
SUCCESS? Then keep going… we are almost there. You will need to quit Sample-PointViewer and then…
UPDATE: with Version 1.0 of OSCeleton, you will need to run “make” to build the package before you can run it. Info here
To test, we can use a pre-made Processing example… but its not needed, you can just skip to Max if you wish
Now… getting the data into Max is easy…
For Max you will need the CNMAT objects (which if you don’t have, you really should anyway).
Download/unpack/move it into the Cycling ‘74 folder in Max
I assume if you went this far, you know your way around max a bit… so I will keep this short
Paste this into a new patcher:
Refer to the READ ME files for all of these for more info and settings.
Please let me know if you do anything fun/educational/crazy with this.
I plan to post some examples shortly… been to busy getting it working to experiment yet, hahaha. I will update if you find something I missed.