Search Unity

GearVR in linear space - problem - dark image

Discussion in 'AR/VR (XR) Discussion' started by Raqus, Feb 7, 2017.

  1. Raqus

    Raqus

    Joined:
    Jul 29, 2014
    Posts:
    2
    Hello
    We've started developing to gearvr and immediately strange problem appeared.
    If the game uses linear workflow, colors on the gearvr are really dark.
    When we change the color space to gamma, colors are ok (colors on gearvr are identical as colors in editor)
    Do you know what have to be done to properly run a game on GearVr in the linear space?
    or maybe gearvr doesn't support the linear color space
    I really appreciate any help you can provide.
    Greg
     
  2. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    45
    I would like to second this. Just discovered this today. I have been going crazy wondering why my lightmaps weren't working.

    Glad I'm not the only one
     
  3. DIAMINNOV

    DIAMINNOV

    Joined:
    Feb 15, 2017
    Posts:
    1
    yes its Darker on Linear for some reason
     
  4. Metron

    Metron

    Joined:
    Aug 24, 2009
    Posts:
    975
    Same observation here... Unity 5.5.1p3...

    Was quite a pity to get the colors correct
     
  5. Bryan-Lin

    Bryan-Lin

    Joined:
    Oct 30, 2014
    Posts:
    7
    Same observation here... Unity 5.6.0f1
     
  6. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    6,435
    Are the colors fine in the editor? Gamma is significantly different than Linear, and generally Linear is darker. Just want to make sure what you're seeing isn't standard behavior.

    Some side-by-side image comparisons would be useful.
     
  7. Andrei_S

    Andrei_S

    Joined:
    Oct 31, 2012
    Posts:
    11
    I am experiencing the same problem. I took two screenshots using C# code, one using Gamma (ScreenshotGammaC#.png) and the other using Linear (ScreenshotLinearC#.png). You can see the subtle expected difference. Both screenshots from GearVR using the default Unity scene with a Cube, version 5.6.0f3.

    But when using Linear, what the screenshot shows is not what I am seeing on the GearVR. So I took two screenshots from the smartphone screen while connected to the GearVR. There you can see that the Linear scene is much darker than it should. (GammaScreen.jpg and LinearScreen.jpg)
     

    Attached Files:

  8. Andrei_S

    Andrei_S

    Joined:
    Oct 31, 2012
    Posts:
    11
    As answered here, it is a known issue. I'll have to use Gamma for now.
     
  9. mehrankan

    mehrankan

    Joined:
    Apr 12, 2015
    Posts:
    55
    have you noticed that even in the same space there is a color transform that is happening ? like how the pic of gamma space, when compared to the screenshot of gamma space, looks more saturated and contrasted. do you know how to avoid THAT? I have been tearing my hair out because of this color transform but there is no documentation about this anywhere.
     
  10. Andrei_S

    Andrei_S

    Joined:
    Oct 31, 2012
    Posts:
    11
    Mmm... Try to ask that on Oculus Forums, the same forum from the link on my previous answer. For me it seems like the difference you got from two different monitors.
     
  11. vectorCharlie_f

    vectorCharlie_f

    Joined:
    Sep 12, 2017
    Posts:
    10
    Has anyone checked to see if this is fixed in Unity 2017.2?
     
  12. makoto28

    makoto28

    Joined:
    Oct 27, 2016
    Posts:
    3
    I have same issue with Unity
    I have same issue with 2017.2.03f and Samsung Note 8
     
  13. sisermann

    sisermann

    Joined:
    Jun 27, 2013
    Posts:
    21
    Problem persists with 2017.3.0 ...
     
  14. RMGK

    RMGK

    Joined:
    Sep 30, 2011
    Posts:
    56
    So I did a similar experiment. Everyone is recommending using Linear for VR but when I asked an Oculus rep, he said that you need to use Gamma for mobile (GearVR). Gamma, from my tests, produces a better-predicted result.
    If you take the time to look at that link to the OVR forums, they say its a known issue with the Qualcomm sRGB drivers.
     
    Last edited: Feb 15, 2018
    ZoiX likes this.
  15. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    45
    Just want to update this.

    Using 2017.4.5f1 and the issue still remains.

    Still stuck using Gamma color space.
     
  16. SoloChristian

    SoloChristian

    Joined:
    Oct 9, 2012
    Posts:
    645
    Using Unity 2018.1.6f1 and the problem still exists....
     
  17. ZoiX

    ZoiX

    Joined:
    Feb 9, 2017
    Posts:
    7
    That's true, even the Tech Note from Oculus mentions that Linear is the right one, but the Oculus Staff recommends to use Gamma due to an issue with Unity on Android.
     
  18. WindyYam

    WindyYam

    Joined:
    Nov 1, 2017
    Posts:
    1
    Even with the newest unity (2018.2.3f1) this issue still exists.
    The problem is that framebuffer outputs linear result without gamma correction to screen
    Have to do manually gamma correction or color grading with post effects. This costs cpu/gpu cycles
     
  19. EpicCubeStudio

    EpicCubeStudio

    Joined:
    Jul 3, 2012
    Posts:
    62
  20. Clavus

    Clavus

    Joined:
    Jun 6, 2014
    Posts:
    14
    I see in the Unity 2017.4.14 notes that the Linear Color Space issue should be fixed for the Oculus Go and Oculus Quest. When can we expect to see this fix for Unity 2018? It's not in as of 2018.2.15, the image on my Go is still darker than on PC.
     
  21. Sanyol

    Sanyol

    Joined:
    Jan 28, 2013
    Posts:
    18
    any news about this issue?
     
  22. GuillaumeZAHRA

    GuillaumeZAHRA

    Joined:
    Jan 5, 2013
    Posts:
    51
    I don't have tested yet but on the Unity 2018.3.0 release note, you can see this:

     
    eovento likes this.
  23. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    285
    [Edit] Please ignore me... I had Gamma selected in the player settings :(

    This is still not working correctly as of 2018.3.4 on Quest with latest Plugins.
     
    Last edited: Feb 21, 2019
  24. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    269
    Still the same issue, on Quest, latest Unity 2019.2.0a13, latest Oculus Utilities, latest LWRP.
    Has anyone filed a proper bug report? Otherwise I will.
     
  25. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    911
    2019.2.0a15 should have this fixed.