Skip to main content
Participant
September 29, 2015

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.
    This topic has been closed for replies.

    4 replies

    dshankarAuthor
    Participant
    September 29, 2015
    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.
    Software engineer, startup founder, Y Combinator alum. @dshankar
    Inspiring
    September 29, 2015
    If you use a camera attached to a render texture, I believe it should stay in 2D w/o tracking.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    October 1, 2015
    tangentially related
    How to I make a differnt camera to display on the 2d monitor while allowing VR in the HMD?

    Thanks
    Inspiring
    October 1, 2015
    @wheatgrinder: See this thread for details: viewtopic.php?f=37&t=26369
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV