- Home /
2 cameras vuforia
Hey all, I'm stuck.
I have two cameras in my scene. One is for my UI and is set to depth 2 and is only showing items on the GUI layer. Clear flags set to proper settings.
My other is the prefab camera from vuforia for augmented reality. Set to depth one and only showing items from the models layer.
Problem is.... The model from the Augmented reality is showing up over my UI.....this is confusing me given that the camera on the UI is set to a higher depth....anyone know what I can try to fix this?
P.s I used 2d sprites to make my UI....
"2 cameras vuforia" as a title does not really tell everyone much what problem you are having. Please consider changing your title to help people to help you. Did you look at this?
I am trying to set up two cameras with vuforia....thanks for the link but I have done that already as I stated in my question.
Answer by smallbit · Jul 24, 2014 at 04:52 AM
In my Vuforia plugin testing project i have the following setup :
Vuforia Camera (ARCamara) Depth 1, clear flags - solid color, culling - mixed (all except UI) GUI camera Depth 1.33, clear flags - don't clear, culling - UI.
All gui is on UI layer, and it works like a charm models don't go behind gui.
I want my models to GO behind the UI....I have create a sort of window where I want the augmented reality to occur but no where else. That's why I am drawing the UI on top. Any suggestions?
Wait just got it working!!!! Yay! Not sure exactly what I did. Looks like my model was too large. The cameras were not pointing in the same direction(didn't think it mattered) anyways. Thanks case closed.
Your answer
Follow this Question
Related Questions
How does Clear Flags on cameras work? 2 Answers
Re: Smooth Camera Lerp with switch statement. 0 Answers
Unity 3D it is possible render mutiple cameras on different layers in the same space? 2 Answers
Sprite prefab instances only render when camera is selected? 0 Answers
transformDirection goes to zero as I look upwards. 0 Answers