Search Unity

Unknown glitch in lightmap baking

Discussion in 'Global Illumination' started by CauchyH, May 18, 2020.

  1. CauchyH

    CauchyH

    Joined:
    Sep 20, 2018
    Posts:
    2




    I'm using Progressive CPU and on 2019.3.1f1 HDRP
    I don't know the technical term for this, but it doesn't make sense for me
    the baked emission light of my cube is really strange, is there any possible reason that leads to this?

    is it possible I set my emission value too high?
    but the weird thing is the irregular shape of the baked light
    some of the area aren't even lit! they have emission cube but nothing is baked!
    I just wanna 'test' to make sure that the lightmap works, then increase the sampling count and bounce,
    because i have a poor machine :(

     
    Last edited: May 18, 2020
  2. Stroustrup

    Stroustrup

    Joined:
    May 18, 2020
    Posts:
    142
    you need to generate lightmap uv's for your asset and the bake lightmap resolution needs to be greater than what you chose as the minimum for your asset when generating lightmap uvs (default is 40 if you don't change the minimum)
     
  3. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    I think this is because there are too few samples. Try increasing the indirect sample count to 64 or 128 and bake again to get a better preview of the lighting.