Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portability Fix #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Portability Fix #12

wants to merge 2 commits into from

Conversation

eranws
Copy link

@eranws eranws commented Jun 2, 2012

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
Copy link

aalmada commented Jul 24, 2012

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
Copy link

ghost commented Nov 29, 2012

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
Copy link

ghost commented Dec 11, 2012

Did it myselft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants