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...
petergiokaris
12 years agoProtege
You can render GUI compnents to a RenderTexture you own.
Create a new RenderTexture, then set it as the active RenderTarget. After you have rendered to it, you can map it to geometry that is attached to the camera or within the world; provided you have rendered the elements properly to a transparent texture, the GUI elements will be rendered properly in stereo to your view.
Please see OVRMainMenu.cs for an example on how to do this.
Create a new RenderTexture, then set it as the active RenderTarget. After you have rendered to it, you can map it to geometry that is attached to the camera or within the world; provided you have rendered the elements properly to a transparent texture, the GUI elements will be rendered properly in stereo to your view.
Please see OVRMainMenu.cs for an example on how to do this.
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