This is all very preliminary, but here is a first pass as a Processing Kinect library:
http://www.shiffman.net/p5/kinect.zip
(Mac OSX only for now, sorry!)
UPDATE (12/18/10): New version of the library can be downloaded from github:
Source: https://github.com/shiffman/libfreenect/tree/master/wrappers/java/processing
None of this would have been possible without the heroic efforts of Hector Martin, the OpenKinect project, and various members of the openFrameworks community. There’s a great thread with discussion and code here:
http://www.openframeworks.cc/forum/viewtopic.php?f=14&t=4947
Video in action here:
Processing code looks like:
import shiffman.kinect.*; PImage img; PImage depth; void setup() { size(640,240); NativeKinect.init(); img = createImage(640,480,RGB); depth = createImage(640,480,RGB); } void draw() { NativeKinect.update(); img.pixels = NativeKinect.getPixels(); img.updatePixels(); depth.pixels = NativeKinect.getDepthMap(); depth.updatePixels(); image(img,0,0,320,240); image(depth,320,0,320,240); }
