By DenisIntexsoft
on Wed, 10/16/2013 - 08:23
I want to use ngui in my ar game. But when ngui's camera enabled, ARCamera show nothing from device's camera. Both cameras "clear flags: depth only". ARCamera can show 3D models on scene in this moment, but image from device's camera is missing. NGUI's camera is standard Unity's camera object. Can someone help me with this?
p.s.: sorry for my bad english.
NGUI with vuforia
Try searching the forums for NGUI
N
NGUI with vuforia
NGUI with vuforia
ARCamera needs to have 'Clear flags = Solid Color.'
NGUI with vuforia
Yes, ARCamera's "clear flags" set to "solid color".
NGUI with vuforia
Not sure whether this can work for you or whether you can apply to NGUI, however I have been able to get a GUI camera set up with the help of an extra layer - this acts as an overlay on top of the Unity AR scene, but you have to get the settings just right.
NGUI with vuforia
Thanks for help. I set depth for gui camera "2", and ARCamera = "1" and all works fine.
NGUI with vuforia
Awesome!
N
NGUI with vuforia
We have a same problem sir
NGUI with vuforia
... so have you tried the solution below?
N
NGUI with vuforia
HI all,
I'm having a similar issue getting NGUI to work with Vuforia. In my scene though, I don't have a GUI camera, so I'm unsure of how to apply the proposed solution below.
NGUI with vuforia
I don't have a GUI camera
Well, why not just try it?
Have a look at the images I posted up to get the structure and try it out?
N
NGUI with vuforia
I'm currently digging through the Unity forum to find out how to add a GUI Camera (which is not listed in the GameObject > Create menu.
NGUI with vuforia
Also see: http://www.tasharen.com/forum/index.php?topic=5825.0
NGUI with vuforia
I've seen that thread and am currently trying out that method as well, thank you.
NGUI with vuforia
HI guys ,do you solved the problem at present???
NGUI with vuforia
Search the forums for NGUI - people have solved this.
Have you looked at my post below with the screenshots?
N
NGUI with vuforia
I've got this working fine. No sorcery needed.
I just made sure that I'm up to the latest version of everything, added my AR Camera first, THEN the NGUI setup, and it all worked perfectly, right out of the box (running on a new iPad Air).
NGUI with vuforia
Just ran into this problem, maybe not exactly the same issue but I resolved it by checking camera render order and making sure the ngui camera has a higher 'Depth' value than the vuforia camera.
NGUI with vuforia
How to change Depth camera value ?
Could you explain it to me ?
Thank you
Sorry, I'm newbie.
NGUI with vuforia
If you click on each Camera in your scene (in the Unity Editor), you will see that the Inspector panel of the camera contains a property field called "Depth"; just enter a number for that field.