gameoverhack / ofxOpenNI

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

Portability Fix #12

Open eranws opened 12 years ago

eranws commented 12 years ago

Hi Matt, I've fixed some portability issues with your ofx addon. Now the solution is compiling out of the box.

the openni.lib is placed under {OF_DIR}\libs\openni\lib\vs2010 the sample directory shifted up one directory (hope it doesn't break on mac build) - it's easier that way than to have multiple directories across ofx dir. (copying outside the git dir is a bummer when branching/switching, etc.)

please review it and merge it in if you like.

Cheers, Eran

aalmada commented 11 years ago

Why not use environment variables to find OpenNI and NIT files? They automatically add these when installing. I used OPEN_NI_INCLUDE, OPEN_NI_LIB and XN_NITE_INSTALL_PATH in my fork and the project compiles and links fine.

ghost commented 11 years ago

May you tellme how can i disable the skeleton tracking when im executing a .oni recorded video? Im trying to capture myself and play the recorded video at same time and when im tracking my selft and I launch de video, the system starts tracking the video instead of me :(

I want to show in screen both images: recordImage.draw(0, 0, 640, 480); // Me, being tracked. I want to track myself imitating a recorded video playImage.draw(640, 0, 640, 480); //Me, in a recorded video.

My problem is, that when im tracking myself, i want to show recorded videos without tracking the previously recorded .oni I just want to put a recorded video in the screen. So when im tracking myself, I press a key and the video starts, but then the recordImage screen get frozen and the system starts tracking the video over the frozen image.

Here is an example: http://tinypic.com/r/1zn777n/6 When i start playing the recorded video, the system stops tracking me and starts tracking the video :(

void testApp::draw(){

ofSetColor(255, 255, 255);
glPushMatrix();
glScalef(0.75, 0.75, 0.75);

if (isLive) {

recordImage.draw(0, 0, 640, 480);

if (isplayback){
    playImage.draw(640, 0, 640, 480);
    }
if (isTracking) {
    /////////////////////////////////////////////////////////
    recordUser.draw();
    ////////////////////////////////////////////////////
    }
} else {
    recordImage.draw(0, 0, 640, 480);
    playImage.draw(640, 0, 640, 480);

    if (isTracking) {
        playUser.draw();
    }
}

}

I beg for help. Thanks.

ghost commented 11 years ago

Did it myselft.