Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Reduce 'blockiness' of Spotlight edges [Progressive CPU Bake]

Discussion in 'Global Illumination' started by eco_bach, Apr 23, 2019.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Hi
    Have a tricky problem with my Bake. Not matter what settings I try am unable to eliminate the 'blocky pixelated' look of my Spotlight edges. Am already using 1024 Indirect samples and my Spotlights have a shadow radius of 2 or greater.
    About to give up as have spent a few days on this.

    Blocky_SpotlightEdge.PNG BakedLightMapSettings.PNG UV_view.PNG
     
  2. sylon

    sylon

    Joined:
    Mar 5, 2017
    Posts:
    246
    Not sure if it will help you, but i notice you have "compress lightmaps" on.
    Try turning it off.
     
  3. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Thanks, yes tried this. No difference that I could see.
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,631
    Go to your lightmap parameters and raise anti-aliasing samples to 256.

    Also change filtering from Auto, and play with a gauss blur for Direct light. 1-2 pixels will remove the blockiness for sure, but it may make the light look way too soft.
     
  5. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Hey thanks again...good info!
     
  6. JenniferNordwall

    JenniferNordwall

    Unity Technologies

    Joined:
    Sep 19, 2016
    Posts:
    160
    Hey! Try to maybe decrease the bounces to 2, and also the lightmap resolution.

    Maybe see if you can adjust the filtering a bit.

    I can also see some clamping in the light. Are you using HDRP and post processing? The light looks very bright which can be the reason why it looks a bit edgy. From what I can see on the image, this should be a very standard setup so it's strange that you are experiencing there issues.

    Hope my advice helped!