We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi
I have some problem I can't make enableUser() to true
and I don't know that why 'enableUser' is false....
I connect Kinect and chacked green light
and another code(not used 'enableUser' code) is running....
I don't konw.... ㅜ,ㅜ
OS = OSX 10.9 Processing version = 2.0.3 SimpleOpenNI Version 1.96 this is source code
import SimpleOpenNI.*;
SimpleOpenNI context;
void setup() {
size(640, 480);
context = new SimpleOpenNI(this);
if (context.enableUser()==false) {
// if context.enableScene() returns false
// then the Kinect is not working correctly
// make sure the green light is blinking
println("Kinect not connected!");exit();
} else {
// mirror the image to be more intuitive
context.setMirror(true);
}
}
void draw() {
// update the SimpleOpenNI object
context.update();
// display the image
image(context.userImage(), 0, 0);
}
Answers
Try this code. I hope it helps.