Log in or register to post comments

NGUI with vuforia

October 16, 2013 - 1:23am #1

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

December 7, 2014 - 11:31pm #21

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. For example, if the ARCamera has a Depth of "0", you can put "1" in the NGUI Camera.

 

NGUI with vuforia

December 7, 2014 - 8:28pm #20

How to change Depth camera value ?

Could you explain it to me ?

Thank you

Sorry, I'm newbie.

NGUI with vuforia

July 3, 2014 - 4:33pm #19

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

February 12, 2014 - 6:23am #18

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

February 12, 2014 - 1:04am #17

Search the forums for NGUI - people have solved this.

Have you looked at my post below with the screenshots?

N

NGUI with vuforia

February 12, 2014 - 12:46am #16

HI guys ,do you solved the problem at present???

NGUI with vuforia

January 24, 2014 - 11:05am #15

I've seen that thread and am currently trying out that method as well, thank you.

NGUI with vuforia

January 24, 2014 - 11:02am #14

NGUI with vuforia

January 24, 2014 - 10:50am #13

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.

I'm relatively new to the workflow (obviously) and this element is unknown to me (I've worked with the GUISkins, and attached the button system to the ARCamera just fine).

NGUI with vuforia

January 24, 2014 - 10:38am #12

 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

January 24, 2014 - 10:26am #11

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.

The three items on the top level of my scene are: ARCamera, UIRoot, and Image Target. Any thoughts on things I can try?

Thanks in advance.

NGUI with vuforia

January 2, 2014 - 2:19am #10

... so have you tried the solution below?

 

N

NGUI with vuforia

December 31, 2013 - 9:50pm #9

We have a same problem sir

NGUI with vuforia

October 17, 2013 - 6:26am #8

Awesome!

N

NGUI with vuforia

October 17, 2013 - 5:40am #7

Thanks for help. I set depth for gui camera "2", and ARCamera = "1" and all works fine.

NGUI with vuforia

October 17, 2013 - 3:40am #6

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.

I have attached two images - one shows the setup of the AR Camera and one for the GUI Camera - make sure you check the Culling Mask and the Clear Flags.

 

HTH

 

N

AttachmentSize
Image icon ARCamera for GUI.png411.7 KB
Image icon GUI Camera for GUI.png434.48 KB

NGUI with vuforia

October 17, 2013 - 12:20am #5

Yes, ARCamera's "clear flags" set to "solid color".

NGUI with vuforia

October 17, 2013 - 12:07am #4

ARCamera needs to have 'Clear flags = Solid Color.'

 

 

NGUI with vuforia

October 16, 2013 - 11:31pm #3

NGUI not guilty. I just added standard unity's camera and ARCamera doesn't show image from camera. This bug reproduced only on iOS. On Android work fine.

NGUI with vuforia

October 16, 2013 - 2:14am #2

Try searching the forums for NGUI

N

Log in or register to post comments