/* -------------------------------------------------------------------------- * SimpleOpenNI Multi Camera Test * -------------------------------------------------------------------------- * Processing Wrapper for the OpenNI/Kinect library * http://code.google.com/p/simple-openni * -------------------------------------------------------------------------- * prog: Max Rheiner / Interaction Design / zhdk / http://iad.zhdk.ch/ * date: 11/08/2011 (m/d/y) * ---------------------------------------------------------------------------- * Be aware that you shouln't put the cameras at the same usb bus(usb performance!). * On linux/OSX you can use 'lsusb' to see on which bus the camera is * ---------------------------------------------------------------------------- */ import SimpleOpenNI.*; SimpleOpenNI cam1; SimpleOpenNI cam2; void setup() { size(640 * 2 + 10,480 * 2 + 10); // start OpenNI, loads the library SimpleOpenNI.start(); // print all the cams StrVector strList = new StrVector(); SimpleOpenNI.deviceNames(strList); for(int i=0;i