Hi I'm baking lightmaps on walls and I get this recurring problem... What is it? ] I'm using probuilder and my own material and baking lightmaps manually to a file ...?
Answer by FortisVenaliter
Apr 13 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 !
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...
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
87 People are following this question.
Lightmap is not imorted to other project after exporting.
Baking in unity 5, compression artifacts and distortion.
Texture baking of shadow.
Lightmap is baking non-static, realtime lights?!
Semi-Realtime Shadows - How would you do it?