Search Unity

Question Light seams shine through shadow

Discussion in 'General Graphics' started by ozan1911, Nov 22, 2022.

  1. ozan1911

    ozan1911

    Joined:
    Feb 21, 2022
    Posts:
    8
    upload_2022-11-22_20-55-35.png upload_2022-11-22_20-57-9.png


    for some reason, every verticle shines light, they dissappear when camera gets close.

    floor is made of a lot of square planes, how do i prevent this light?
    btw i get rid of outside light sources, this light seams makes no sense.
     
  2. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    657
    it could be a shadow distance thing. When your shadows cut out, well,. you end up with similiar results as i am seing here. OFC, theres other possibilities at play. Lighting iis one hell of a 'job'
     
  3. ozan1911

    ozan1911

    Joined:
    Feb 21, 2022
    Posts:
    8
    yeah, i tried to mess with shadow settings, i give up, lighting is fun until this happens i guess.
    or i may put one single super big plane.
     
  4. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    Try that and see what happens.
     
  5. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,756
    Stop... Dont put it on a big plane, address the issue. Theres a few possible causes:
    • Shadow rendering distance.
    • Your settings for GI, as GI lighting tends to light up from the bottom and sides.
    • (Work around) Reflection Probe.
    A game dev will address the current issue, instead of resorting to a "drastic measure". Come on bro, you got this...
     
  6. ozan1911

    ozan1911

    Joined:
    Feb 21, 2022
    Posts:
    8
    i dont know, i am kinda new
     
  7. SpookyCat

    SpookyCat

    Joined:
    Jan 25, 2010
    Posts:
    3,765
    Try turning on 'Two Sided' option for 'Cast Shadows'
     
  8. ozan1911

    ozan1911

    Joined:
    Feb 21, 2022
    Posts:
    8
    didnt work
     
  9. burningmime

    burningmime

    Joined:
    Jan 25, 2014
    Posts:
    845
    You need to mess with the normal bias and bias. Start by setting both to 0, which will cause shadow acne, but get rid of the leaks (hopefully). Then adjust one or the other up

    upload_2023-1-1_14-37-9.png

    However, if you fix that, you may have other issues.

    Shadow rendering in Unity is kinda bad; newer engines have mitigations and workarounds such as automatic detection/adjustment of bias parameters based on screen space derivatives, but (except maybe HDRP VSM; I don't know much there), Unity seems to be back in like early-2000s era with shadow tech. The easiest solution might be to create a plane and set it to "shadows only"
     
  10. ozan1911

    ozan1911

    Joined:
    Feb 21, 2022
    Posts:
    8
    lightning is made with emmission, those settings probably doesnt exist for me
     
  11. burningmime

    burningmime

    Joined:
    Jan 25, 2014
    Posts:
    845
    Emission does not cast real-time shadows; just baked shadows.