Search Unity

Question Why does my lightmap have odd shadows?

Discussion in 'General Graphics' started by arvzg, Sep 10, 2021.

  1. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    upload_2021-9-10_11-23-15.png

    I'm using HDRP, baked with these settings:

    upload_2021-9-10_11-23-44.png

    There's 1 sun light in the scene:

    upload_2021-9-10_11-24-40.png

    This room is not getting any direct light, basically all indirect light. I've tried increasing the samples count and lightmap resolution but it doesn't really help much
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,791
    Try raising the sample values (mainly indirect) and see if it improves.
     
  3. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    Yep tried setting it to 1024, it changes the pattern of the shadows but it's still looking bad
     
  4. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    You must use very high indirect samples like 2000 up to 10000

    Also you can use fake indirect light solution to reduce noise:

     
  5. arvzg

    arvzg

    Joined:
    Jun 28, 2009
    Posts:
    619
    upload_2021-9-10_15-43-3.png

    I cranked Indirect samples to 7000 and some of the other numbers up as well, it looks... better... but it's still not perfect. I guess I'll look into that fake indirect light solution
     
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,791
    Reduce lightmap resolution a bit ( I think 64 is too much, maybe 30-20? although I don't know how big your scene is ) and then add another 0 at the end of all Sample values.
     
    arvzg likes this.