Forum Discussion
Mickman
12 years agoProtege
WHY !! Gui elements only visible in one eye ??
I have noticed all of my Gui elements only render to one camera. Why & how can I rectify this ?? I'm hoping there's a simple function in the SDK or a tag I can apply that will dupl...
klyemar
12 years agoHonored Guest
Map the RenderTexture to a quad and parent the quad to the right camera so that if you looked at your player in the editor, it will appear that there's a GUI floating in front of him Minority Report style. The RenderTexture is rendering the GUI onto the quad which is merely a piece of floating geometry in the world space.
I personally create an empty game object that I attach to the right camera called GUI, and attach an individual quad for each element. I don't use a RenderTexture, I use icons and text meshes each mapped to their own quad. The reason I use separate quads is because once you've grouped them together, you can get some really cool stereoscopic effects by placing text elements slightly closer to the camera. :)
I do recommend making use of an unlit overlay shader as described here, to prevent the GUI from clipping through geometry.
I personally create an empty game object that I attach to the right camera called GUI, and attach an individual quad for each element. I don't use a RenderTexture, I use icons and text meshes each mapped to their own quad. The reason I use separate quads is because once you've grouped them together, you can get some really cool stereoscopic effects by placing text elements slightly closer to the camera. :)
I do recommend making use of an unlit overlay shader as described here, to prevent the GUI from clipping through geometry.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago
- 1 year ago
- 4 months ago
- 11 days ago