Skip to main content
Up and Coming
March 6, 2015

[Solved] Unity Build is much darker than Playmode in Editor

For Some Reason my unity builds are much darker than what it looks like in the editor at runtime.

The Ovr Warning box is darker and more opaque. And everything is much darker.
Issue below.


    This topic has been closed for replies.

    17 replies

    SAOTAAuthor
    Up and Coming
    March 18, 2015
    I have tried Default, Default HDR and ARGB32.
    All have this issue.

    This issue only occurs when I am in DX11 mode, not in the editor, only in builds.

    It occurs in both direct and extended.

    It definitely has something to do with linear color space. I have sent you a pm with a basic scene which reproduces this issue. Make sure to build the scene in DX11 to see the issue.
    SAOTAAuthor
    Up and Coming
    March 20, 2015
    What do you know. I solved this by modifying the OVRMainmenu script.
    What this does is enable the now empty menu at runtime. This fixes the Linear color space Issue I had in DX11 builds.

    I've attached it for reference.

    if you would like a fps counter remove the // from line 443
    so
    // OVRUGUI.strFPS = strFPS;

    becomes

    OVRUGUI.strFPS = strFPS;

    BAM! DX11 is a 20fps increase for me so I hope this helps others with this issue.
    Participant
    April 3, 2015
    Unfortunately this didn't fix it for me - unity 5, ovr version 0.50.1 and line was already uncommented but build is still dark (objects appear as black) when built with directx11 and linear colour space... :( Fine in editor however!
    New Participant
    April 4, 2015
    Hi Saota,

    You said you've attached the OVRMainmenu script but it's not here (or am I missing something?)

    Anyhow, can please post/re-attach the script here?

    Thank you
    SAOTAAuthor
    Up and Coming
    April 4, 2015
    Not too sure what happened to the upload. Fix is available here.

    http://forum.unity3d.com/threads/design ... vr.300002/
    New Participant
    April 4, 2015
    Yes, that worked, thank you. The whole post is a great resource by the way.
    New Participant
    January 13, 2018
    Hi, I am getting this error ... at this time. 
    Using 2017.1 with the latest GearVR SDK. The build is really dark. It's not black. It's just really dark. There isn't a OVRMainmenu script in the package either so I don't know what to do about it.
    Is there a solution to this?