Hi,
I am new to this forum. I had a doubt regarding interaction between AR trackables and game objects. I am developing a simple game for understanding android, unity and AR. My game is catching eggs in the bucket. My question is how can we render an image target and gameobjects simultaneously. I tried rendering both together but then once image target is displayed on the trackable, my other gameobjects which are not dependent on the a marker are not displayed. For example if I try to embed a plane on to a marker then my code for spawning the eggs and the gameobject (bucket) that catches them disappears from the screen. I don't know if this question or something relevant was asked before on this forum, but if it was then please redirect me to that thread since I could not find anything related to it. Any sort of help will be appreciated.
Thanks in advance.
Regards,
Bhagyashree Shah
Simple game development in Android with AR
Sounds more like an "application logic" question and/or a general programming question...
Anyway, these 2 articles might help:
https://developer.vuforia.com/forum/faq/unity-how-do-i-get-list-active-trackables
Simple game development in Android with AR
Thanks for your reply.
Simple game development in Android with AR
Have you checked that the prefab has the right material ? and also, have you added a light to the scene ? Those are few thing to check, but there may be others....
again, this is something wrong in your Unity app, but it has really not much to do with Vuforia...
Simple game development in Android with AR
I have added light to the scene. But then what do you mean when you say prefab has the right material. I didn't get you. And what can be other problems to it as you mentioned?
Simple game development in Android with AR
I mean, click on your object in the Scene and look at the inspector... check the materials, and see if the material and shaders look correct...
Simple game development in Android with AR
I did check the materials and shaders for the objects under the ImageTarget in the hierarchy. They all look fine. I still cannot get as to why this problem is occuring. Please help :(