By willtrosky
on Tue, 07/10/2012 - 00:42
I'm editing the VideoPlayback example.
I have created a new Trackable with stones, chips, & my new image. I have downloaded the xml and dat and placed them in my project.
I have changed the NUM_VIDEO_TARGETS from 2 to 3.
In renderFrameQCAR I have added:
<code>
if (strcmp(trackable-:getName(), "MyNewImage") == 0)
{
playerIndex = 2;
}
</code>
The system does not recognize my image as a trackable.
Won't Recognize Trackable
If that's copied from your code, you have a syntax error..
Should be trackable->getName()
Also did you add this dataset at ln 122 in VideoPlaybackAppDelegate.mm?
Won't Recognize Trackable
That is not a copy of my code, it was a retype and a typo. I was working on two different machines. My code does have the ->, not the -:
Won't Recognize Trackable
Hi willtrosky,
Can I suggest to break down the problem first by taking your image and putting it into its own dataset first i.e. without ChipsAndStones.
This simply needs the following line added before chips and stones
Won't Recognize Trackable
Phineas J. Whoopie, you're a genius!* The key was the BuildPhases/CopyBundleResources. It now recognizes my trackable, it plays the wrong video, but it recognizes my trackable. One step closer to success.
Won't Recognize Trackable
cool - reallly pleased it worked out for you!
happy to help :)