Search Unity

Fix simple object lightmap

Discussion in 'Global Illumination' started by Serge144, May 9, 2022.

  1. Serge144

    Serge144

    Joined:
    Oct 2, 2018
    Posts:
    65
    I have tried a bunch of lightmap configurations/settings but still can't fix this issue.

    Here's my object without lightmap (i.e with real time light):
    example1.jpg

    and here's the same object but this time lightmapped:
    example2.jpg

    How do I fix those stairs and everything else? (but mostly the stairs) I want it to look like the first image but I don't know how.

    Here's my configuration:
    configuration.jpg
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,749
    Filtering is probably not helping. Try disabling it and then bumping the sample values until it’s clean.

    You many also need more texels.

    I don’t know why you have atlas size set at 256, that’s too small. Light map resolution of 26 is also probably way too much.
     
    Serge144 likes this.
  3. Serge144

    Serge144

    Joined:
    Oct 2, 2018
    Posts:
    65
    wow huge improvement just by disabling the filters! Thanks alot AcidArrow! Also, what do you mean by bumping the sample values? You mean the Indirect Samples and Direct Samples?
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,749
    Yeah, generally low sample values result in noise. Filtering is supposed to help with noise, so when you disable filtering you generally need higher values for samples (mainly indirect). But if things look okay then you don’t need to.
     
    Serge144 likes this.
  5. Serge144

    Serge144

    Joined:
    Oct 2, 2018
    Posts:
    65
    Thank youuu!!