Search Unity

Bug Very high contrast and saturation on android build (LWRP)

Discussion in 'Android' started by Quittern, Jun 5, 2019.

  1. onurerler

    onurerler

    Joined:
    Apr 10, 2013
    Posts:
    35
    Case 1219635
     
    ernestask and aleksandrk like this.
  2. JesOb

    JesOb

    Joined:
    Sep 3, 2012
    Posts:
    1,109
    Just link all files screen shots and everything you have to Unity bug report
    upload_2020-2-14_13-2-51.png
     
    onurerler likes this.
  3. onurerler

    onurerler

    Joined:
    Apr 10, 2013
    Posts:
    35
    thanks.
     
  4. nntgam

    nntgam

    Joined:
    Mar 9, 2019
    Posts:
    9
    hello, this bug is fixed on which version??
     
  5. onurerler

    onurerler

    Joined:
    Apr 10, 2013
    Posts:
    35
    They didn't fix it yet
     
  6. marin1317

    marin1317

    Joined:
    Feb 14, 2020
    Posts:
    2
    if u want easily see this bug, use app player like bluestack
    with linear colorspace
     
  7. lardean_5pg

    lardean_5pg

    Joined:
    Jun 6, 2019
    Posts:
    1
    Hi, in case you can't reproduce it, I created a bug ticket and also attached the unitypackage.
    This is the link to the ticket: https://fogbugz.unity3d.com/default.asp?1222779_lprdud4rrlm1i83a
     
  8. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    @lardean_5pg thanks! The more test cases we have, the better :)
     
  9. drallcom3

    drallcom3

    Joined:
    Feb 12, 2017
    Posts:
    165
    I opened a ticket, too. Basically linear color space results in dark UI colors (3D is fine) on old-ish devices. Simply switching to gamma resolves it.
    Galaxy Tab 2 and Nexus 4 have the issue. Pixel 2 and everything in the editor don't.

    In short, URP/LWRP + linear is not usable for production.
     
  10. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    A fix is on the way. We're making sure it doesn't regress XR performance. I'll post here when the fix land.
     
  11. Captain_Flaush

    Captain_Flaush

    Joined:
    Apr 20, 2017
    Posts:
    65
    When would the fix be released ?
     
  12. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    As soon as it's ready.
     
  13. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    Hi!
    The fix is going to be available in Unity 2019.3.9f1.
    If you have problems with UI Screen Space Overlay: please go to the Player settings after updating to the version above and set Android Blit Type to Auto.
    Thank you for your patience.
     
  14. onurerler

    onurerler

    Joined:
    Apr 10, 2013
    Posts:
    35
    Could you please give us release time of Unity 2019.3.9f1. ?
     
  15. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    @onurerler nope, sorry
    there is a planned release date, but it might move if e.g. some critical bug is found, so I don't want to promise things
     
  16. onurerler

    onurerler

    Joined:
    Apr 10, 2013
    Posts:
    35
    I mean i need to know that will you release Unity 2019.3.8f1 than Unity 2019.3.9f1 or next release will be Unity 2019.3.9f1 ?
     
  17. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    2019.3.8f1 should come first.
     
  18. onurerler

    onurerler

    Joined:
    Apr 10, 2013
    Posts:
    35
    we tested 2019.3.8f and now all 3d space/object and ui much darker now. is it normal ?? Because we are afraid that everything will get worse!!!
     
  19. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    All this should work in 2019.3.9f1 :)
     
  20. JAAMY

    JAAMY

    Joined:
    May 29, 2018
    Posts:
    7
    Hello sir,
    We are using unity 2019.3.3f1 and URP version 7.1.8 and this Problem occurs, yet. We upgraded URP to latest which is 7.3.1 but noting changed.
    Building to android devices, OpenGLES3, Linear color space and no Post Process.
    You said it is fixed in URP v. 7.1.1 ? am i doing any thing wrong?

    Another question, if we switch to "Gamma" color space is that slower in Performance ? or more costly ? or there is no difference in Performance ?
    Thanks.
     
  21. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    @JAAMY there have been numerous issues with color space conversion on devices that have no native support for sRGB backbuffer. It would be great if you could file a bug report, as it seems there are still some uncatched corner cases.
    Gamma color space is not going to be slower than linear. Rendering to linear color space on devices that have no support for rendering directly to sRGB backbuffer will be slower than rendering in gamma space.
     
  22. JAAMY

    JAAMY

    Joined:
    May 29, 2018
    Posts:
    7
    Thanks a lot, for your exact and quick response. So we will switch to "Gamma" i think we wont loose any thing especial based on our Project. And I will try to fill a bug report as you said.
    Thank you, sir.
     
  23. onurerler

    onurerler

    Joined:
    Apr 10, 2013
    Posts:
    35
    Did you try 2019.3.9f1? Because problem fixed in this version
     
  24. JAAMY

    JAAMY

    Joined:
    May 29, 2018
    Posts:
    7
    Oh, I thought upgrading my URP version is enough, Thanks for your tip, I will test it today and report the result.
    Thanks.
     
  25. JAAMY

    JAAMY

    Joined:
    May 29, 2018
    Posts:
    7
    Hi, I Tried unity 2019.3.9f1 but the Problem didn't resolve. although i didn't try a new Project from scratch but upgrading from 2019.3.3 to 2019.3.9f didn't make any change to our Project builds.
    URP v 7.3.1 , No PostProcess, Linear Color space, on devices with OpenGLES3, unity 2019.3.9f1

    Any way, I think we have to switch to Gamma , i tried it and no Problem which i could notice Happened, and the dark builds bug wasn't happening with "Gamma" color space.
    Thank you guys for helping, I will follow this forum.
    Also I have reported this Problem as bug, hopping to help.
     
  26. onurerler

    onurerler

    Joined:
    Apr 10, 2013
    Posts:
    35

    Player Settings/Blit type must be set to "Auto" please check it.
     
  27. JAAMY

    JAAMY

    Joined:
    May 29, 2018
    Posts:
    7
    Oh, Thankkkks. It wooorked.
    Actually In Unity 2019.3.3 the "BLIT" option was disabled, so i didn't notice it, But in Unity 2019.3.9 it is available and setting that to "Auto" resloved The Bug.
    Thank you a lot.
    And Thanks Unity Devs.

    Although, I noticed 5 up to 15 frame rates drop in not Vulcan devices after setting Blit to "Auto" but I think it is avoidable and we are ok with that.
     
  28. JgBGDelta

    JgBGDelta

    Joined:
    May 26, 2018
    Posts:
    3
    Hey 2019.3.12f still with URP still has the bug
    At first it wasnt happening but it started happening when I separated the main menu and the game into scenes. Now, it happens in both scenes.
    I have been looking in forums and I have found no answer.
    When will be this bug fixed?
     
  29. JgBGDelta

    JgBGDelta

    Joined:
    May 26, 2018
    Posts:
    3
    Okay I finally solved it by turning blit type to auto. At first I had thought that the option was hidden but it is under project settings > resolution and presentation > resolution scaling > blit type
    Also, removing OPENGLES3 and leaving only VULKAN also worked for me on my Bq Aquaris UPlus
     
  30. drallcom3

    drallcom3

    Joined:
    Feb 12, 2017
    Posts:
    165
    Yes, you have to switch Blit to Auto. Solved the issue for me. Now my 3D stuff looks like it should.
    I haven't checked the actual FPS, but at first glance it seems alright. No change.
    No Vulkan. No OGL2. Only OGL3 everywhere.
     
    Last edited: Jul 10, 2020
    DrSpritz likes this.
  31. MaykeBr

    MaykeBr

    Joined:
    Dec 21, 2019
    Posts:
    9
    Hi, what version of Unity are you using?
     
  32. drallcom3

    drallcom3

    Joined:
    Feb 12, 2017
    Posts:
    165
    2019.4.3f1
     
  33. Navid38

    Navid38

    Joined:
    Dec 21, 2018
    Posts:
    5
    i had the same problem, you can fix it by changing the COLOR SPACE to LINEAR
    this solution is temporary, and it's gonna make the quality a little bit lower, but as you want to export this for mobile it's not a huge problem
     
  34. lmartellmc

    lmartellmc

    Joined:
    Aug 3, 2018
    Posts:
    23
    I'm having the same issue. Setting Blit Type to Auto corrects the colors, but then all of my text disappears. Actually it works fine in the menu scene, but as soon as a second scene is loaded all text disappears and won't return until the game is restarted.
     
    farbridgedamon likes this.
  35. DevanXD2000

    DevanXD2000

    Joined:
    Jun 28, 2016
    Posts:
    2
    Hi, I’m having an issue like this.
    I’m developing a VR game for the Oculus Quest and the lighting appears to be significantly darker in the android build than in the editor. Windows builds appear fine. I’ve tried every solution I can find yet nothing helps.

    Unity 2020.1.6 (Project made on 2019.3, I’ve had this issue since)
    URP 8.2 (I’ve tried on 9.0p55, same issue)
     
    VasyaCullin likes this.
  36. sajjadgameactor

    sajjadgameactor

    Joined:
    May 27, 2015
    Posts:
    8
    I fix this problem by changing color space from linear to gamma

     
  37. Sholms

    Sholms

    Joined:
    Nov 15, 2014
    Posts:
    85
    any update?
     
  38. sertacdncl

    sertacdncl

    Joined:
    Jan 20, 2017
    Posts:
    4
    I have the same problem. I am using Unity 2021.1.28f with URP. I select the blit type always and its fixed for some device. But google vitals give me the screenshots of phone and i saw S20 5G still darker.
     
  39. alek3tt

    alek3tt

    Joined:
    Nov 11, 2016
    Posts:
    5
    this is the fix:

    1. in Project Settings -> Player -> Publishing Settings -> Build -> enable "Custom Main Manifest"

    2. unity will create AndroidManifext.xml in Assets/Plugins/Android

    3. in this file we added this line in <application>, right after </activity>: <meta-data android:name="com.oculus.application.colorspace" android:value="Rec.709"/>
    thanks to DevAt4thWall
     
  40. Eniotnacram11

    Eniotnacram11

    Joined:
    Jan 6, 2019
    Posts:
    9
    So after 6 years its not even fixed?? ...
     
  41. Eniotnacram11

    Eniotnacram11

    Joined:
    Jan 6, 2019
    Posts:
    9
    Makes no sense to still have that bug in urp 2022.3.22... Hello? Building android is a nightmare, im 8h in and still cannot fix that....
     
  42. Eniotnacram11

    Eniotnacram11

    Joined:
    Jan 6, 2019
    Posts:
    9
    Bruh... Having HDR enabled in build setting what the problem
     
    MetalInvador likes this.
  43. Doreamon

    Doreamon

    Joined:
    Oct 5, 2014
    Posts:
    11
    thanks. same version and fixed by togging off hdr output
     
  44. MetalInvador

    MetalInvador

    Joined:
    Oct 1, 2018
    Posts:
    8
    This worked for me as well, thank you!