Unity Baking Lightmap Dark Spot Solution

Trying to bake a scene this week, after introducing two oversized terrains, re-baked, encountered two problems, the first problem, there were a lot of dark spots in some parts of the terrain, and the second problem, the number of lightmaps I had skyrocketed, from 3 to 16.

I asked other bosses for their opinions, because the terrain is too large.

The specific solution is to modify the Mesh Renderer - > LightMapping - > Scale in lightmap parameter of the terrain and lower the parameter.

This parameter means to set the number of units of the object’s UV in the lightmap.

The size of the lightmap finally generated by an object is determined by this parameter, Windows- > Lighting- > Lightmap Resolution, which can be understood as the product of the two. Then, due to the limitation of Window- > Lighting- > Max Lightmap Size, if the size is exceeded, another lightmap will be removed.

The larger the scale in lightmap, the more detail the object will have in the lightmap, and for terrain, there is actually no need for a lot of detail, and because it is too large, if there are a lot of details, the final map will be very large, and finally, will produce dark spots.

Of course, there are other reasons for dark spots, but I have not encountered them for the time being, simply record: https://blog.csdn.net/leeby100/article/details/89201605