- Home /
How to render GUI on a stereo scene, with Samsung Gear VR and Android?
Hi guys, I've got two cameras for a stereoscopic scene. It looks good. Now I'd like to add some GUI to those cameras, but of course the offset of the stereo cameras broke my idea.
Any idea how to fix this? I would like to be able to see, for example, a 3D Object correctly with left and right eye, with no offset.
Thank you. PS = I'm on Unity 5.5
Answer by This-is-Cole · Jan 18, 2017 at 07:37 PM
Hi Marco. One possible solution is to render the HUD separately with two cameras (both rendering the same image of the HUD) with their Viewport Rects set to half of their horizontal size shifted one to the left and one to the right of the screen, and make sure these camera's Depth is set above the cameras rendering your scene in VR. In theory you'll get the same image for your hud on both sides without an offset.
Your answer
Follow this Question
Related Questions
Gear VR per eye cameras only one works 1 Answer
GearVR rotation stutter InputTracking.GetNodeStates 1 Answer
How to draw a Gui.Layer to a especific camera. 0 Answers
Clamp To The Screen Edge 0 Answers
Realtime Reflections in VR - Cross-eyed 0 Answers