"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

Linking to a new trackable

Hi, I am playing around with the ImageTargets sample. I have so far managed to change the teapot but now I want to use a different target to the preset stonesandchips, I have loaded my image onto the My Trackables page on the vuforia page and obtained the .xml and .dat files. From looking at where similar files are located, I have now saved these into the assets folder alongside the similar files for the stones, chips and tarmac. Now what I want to be able to do is link my replacement for the teapot to these new datasets. Could anyone point me in the right direction of how to do this? Thanks in advance! :-)

DavidBeard

Sat, 06/16/2012 - 19:10

This is for the Android SDK? See: Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData in ImageTargets.cpp for an example. Be sure to declare your DataSet QCAR::DataSet* dataSetMyDataSet = 0; then use dataSetMyDataSet = imageTracker->createDataSet(); dataSetMyDataSet->l

darrendelorme

Sat, 06/16/2012 - 19:55

I'm having the same problem. I'm using the IOS kit and I don't know what file it is I need to define the dataset? I see this was listed but I don't have this file in my project folder set Java_com_qualcomm_QCARSamples_ImageTargets_ImageTa rgets_loadTrackerData in ImageTargets.cpp

@DavidBeard Thanks! I had taken a look at this. To start with if I changed where it says StonesAndChips.xml to myfile.xml it should work with my image right? It currently isn't working.

DavidBeard

Sat, 06/16/2012 - 21:43

That may distort the pose and scaling, but I don't think that it would prevent tracking. Are you seeing any tracking events in the log? Be sure to implement each of the steps shown for StonesAndChips. If this doesn't work, trying removing StonesAndChips and naming your resources StonesAndChips.