Log in or register to post comments

ImageTarget change with each model

November 29, 2013 - 4:20am #1

ARCamera set Max simultaneous 2 and tick Load data set stones & tarmac. Then ImageTarget  Dataset & imagetarget tarmac for first model. Tarmac image having cow madel. Then i want to change the image for second model (elephant). Then choosen Stones image in Dataset and placed elephant model in scene. But the cow model is still presenting. How can i remove the cow model. Is i need to delete from Hierarchy? I moved cow model some distance for 2nd image. And placed elephant model on stones image. But, after running the app on device when i point the camera, cow model one disaplying for all images. Where i did mistake? See the images.

AttachmentSize
Binary Data bytes
Image icon cow_tarmac.png242.62 KB
Image icon elephant_stones.png175.3 KB

ImageTarget change with each model

December 19, 2013 - 4:16am #3

I tried with Transform.parent. But it is not working. Can you explain more clear. I didn't understand. Also ImageTarget Behaviour Dataset & ImageTarget, i set stones then put the elephant obj model, moved the cow model to some other place. Then set the tarmac put the cow model on the tarmac, moved the elephant model to some other place. Then run the app, stones & tarmac showing cow model only. I didn't understand proper.  Also created one script paste code from below link then drag the script to cow model & elephant model. But it's not working. Link: http://docs.unity3d.com/Documentation/ScriptReference/Transform-parent.html

ImageTarget change with each model

November 29, 2013 - 7:42am #2

You can specifically disable rendering on the Cow, or you can re-parent the Cow to another object by reassigning its transform.parent.

http://docs.unity3d.com/Documentation/ScriptReference/Transform-parent.html

and see Adding Content to a Target - https://developer.vuforia.com/resources/dev-guide/swappable-databases-unity

Log in or register to post comments