elliotwoods / ofxKinectForWindows2

Implementation of Kinect For Windows v2 API (not using KinectCommonBridge)
163 stars 70 forks source link

kinect.getDepthSource()->getMesh() returns plain plane #89

Closed CharStiles closed 3 years ago

CharStiles commented 5 years ago

Hi, thanks for making this addon! Its wonderful to have access to kinect on windows in OF. I was wondering why these lines return a blank mesh, i.e. a plane. ofxKFW2::Device kinect; kinect.open(); kinect.initDepthSource(); ofMesh scanFull = kinect.getDepthSource()->getMesh(); I am using VS 2017 with a kinect v2. The IR returns a texture fine, I haven't been using the depth texture because it lacks details. its either the same gray color or black, no inbetween values. I'm not sure if thats relevant i can provide more details if needed! I am invested in the future of this addon.

elliotwoods commented 5 years ago

hey! that should work fine are you calling kinect.update() each frame also?

elliotwoods commented 5 years ago

Also note that the first few frames are often blank whilst the device initialises (so you can't test for a valid mesh until you've been calling kinect.update() for a couple of seconds

elliotwoods commented 3 years ago

Closing