0
votes

Can someone tell me why this is happen? i follow the tutorial from Tango AR to place virtual object in Augmented Reality. After i place the object, the camera freeze and the kitten got duplicate when i move the smartphone. I'm using Unity 5.6.2 and for Lenovo for Tango.

Below are the sample image from my android device.

Duplicate Kitten

2
It is not duplicated object. Basically, tango camera just stops working for some reason. I suggest make a development build, open Android Studio and take a look at logs to see what's wrong. - obywan
got no error on logcat.. everything just fine until i place kitten by touch on surface. and suddenly like the image i shared.. if i minimize the application and go back, sometimes it will do just fine and nothing error. but on the first time always get stuck like that - David Ang
So if I understand you correctly there are no errors even after you place an object and the camera got frozen, right? In that case could you share some code? - obywan
yes. Everything just fine. when i add the object, the camera got frozen. This is the code to add kitten. Same with the tutorial. pastebin.com/TuEFDwwb - David Ang
Yes, it looks fine. I'm giving up. If you want you can zip you project and share a link I will take a look. - obywan

2 Answers

2
votes

Change the camera clear flags from depth to solid color and it should be ok

0
votes

Turn off shadows on your light. That way you can keep the clear flags set to depth.