Search Unity

Resolved Strange stains when bake light

Discussion in 'Global Illumination' started by Toonas, Oct 12, 2020.

  1. Toonas

    Toonas

    Joined:
    Sep 4, 2017
    Posts:
    19
    Hello, community! I have a problem with baking light in hdrp. upload_2020-10-12_17-34-34.png upload_2020-10-12_17-37-46.png
    As you can see, all objects on the scene have strange stains when I bake light.
    If turn off filtering, the result is very bad.
    upload_2020-10-12_17-42-28.png upload_2020-10-12_17-42-44.png
    How can I fix it?
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    You'd need to use way more samples to reduce the noise.

    How's the scene illuminated? Are you using emissives, punctual lights, area lights?
     
    Toonas likes this.
  3. Toonas

    Toonas

    Joined:
    Sep 4, 2017
    Posts:
    19
    I'm using punctual lights only.
    I will try to enlarge count of samples.
     
  4. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Try increasing indirect samples first, and see if that helps. Also, make sure that your lights are not using high indirect intensity values, as that can contribute to noise.
     
    Toonas likes this.
  5. Toonas

    Toonas

    Joined:
    Sep 4, 2017
    Posts:
    19
    So, I enlarged all samples and baked light. It helped. The result less noiser, but still have noise.
    upload_2020-10-12_19-50-46.png
    upload_2020-10-12_19-51-3.png
    upload_2020-10-12_19-55-15.png
    Light properties:
    upload_2020-10-12_19-52-36.png
     
    Last edited: Oct 12, 2020
  6. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    This is strange. With these sample counts, you should be getting relatively smooth results, even without filtering. Perhaps in your scene, you have a light that's very hard to get to, and it is not directly visible? Such case would be difficult to sample, thus the increased noise.

    Also, have you made sure that you are not using baked emissives by mistake? Emissive materials are typically very hard to sample, and will cause a lot of noise.
     
    Toonas likes this.
  7. Toonas

    Toonas

    Joined:
    Sep 4, 2017
    Posts:
    19
    So, I solved my problem. The problem was in extremely large objects that I used for walls, floor and ceiling. Now I'm using something like a tiles.
     
    kristijonas_unity likes this.