gameoverhack / ofxOpenNI

Wrapper for OpenNI, NITE and SensorKinect
gingold.com.au
Other
246 stars 121 forks source link

experimental on Windows 7 with VS2010 doesn't work right #14

Open sloopidoopi opened 11 years ago

sloopidoopi commented 11 years ago

Hi, I've tested the latest experimental version and had some issues with the tracking ( as described in http://forum.openframeworks.cc/index.php/topic,7403.msg46750.html#msg46750 ). After further testing i found some possible problem. At the ofxOpenNI::requestCalibration method ( line 2892) : currentTrackedUsers[nID] = baseUser ; At the moment you assign the baseUser to the map the maskPixelFormat information is lost which causes the problems i had. I added currentTrackedUsers[nID].setMaskPixelFormat(ofPixelFormat::OF_PIXELS_RGBA); to the method. Now most problems seemed to be gone. The tracking works most of the time .(the main problem sometimes is when i leave the camera and come quick back then sometimes the tracking doesn't work. )