We are about to switch to a new forum software. Until then we have removed the registration on this forum.
setMirror(false) has no effect. It always does mirroring. Is it simpleOpenni bug?
// import library
import SimpleOpenNI.*;
// declare SimpleOpenNI object
SimpleOpenNI context;
// PImage to hold incoming imagery
PImage cam;
void setup() {
// same as Kinect dimensions
size(640, 480);
// initialize SimpleOpenNI object
context = new SimpleOpenNI(this);
if (!context.isInit()) {
// if context.enableUser() returns false
// then the Kinect is not working correctly
// make sure the green light is blinking
println("Kinect not connected!");
exit();
} else {
context.setMirror(false);
context.enableDepth();
context.enableUser();
}
}
void draw() {
// update the SimpleOpenNI object
context.update();
// put the image into a PImage
cam = context.userImage().get();
// display the image
image(cam, 0, 0);
}