Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

Bug Reflection intensity is different between standalone and editor

Discussion in 'General Graphics' started by joska, Nov 1, 2021.

  1. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    Since a couple weeks i have been running into an issue. My standalone builds look different than my editor, everything was somewhat darker like the reflection strength was halved. after a whole day of trying to find it out i sadly got no where tried changing every option in graphics, quality, lighting settings and reflection probe but no luck. does anyone know how to fix this issue?

    to make it clearer to see what the problem is i made the screenshot have a reflection probe 4 times as strong as usual to see the issue more obvious. by changing the editor reflection to be half that of the standalone build i managed to get the same results. I am running unity 2021.2.0f1 URP.

    ReflectionStrenghtIssue.png
     
  2. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    After a lot more testing and frustration. i found that the exposure strength of the skybox is getting set wrong in the standalone version and not just the reflection strenght. I made a temp solution for other who might be running into the same issue.
    I hope unity can fix this problem properly soon.

    Code (CSharp):
    1.  
    2.     public Material Skybox;
    3.  
    4.     void Awake()
    5.     {
    6.         if (Application.isEditor)
    7.         {
    8.             Skybox.SetFloat("_Exposure" , 1);
    9.             DynamicGI.UpdateEnvironment();
    10.         }
    11.         else
    12.         {
    13.             Skybox.SetFloat("_Exposure" , 2);
    14.             DynamicGI.UpdateEnvironment();
    15.         }
    16.     }
     
    Last edited: Nov 3, 2021
    Claytonious and Torbach78 like this.
  3. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    Bump issues still there. noticed it has to do something with the URP stripping when having another issue.
     
  4. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    814
    Did you submit a bug report for this?
     
  5. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
  6. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    814
    Great. Did QA reply to you about it?
     
  7. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    sadly no
     
  8. vertexx

    vertexx

    Joined:
    Mar 18, 2014
    Posts:
    256
    Global Illumination: Scene gets brighter in Standalone player if it was open in the Editor at build time. (1375015)
    Maybe your issue might be suffering from this??
    But that and many other things are mentioned in "Whats new".
    PS. Using both Using 2021.2 and URP? Very brave of you :)
     
unityunity