By hoaxman
on Mon, 03/03/2014 - 20:43
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
change ImageTarget to another Image instead of stones.jpg
Hi Dear
Could you help and tell me where is this code can be found to modify
if (!dataSetStonesAndChips->load("StonesAndChips.xml", QCAR::DataSet::STORAGE_APPRESOURCE))
change ImageTarget to another Image instead of stones.jpg
Hi asabbour,
that code is in ImageTargets.cpp, which is located under the JNI folder in your sample project directory.
change ImageTarget to another Image instead of stones.jpg
Thanks for prompt reply :)
change ImageTarget to another Image instead of stones.jpg
you're welcome.
change ImageTarget to another Image instead of stones.jpg
Could you give me a help in this
Android - How do I add another target to the Video Playback samp
i'm just wondering how can i add a thumbnail for the new vide that will appear before press play button.
Thanks
change ImageTarget to another Image instead of stones.jpg
Hi, in order to add an extra thumbnail, you need to modify the loadTextures() method in VideoPlayback.java, to accomodate the extra texture:
change ImageTarget to another Image instead of stones.jpg
Ya it's working, Thanks a lot
change ImageTarget to another Image instead of stones.jpg
Glad to help!
change ImageTarget to another Image instead of stones.jpg
Hi hoaxman,
I tried to upload your image (after converting it from GIF to JPG) to the online Target Management System, and the result is that the 5-star Tracking Rate is quite low, just: 1.
change ImageTarget to another Image instead of stones.jpg
thx for your fast reply Alessandro :)
yeah, i noticed the rating of my image, only had one star. and yeah, maybe i should try to find another image that has 3 or more stars to make sure it can be easily detected to the camera.
change ImageTarget to another Image instead of stones.jpg
About the code: yes, your code change is sufficient, as long as you put your new dataset (TestAR.xml and TestAR.dat) in the /assets folder, which is what you do already, right ? so that's fine!
change ImageTarget to another Image instead of stones.jpg
once again, thank you for the explanation and suggesion, it is very helpfull for me :D
well i'll try it tomorrow 'cause it's already midnight at my place, i think i should go to sleep for a while, ahaha
change ImageTarget to another Image instead of stones.jpg
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.
change ImageTarget to another Image instead of stones.jpg
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;
change ImageTarget to another Image instead of stones.jpg
waw, your explanation is so helpfull Alessandro, you explained it very clear to me, now i understand the concept of the "world size" of our ImageTarget.. thank you very much..
change ImageTarget to another Image instead of stones.jpg
You're welcome.
change ImageTarget to another Image instead of stones.jpg
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; }
change ImageTarget to another Image instead of stones.jpg
After the change, did you do an ndk-build on the project, then clean and rebuild the main project to force it to use the new native library?
change ImageTarget to another Image instead of stones.jpg
thanks duane, i forgot to clean it first.
change ImageTarget to another Image instead of stones.jpg
I just want my ImageTarget to be invisible so my animatiuon can be seen below the target.
When i apply a Unlit / trans shader it gets swapped back at runtime...anyideas?
change ImageTarget to another Image instead of stones.jpg
Hi, this sounds like a Unity 3D question; please post it in the Unity section of the Forum.
Thanks.