Skip to main content
Up and Coming
June 5, 2015

Works fine in Unity Editor - Build All black on wrong screen

I'm using Unity 4.6.5f1 (recently upgraded) and OVR 0.6.0. on a project I've been working with without issue for quite a while.

Since updating though a strange issue has emerged. The game plays fine in Unity's editor, but when launching the build, my main monitor goes completely black - although I can hear the game running. Meanwhile, on the Rift, the desktop is visible.

Some details (that haven't changed since before the upgrade)
I'm using Extend Desktop to the HMD on the Rift Display Mode.
My player settings:
BuildSettings.PNG

Any help on what I might be doing wrong would be greatly appreciated. Thanks!
    This topic has been closed for replies.

    7 replies

    wadamwAuthor
    Up and Coming
    June 5, 2015
    One other note...I'm using Deferred Rendering. Not sure if that is relevant or not, but it seems to be an issue in another thread.
    Participant
    June 18, 2015
    I'm having the same problem.

    I'm using the OVR package, since for my application I need access to the individual eye cameras.

    In the editor, everything works fine, but the build gives me a black screen. I see the cursor in the Rift when I move it to the Rift screen and the blue light comes on. However, when I'm not running a Rift application, I don't see the desktop backrground; it's just black. I can move Windows to the Rift desktop and see them.

    An older application built in Unity 5.0, then with Oculus RunTime and Unity package 4.3, runs fine, even with the 0.6.0 runtime.
    Up and Coming
    June 18, 2015
    If you still have a _DirectToRift.exe lying about, give it a shot and see if it works. At least keeps the main monitor from turning black.
    Inspiring
    June 18, 2015
    Is this problem just with Unity apps you build yourself or does it happen with apps from Oculus Share or the demo scene on the Config Util?
    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
    Participant
    June 19, 2015
    I tried running a couple of demos, "SpaceRock" and "CyberSpaceDK2", and didn't see those on the Rift, either.

    Curiously, when I move the Rift display to the left of laptop display using Windows "Screen Resolution" utility, I do see the desktop background on the Rift, and my application shows up on the laptop screen.
    Inspiring
    June 19, 2015
    Immediately after double-clicking the game exe file, press Shift (or Control or Alt) and then the Unity resolution dialog should show up. Then you can select the Display 2 (or whichever one is the Rift). See if that helps.
    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
    Participant
    June 19, 2015
    "cybereality" wrote:
    Immediately after double-clicking the game exe file, press Shift (or Control or Alt) and then the Unity resolution dialog should show up. Then you can select the Display 2 (or whichever one is the Rift). See if that helps.


    Thx. I do get it to show up in the rift in "Windowed" mode. Otherwise, behavior is what the same.

    Setting to run in windowed mode is an acceptable work-around, since the Rift display doesn't show the window border.