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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Weird shadow problem at long distance

Discussion in 'Editor & General Support' started by tomer20072, Sep 14, 2016.

  1. tomer20072

    tomer20072

    Joined:
    Dec 8, 2015
    Posts:
    57
    I downloaded a lighthouse asset with a revolving spot light, but when i put it in my scene any object being lit by it in long distance has this weird issue
    It has something to do with the shadows because it only happens when shadows are on and when the object is real far from the light, and it looks very bad with an animated light but i stll need the shadows.. is there a fix for this? increasing the lights range doesn't seem to change it..
     
    Last edited: Sep 14, 2016
  2. tomer20072

    tomer20072

    Joined:
    Dec 8, 2015
    Posts:
    57
    I found that it dissappeares completely only when i turn the spot angle all the way up to max (179), but i can't have it like that in the actual game.. does anyone know why it's happening?
     
  3. SarfaraazAlladin

    SarfaraazAlladin

    Joined:
    Dec 20, 2013
    Posts:
    280
    Have you looked at the shadow settings in ProjectSettings/Quality?

    You could maybe resolve this by increasing the Shadow Distance, though at the cost of some performance I expect.
     
  4. tomer20072

    tomer20072

    Joined:
    Dec 8, 2015
    Posts:
    57
    I did, it doesn't change it at all.. i tried changing everything i know that has to do with the shadows and the only thing that fixes it is to turn of the spotlight angle all the way up.. does anybody know why this is happening?
     
  5. tomer20072

    tomer20072

    Joined:
    Dec 8, 2015
    Posts:
    57
    anybody?
     
  6. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    Looks like shadow acne, try changing the light to use soft shadows and mess with the light's Normal Bias under soft shadow settings.

    You could also try reducing the distance between the shadow near plane and far plane in Quality settings.
     
  7. tomer20072

    tomer20072

    Joined:
    Dec 8, 2015
    Posts:
    57
    Thank you oh so very much
    i remembered i saw those values before but i could't find them, just because when the light was on baked mode they simply didn't show, i switched to realtime and the bias value was the one that fixed it
     
  8. fg34

    fg34

    Joined:
    Aug 31, 2015
    Posts:
    6
    IT could also be that your near clipping plane is too small. Try increasing the near clipping plane of the camera to see if the issue goes away.