Progressive Lightmapper keeps rebaking.

Hi, every time I either close and reopen Unity or complete a build, the progressive lightmapper rebakes the scene from scratch even though no changes have been made to the scene. Does anyone know how to prevent this, as it is frustrating having to wait for it to complete everytime.

thanks

Have you tried to turn off the “Auto Generate” option in the Lighting Settings window?

Hi, yes I have tried this but what happens when I restart Unity is that the lightmap is not displayed and my interior scene goes dark. If I then turn on auto generate, it rebakes the lighting again. The problem also happens when creating a new scene and then returning back to the original one.

1 Like

I notice the behaviour in general is different to enlighten in this regard, I am finding that if I make a small change, the whole scene rebakes.

Hi, yes it is supposed to rebake if you make a change to an object in the scene, but I am not making any changes at all and it is still doing it.

1 Like

Same thing happening here. It loses all the baked information once the editor is restarted. The only work around for now is to revert back to Enlighten for now I guess.

1 Like

Hey @ZiadJ @Giuseppe @hasseyg

Thank you for sharing your feedback. Currently, Progressive Lightmapper doesn’t load converged lightmaps from cache, all the lightmaps are stored in memory. Thus, unlike Enlighten, Progressive Lightmapper restarts baking lightmaps since there’s no cached data available.

Until that feature is added to Progressive Lightmapper, I recommend using auto mode only while working on the scene. Once you’re done with the setup in the scene or you want to load a different scene, you can disable auto mode and generate lighting manually. Generating lighting manually fetches the lightmap data from memory and loads it to your project, and a lighting data asset is created. Once you’ve a lighting data asset, the scene loads the lightmap data from that lighting data asset instead of restarting baking.

TLDR; Auto mode in Progressive Lightmapper should only be used while working on the scene setup entirely. When you’re done with the scene, or need to switch to a different scene, then please disable auto and generate the lighting manually (this step stores your data from memory to your project). So the next time you load the scene, baking won’t restart and instead, lighting data will be instantly loaded.

Thanks

3 Likes

So, if I got it right, all I need to do is use manual baking once to force cache the data on disk and then I can move on to auto mode and the editor will fall back onto the on-disk cache when needed. It takes hours to complete here so I can’t afford to give it a try right now to confirm.