ofxOpenNI icon indicating copy to clipboard operation
ofxOpenNI copied to clipboard

Portability Fix

Open eranws opened this issue 12 years ago • 3 comments

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

eranws avatar Jun 02 '12 22:06 eranws

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.

aalmada avatar Jul 24 '12 16:07 aalmada

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 avatar Nov 29 '12 17:11 ghost

Did it myselft.

ghost avatar Dec 11 '12 16:12 ghost