"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

change ImageTarget to another Image instead of stones.jpg

Hi there, i have a problem here,

i want to change my image target to another image instead of the stones.jpg and chips.jpg, so i tried to  change this code

if (!dataSetStonesAndChips->load("StonesAndChips.xml", QCAR::DataSet::STORAGE_APPRESOURCE))

to this

if (!dataSetStonesAndChips->load("grass.xml", QCAR::DataSet::STORAGE_APPRESOURCE))

also i have imported my grass.jpg into /media, my grass.xml and grass.dat into my  /assets. but there was nothing happen, my object didn't show in my android.

i wonder what the problem, was it because i did wrong to the code, or the image is not good to be an ImageTarget? this, is the image that i used to my application http://gurusakti.files.wordpress.com/2012/02/marker2.gif

I did your suggesion, i also tried to upload my Images and pick one which had the stars at the most. and finally my object appeared on my image target, but the size changed to very very small. i must change the kObjectScale value into 800 to make it fit.

AlessandroB

Tue, 10/30/2012 - 08:14

The problem is that if you increase the size of your Image Target, then in a certain way, QCAR will adjust the "world size" with respect to your camera;

if you like, you can think of it as if you are changing the unit of measure in your world;

masbejo40

Sat, 11/03/2012 - 10:41

i have problem to change image target to another image. i have been change this code:

 

if (!dataSetStonesAndChips->load("StonesAndChips.xml", QCAR::DataSet::STORAGE_APPRESOURCE)) //diubah { LOG("Failed to load data set."); return 0; }