Problem seems to be that 2 sketches with
context1 = new SimpleOpenNI(0,this);
and
context2 = new SimpleOpenNI(1,this); or context2 = new
SimpleOpenNI(0,this);
always connect to the same camera.
I'm working with the User3d sample and changed the kinect
initialization to:
// start OpenNI, loads the library
SimpleOpenNI.start();
// print all the cams
StrVector strList = new StrVector();
SimpleOpenNI.deviceNames(strList);
for(int i=0;i<strList.size();i++)
println(i + ":" + strList.get(i));
context1 = new SimpleOpenNI(0,this);
Starting 1 sketch works fine but when firing up the second it reports:
SimpleOpenNI Version 0.26
0:SensorKinect/PrimeSense
1:SensorKinect/PrimeSense
Can't open the depthMap, maybe the camera is not connected!
SimpleOpenNI not initialised
Both do list the 2 cams though. Grrr... I feel we're so close to it!