Skip to main content
Up and Coming
February 22, 2015

Black screen in DK2 when running Unity builds

Hello,

I am learning Unity and following a simple tutorial that creates a plane, a cube, and a light in Unity. I know the basics of 3DS Max, but am new to Unity.

https://www.youtube.com/watch?v=xU5_1ivyItg

When I build the project and run its "DirectToRift" exe, The DK2 screens are black, even though the blue light turns on. I also do not see the health and safety warning which should default on a Unity build for Oculus Rift. The on-monitor window is also black (after showing the Unity logo)

I have made sure that:
The Oculus Unity Integration assets are all imported
The OVRPlayerController is above the plane and the light is above the plane illuminating the scene
The only camera in the scene is the OVRPlayerController
Oculus Rift DK2 is in direct mode

If I get rid of the Oculus Unity Integration assets and just use a general "Character Controller" and build my project, everything works fine and I can navigate around my scene (on the monitor only, of course), so I know my project can build fine - it's just the Oculus integration that seems to be causing the issue.

I'm using SDK 0.4.4 and Unity 4.6.2f1. GTX 970. All other demos I've run work fine for me.

Thank you kindly for your help.
    This topic has been closed for replies.

    7 replies

    Up and Coming
    February 22, 2015
    I'm getting the same thing. I don't have a solution yet. Unreal is working just fine for me though.... hmm.
    Up and Coming
    February 24, 2015
    I still get the problem intermittently. On some unity builds, it works. On others, I get the no splash screen and a black screen in the rift. It would be great to isolate what the issue is with the ones that give the black screen.
    Inspiring
    February 24, 2015
    Can you try updating to Unity 4.6.2p2? Also, what OS are you on?
    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
    New Participant
    February 27, 2015
    Hi,

    i had the same problem i searched the web and found this:

    http://www.theappguruz.com/unity/comple ... 2-unity3d/

    "To run your demo in Unity editor you need to disable Use Direct3D 11 option, otherwise black screen will appear in Unity game window when you hit play."

    this works for me hope for you too :mrgreen:

    Regards

    Matze
    New Participant
    February 28, 2015
    I've noticed a similar issue that cropped up today. Added the OVRCameraRig prefab to give me a view of the play area and when selecting the individual eyes in the Hierarchy the preview image just shows a black image. I press play to test and everything seems to work just fine, the game window shows both eyes and I can see the game area no problem. When I go to build the project and run the application (Win8.1 x86_64) I just get a black screen but I can hear the game audio just fine. Doesn't matter if it's Direct to Rift or Extended, result is the same. I've tried uninstalling/reinstalling Unity and also redownloading the integration kit.

    I've done this with other projects and never had any trouble today so I'm not sure what's changed.
    Up and Coming
    February 28, 2015
    While disabling 'Use Direct3D 11' may work for the short term, it is really a bad idea for a public build. The vast majority of users are on DirectX 11.
    Cubicle Ninjas Custom VR App Development Guided Meditation VR for Rift, Gear, and Go
    Up and Coming
    March 1, 2015
    My "solution" has been to move to Unreal instead. Shrug.