I need help with baking this scene. I have experimented with different settings of the light baking, but not able to figure out what’s wrong and why am I getting such a spotchy look.
I happen to figure out that the lightmap had to be packed under 1 or 2 number of lightmap only and hence it automatically reduced resolution of my meshes while baking. Hence even with high amount of samples the scene wasn’t looking good.
Is there a possibility to bake this kind of a large scene correctly with detailed shadow without scaling down the resolution of meshes and making it low resolution automatically. Can I force the lightmap to bake without lowering resolution? Any alternative suggestions for me to help me with this issue ?
I cannot delete the background effect or remove the large surface for a different reason. Please help !
To save lightmap space, in the Objects tab set Custom lightmap resolution to 0 for the large map object on which all the buildings are placed. You can also set it to 0. You can also set it to 0 for all partially transparent buildings. With such changes more lightmap space will be available for the remaining geometry.
So you mean I should select all non important objects and set lightmap res to 0 and only have a high resolution for important things like tower / vegetation etc ? Would it still scale my object res down everytime I am not able to fit it ? Can increasing the number of lightmap help me get high resolution? Can I force high resolution on all objects without scaling them down automatically?
Increasing the number of lightmaps will prevent scaling. The only exception is when a single object is too large to fit into 4096x4096 lightmap, such object will be always scaled down, no matter how many lightmaps you set. Keep in mind that one 4096*4096 lightmap consumes 67MB of GPU memory and is among the largest resources to download, so with large number of lightmaps the scene will download slowly on slower networks and you can run out of memory on mobile devices.
Thanks @jan for the detailed answer. So in my case scenerio, what would you suggest me to do ? Should I try to fit the scene in 1 lightmap only with maybe 100 lightmap resolution ? How many samples would you suggest ?
Perhaps, the flat surface consists of more than 1 mesh? If so, you’d have to set custom lightmap resolution to 0 for all these meshes. Or, if they have a parent object, it’d be enough to set the custom resolution for the parent, and the children wil inherit it.