Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
wadamw's avatar
wadamw
Explorer
11 years ago

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!

7 Replies

Replies have been turned off for this discussion
  • 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.
  • 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.
  • xhonzi's avatar
    xhonzi
    Honored Guest
    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.
  • 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?
  • 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.
  • 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.
  • "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.