Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
dshankar's avatar
dshankar
Honored Guest
10 years ago

Showing GUI only on the 2D desktop mirror, not in Rift

I'm using Unity 5.2.1f3 with the built-in VR integration.

Question 1:
When you set
VRSettings.showDeviceView = false
then the 2D window on the desktop is just grey. How can I render GUI elements, logos & text instructions to just the non-VR 2D window on the desktop?

Question 2:

If VR is enabled in Unity, it makes all cameras stereoscopic & applies head tracking to all of them. How can I tag a camera to ignore VRSettings? It doesn't need head tracking, and should not become stereoscopic. Instead of the Rift, I want to display it on the mainDisplay.

4 Replies

Replies have been turned off for this discussion
  • Figured out question 1. I was still using legacy UI and didn't work. Just use the built-in Unity UI Canvas & elements to put a UI on the mainDisplay.

    Question 2 is still unknown, but I think I can put a non-VR camera into a render texture and display that image on the mainDisplay. However, still not sure how to display stereoscopic/headtracking on that camera. Will investigate further.
  • If you use a camera attached to a render texture, I believe it should stay in 2D w/o tracking.
  • tangentially related
    How to I make a differnt camera to display on the 2d monitor while allowing VR in the HMD?

    Thanks