Search Unity

Point light shadows not behaving

Discussion in 'High Definition Render Pipeline' started by Arcturus125, Mar 9, 2021.

  1. Arcturus125

    Arcturus125

    Joined:
    Nov 10, 2019
    Posts:
    4
    for some reason i am getting extra shadows on my scene
    upload_2021-3-9_9-32-13.png


    but when i move to below, the buildings cast shadows properly:
    upload_2021-3-9_9-33-20.png

    can anyone tell me why these extra shadows are being created, or how i can get rid of them?
     
  2. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Hi, sorry but we don't have enough information to be able to reply. Can you provide you HDRP version, Unity version and is it possible to have repro step / point light settings?. Just based on screenshots it is hard to deduce anything.

    Note that you can inspect the shadow atlas to see the shadow map of the point light shadow (in windows -> render pipeline debug) and see if anything is wrong with it. thanks
     
  3. Arcturus125

    Arcturus125

    Joined:
    Nov 10, 2019
    Posts:
    4
    would it be helpful if i can link you to a repository where you can test it for yourself?

    I'm fairly new to HDRP and only upgraded due to a limitation with URP.

    Unity Version: 2020.1.13f1
    HDRP Version: 8.2.0

    Light settings:
    https://imgur.com/a/26yWxLD
    gif of incorrect shadows:
    https://imgur.com/INSLAgV
     
    Last edited: Mar 9, 2021
  4. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    >would it be helpful if i can link you to a repository where you can test it for yourself?

    yup, link to project where we can repro the issue are fine. Thanks
     
  5. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    by the way, latest version of HDRP for 2020.1 is 8.3.1 . Could you try to upgrade to it? thanks
     
  6. Arcturus125

    Arcturus125

    Joined:
    Nov 10, 2019
    Posts:
    4
  7. Arcturus125

    Arcturus125

    Joined:
    Nov 10, 2019
    Posts:
    4
    Okay so i figured out what i was doing wrong, rookie mistake on my part.
    when i place a building on the floor, that tile on the floor goes black - using a material set in code during runtime.

    this material is not a HD material. and so the HDRP didnt really know what to do with it.

    fixing the issue now.

    Thanks
     
    PutridEx likes this.
  8. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Glad you find your issue.