Forum Discussion

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

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.

7 Replies

Replies have been turned off for this discussion
  • I'm getting the same thing. I don't have a solution yet. Unreal is working just fine for me though.... hmm.
  • 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.
  • flypix's avatar
    flypix
    Honored Guest
    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
  • Sandkat's avatar
    Sandkat
    Honored Guest
    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.
  • 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.