Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Weird Lighting behavior

Discussion in 'Editor & General Support' started by PuddingEntertainment, Jun 19, 2021.

  1. PuddingEntertainment

    PuddingEntertainment

    Joined:
    Mar 19, 2016
    Posts:
    8
    Hey guys, I've updated from Unity 2020 to Unity 2021.1.12f today and noticed quite weird Lighting behavior.
    Basically, I have a scene with some 3D models in it, and there is one Directional Light object with default values: https://imgur.com/ntakzdn


    When I enter a play mode for the first time the scene is over-lighted like this: https://imgur.com/B5QoB78


    But when I press the my custom reload scene button (top left) OR enter the same scene from the different scene the lighting works the way it used to in 2020: https://imgur.com/HAdWzEF


    I don't think it is intended behavior :D

    what could be the problem here?
     
  2. SoftwareGeezers

    SoftwareGeezers

    Joined:
    Jun 22, 2013
    Posts:
    902
    The '2020' version doesn't have any bounce lighting added and is only being lit by the one directional light. The 2021 version is applying global illumination. Notice in the 2021 version you can see the shadowed detail of the tower in the bottom right, whereas in the 2020 version, the shadows are completely black.

    I would guess your loading doesn't include creation of the lightmap. If you don't want the 'overbright', change the lighting parameters to reduce the Indirect Multiplier; setting it to 0 will create the 2020 look. Ideally though, you probably want to adjust the light brightness and indirect Multiplier to get a good balance of brightness and shadow detail, and then your problem becomes one of how to get your level loading to apply global illumination.
     
  3. PuddingEntertainment

    PuddingEntertainment

    Joined:
    Mar 19, 2016
    Posts:
    8
    @SoftwareGeezers but the problem is with the inconsistent behavior.
    Loading the same scene from a different one or just reloading using
    Code (CSharp):
    1. SceneManager.LoadSceneAsync("SceneName")
    makes it all looking the way I expect.
    So basically since that scene is always called from some other scene it will unlikely cause any issues. It's just quite weird and looks like a bug in Editor somewhere

    Edit:
    also
    doesn't help
     
    Last edited: Jun 24, 2021