Log in or register to post comments

Simple game development in Android with AR

April 12, 2014 - 4:46pm #1

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

April 19, 2014 - 9:37am #7

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 :(

Simple game development in Android with AR

April 15, 2014 - 12:50am #6

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...   to my knowledge, there is nothing specific in Vuforia that could interfere with your objects setings, so, there must be some incorrect settings in your object....  but nothing really to do with the use of Vuforia.

 

Simple game development in Android with AR

April 14, 2014 - 8:37pm #5

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

April 14, 2014 - 1:42am #4

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

April 13, 2014 - 4:11pm #3

Thanks for your reply.

 

There is a problem with the prefab that is to be rendered on the image target. The prefab is displayed on the marker but the problem is that is display as blue in color instead of brown. I tried attaching other prefabs as well but I am getting same result i.e. its actual colour is not displayed and gets blue in colour. I am attaching the screenshot for the same. Can you please tell me what is wrong?

 

Regards,

Bhagyashree Shah

AttachmentSize
Image icon Screenshot_2014-04-13-18-08-16.png162.41 KB

Simple game development in Android with AR

April 13, 2014 - 12:40pm #2

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

https://developer.vuforia.com/forum/faq/unity-how-can-i-dynamically-attach-my-3d-model-image-target

 

Log in or register to post comments