kylemcdonald / ofxFaceTracker

CLM face tracking addon for openFrameworks based on Jason Saragih's FaceTracker.
http://facetracker.net/
Other
1.39k stars 371 forks source link

Problems reading model files #55

Open mstllc opened 10 years ago

mstllc commented 10 years ago

I've cloned this repo, along with ofxCV and FaceSubstitution. I rebuilt the FaceSubstitution project using the ofProjectGenerator and linked all the current projects. The project does compile fine, but immidiately crashes upon launch with the following console output:

DVFreeThread - CFMachPortCreateWithPort hack = 0x3551190, fPowerNotifyPort= 0x3550590 DVFreeThread - CFMachPortCreateWithPort hack = 0x335a2a0, fPowerNotifyPort= 0x335a050 DVFreeThread - CFMachPortCreateWithPort hack = 0x335bb50, fPowerNotifyPort= 0x335a220 [notice ] ofFbo: checkGLSupport(): maxColorAttachments: 8, maxDrawBuffers: 8, maxSamples: 8 [notice ] ofFbo: checkGLSupport(): maxColorAttachments: 8, maxDrawBuffers: 8, maxSamples: 8 [notice ] ofFbo: checkGLSupport(): maxColorAttachments: 8, maxDrawBuffers: 8, maxSamples: 8 [notice ] ofFbo: checkGLSupport(): maxColorAttachments: 8, maxDrawBuffers: 8, maxSamples: 8 [notice ] ofFbo: checkGLSupport(): maxColorAttachments: 8, maxDrawBuffers: 8, maxSamples: 8 [ error ] Make sure you've placed the files face2.tracker, face.tri and face.con in the data/model/ folder. Assertion failed: (s.is_open()), function Load, file /Users/thorson/openFrameworks/of_v0.8.0_osx_release/addons/ofxFaceTracker/libs/FaceTracker/src/lib/Tracker.cc, line 59.

I read the Readme on the home page and definitely have the model files in the bin/data/model directory of this project (see screenshot) screen shot 2013-10-27 at 2 36 42 pm

Can you think of any reason this would still be failing to read the model files? I'm using the most recent openFrameworks version 0.8.0, pulled off the website this morning.

Thanks, let me know if I can provide more info.

mstllc commented 10 years ago

Actually it looks like I either needed to update my ofDataPathRoot or add a build phase to copy the data directory to my application.

kylemcdonald commented 10 years ago

yes, if you want to submit a PR for an updated project file that'd be great.