- Home /
Baking Lightmaps often gives this Strange Results
Hi I'm baking lightmaps on walls and I get this recurring problem... What is it? ][1] I'm using probuilder and my own material and baking lightmaps manually to a file ...?
Answer by FortisVenaliter · Apr 13, 2017 at 04:06 PM
Do you have the option to generate lightmap UVs enabled on your mesh settings? If not, it uses regular UVs which can overlap, causing issues like the one seen above.
If you are generating lightmap UVs, then the only other thing I can think of would be overlapping surfaces. If there are two triangles in basically the same place, the lightmapper may get confused as to which is shadowing which, and that could also cause issues.
@FortisVenaliter Thanks. but I don't see the option to generate lightmap UV's on my mesh... Where do you see that ? Thanks !
~be
On the model import settings, first tab. There should be a checkbox that says "Generate Lightmap UVs"
@FortisVenaliter Thanks again, but these are primitives I've build in Unity / or build in Unity with Pro Builder so I don't have that choice in the Inspector... Even if I make it a Pre fab... Hmmmm...
~be
Your answer
![](https://koobas.hobune.stream/wayback/20220612115723im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Assigning UV Map to model at runtime 0 Answers
Baked shadows too dark 1 Answer
Unity 5 Lighting Problems 1 Answer
Calculating lightmap texel per unit size 0 Answers
How to reuse light maps across many levels in game? 1 Answer