"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Won't Recognize Trackable

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. 

DavidBeard

Tue, 07/10/2012 - 01:00

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?

 

willtrosky

Tue, 07/10/2012 - 11:42

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 -:

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

willtrosky

Tue, 07/10/2012 - 13:47

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.