The_Lightmapper icon indicating copy to clipboard operation
The_Lightmapper copied to clipboard

'Clean Lightmaps' deletes all lightmaps in Lightmaps subfolder

Open kitaedesigns opened this issue 3 years ago • 4 comments

'Clean Lightmaps' button deletes all lightmaps in Lightmaps subfolder. Is this right? I thought this button was for cleaning up the shader graphs? Sliversade's Aframe for Blender plugin describes the function of Clean Lightmaps as;

"it's needed because the changes to the shaders can be incompatible with A-Frame"

https://github.com/silverslade/aframe_blender_exporter

kitaedesigns avatar May 07 '21 18:05 kitaedesigns

Hi, the behaviour is correct the actual lightmap files is also cleaned and removed from the lightmaps folder in order to prevent any python lockup when baking new lightmaps. In cases where you actually want to keep the lightmaps after cleaning them (perhaps if you want to return to the original shaders, but still keep the lightmaps for an external game engine or in your case A-frame due to GLTF i think?), you can either turn on keep bake files which simply prevents the files from being deleted, or toggle Don't apply materials which will just go straight to the original shader setup:

image

I hope this helps

Naxela avatar May 07 '21 18:05 Naxela

Ah I don't seem to have this button, am I on an older version? I'm version .5.0.0 currently.

image

kitaedesigns avatar May 08 '21 13:05 kitaedesigns

Ah, I see - I guess I'm used to people just cloning or download straight from the master repository rather than the releases page. In any case, I've made a new release build (0.5.5): https://github.com/Naxela/The_Lightmapper/releases/tag/0.5.5

I hope this helps

Naxela avatar May 08 '21 13:05 Naxela

Ah ok I see! I will clone in the future, thanks!

kitaedesigns avatar May 08 '21 15:05 kitaedesigns