Search Unity

Light Problem

Discussion in 'Global Illumination' started by Jegg1, Apr 15, 2019.

  1. Jegg1

    Jegg1

    Joined:
    Apr 15, 2019
    Posts:
    10
    Hi,
    I have one small problem in my game.
    I want to make good lighting in game but I can see some weird things when I have realtime lighting.
    Baked light would be an option but i have some non-static objects like doors.
    Any solution for this?

    These "weird things" are on image file.
     

    Attached Files:

  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Seems your point lights are intersecting the wall, that's why you see those weird shadowmap clipping artifacts. Move your lights away from the wall, or disable the shadows.

    Please take a look at our official graphics tutorials which will teach you all the fundamentals which will prevent you from running into these kind of issues in the future - https://unity3d.com/learn/tutorials/s/graphics
     
  3. Jegg1

    Jegg1

    Joined:
    Apr 15, 2019
    Posts:
    10
    When i do this my corridor is too dark.
    Disabling shadows did nothing.
     

    Attached Files:

  4. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Your lights are too dark. Increase their range and intensity, if you want to have ample lighting in your scene. Also, try bumping the amount of bounces, if you find the environment too dark.
     
    Last edited: May 2, 2019
  5. Croffy

    Croffy

    Joined:
    Jun 17, 2016
    Posts:
    4
    Go into project settings > quality
    and set pixel light count to something higher.
     
    MHK3d and lukman64700 like this.