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

weird lighting glitch

Discussion in 'Editor & General Support' started by Thom1234510, Jan 21, 2020.

  1. Thom1234510

    Thom1234510

    Joined:
    Jan 21, 2020
    Posts:
    5
    So i got a weird lighting glitch but the problems do not happen in the first scene the project started with so first the shadows are less sharp and are more darker second i have to put it on white light because what ever color the light is all objects will be that color same as the sky but if there is no light source all object are pitch black and the sky is a little yellow same as the grey void down below I have tried coping the light source from the first scene that did not work I don't know how to fix this and youtube is no help same with google I cant fined any body that had this issue also i'm using version 2019.2.11f1
     
    Last edited: Jan 21, 2020
  2. Thom1234510

    Thom1234510

    Joined:
    Jan 21, 2020
    Posts:
    5
    just so people that visit this thread I might be in bed but the time some one posts
     
  3. Thom1234510

    Thom1234510

    Joined:
    Jan 21, 2020
    Posts:
    5
    Please can someone help me?
     
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Sounds like an issue with ambient light. Check your lighting settings for the problem scene(s).
     
  5. Thom1234510

    Thom1234510

    Joined:
    Jan 21, 2020
    Posts:
    5
    Ok I’m checking it now but which lighting settings are you talking about?
     
  6. Thom1234510

    Thom1234510

    Joined:
    Jan 21, 2020
    Posts:
    5
    Never mind found the solution
     
  7. aveakrause

    aveakrause

    Joined:
    Oct 3, 2018
    Posts:
    70
    What was the solution? I'm encountering some weird lighting problems as well, and currently have no leads as to what the cause is.

    Edit: Seems there is some kind of bug with Skybox where it sometimes doesn't provide lighting properly, resulting in the same scene being lit differently depending if you had the scene loaded in the editor when entering Play Mode or not. It also affected any builds that were done while the scene was loaded.
    Removing the skybox on both my camera and my environment lighting data fixed my issue.
     
    Last edited: May 14, 2021
    AldeRoberge, Starwitch and Erenquin like this.
  8. Erenquin

    Erenquin

    Joined:
    Apr 9, 2018
    Posts:
    164
    Last edited: May 14, 2021
  9. Starwitch

    Starwitch

    Joined:
    Aug 27, 2019
    Posts:
    1
    Thank you!
    I removed the skybox and set it per script and the glitch was gone!

    [SerializeField] private Material mySkybox;
    void Start(){
    RenderSettings.skybox = mySkybox;
    }