HYPE_Processing icon indicating copy to clipboard operation
HYPE_Processing copied to clipboard

Test File: Point In Screen / 3D Hitbox Checking

Open snarks opened this issue 12 years ago • 4 comments

test_PointInScreen is up for testing.

Turns out that PApplet has screenX() and screenY() to convert 3d points to 2d

snarks avatar May 28 '13 11:05 snarks

I pushed the Kinect example we were working on / can you update my code to use screenX() and screenY()

hype avatar May 28 '13 16:05 hype

Status update: I'm just gonna lay down what information we have.

Kinect Model

Model 1473 for Xbox 360 (the new one)

Processing Version

2.0b9 (pre release build 9 for 2.0)

Main Issue

When using SimpleOpenNI with Processing 2.0b9 (pre release build 9), our simple depth image sketch runs normally until after about a minute. The red lights from kinect's camera are still visible during this time.

Afterwards, the framerate drops dramatically (but not fully stopped), and the red lights are no longer visible from the camera. The depth image seemed to stop updating. The call to context.update() seems to be the source of the lowered framerate.

Test Sketch Source

import SimpleOpenNI.*;

SimpleOpenNI context;

void setup() {
  context = new SimpleOpenNI(this);
  context.enableDepth();
  size(context.depthWidth(),context.depthHeight());
}

void draw() {
  print("["+frameCount);
  context.update();
  println("]");
  image(context.depthImage(),0,0);
}

Stuff to Test

  • Use Processing 2.0 (stable)
  • Directly use the Java wrapper for OpenNI, instead of Simple OpenNI

snarks avatar Jun 06 '13 08:06 snarks

Using Processing 2.0 (stable) doesn't seem to cut it. I'll try directly using OpenNI instead.

snarks avatar Jun 06 '13 09:06 snarks

I tried using Simple OpenNI with Eclipse (default java, not the processing plugin), and the same thing happens. Now we know that it's probably not an IDE issue.

snarks avatar Jun 10 '13 16:06 snarks