The_Lightmapper icon indicating copy to clipboard operation
The_Lightmapper copied to clipboard

Does not seem to work with Blender 2.93+

Open kitaedesigns opened this issue 2 years ago • 10 comments

'Build Lightmaps' doesn't actually bake lightmaps anymore after updating to Blender 2.93.

kitaedesigns avatar Sep 05 '21 17:09 kitaedesigns

Hi, that sounds strange since it works just fine on my end with that Blender version. If you toggle the console, do you get any error messages? - Oh, btw are you using the OIDN denoiser by any chance?

Naxela avatar Sep 05 '21 17:09 Naxela

Ah ok I checked the log and OpenCV/Filtering enabled seemed to be the problem. I will try reinstalling OpenCV as Admin with this version of blender and see if I can get Filtering to work again.

kitaedesigns avatar Sep 06 '21 16:09 kitaedesigns

Hmm, I just noticed that the filtering doesn't give alerts when something is wrong anymore. I take it you didn't get some kind of info alert notice? - I'll look into it, thanks for the bug report! 👍

Naxela avatar Sep 06 '21 17:09 Naxela

I didn't get any alert notice, the TLM_Overlay would appear but then nothing would happen, usually blender freezes as I bake in foreground mode, and that didn't happen and it was only when I checked the console log did I see that something was up with the OpenCV and Filtering.

kitaedesigns avatar Sep 07 '21 13:09 kitaedesigns

That definitely sounds like a bug. I'll look into redoing the error messaging system in the future to be more noticeable, or at least not require the console to be constantly open.

Naxela avatar Sep 07 '21 13:09 Naxela

Tried reinstalling OpenCV and got a successful message in Console Log, however when I restart Blender it says OpenCV is not installed. opencv

"Module OpenCV Looking in links: c:\Users\Kitae\AppData\Local\Temp\tmphpom3_d5 Requirement already up-to-date: setuptools in c:\program files\blender foundation\blender 2.93\2.93\python\lib\site-packages (49.2.1) Requirement already up-to-date: pip in c:\users\kitae\appdata\roaming\python\python39\site-packages (21.2.4) Requirement already satisfied: pip in c:\users\kitae\appdata\roaming\python\python39\site-packages (21.2.4) Sucessfully installed pip!

Requirement already satisfied: opencv-python in c:\users\kitae\appdata\roaming\python\python39\site-packages (4.5.3.56) Requirement already satisfied: numpy>=1.19.3 in c:\program files\blender foundation\blender 2.93\2.93\python\lib\site-packages (from opencv-python) (1.19.5) Successfully installed OpenCV!

Sucessfully installed OpenCV!"

kitaedesigns avatar Sep 07 '21 14:09 kitaedesigns

Hmm it seems like some strange has been going on in the recent versions. I think it's the same problem that Olliebarbs got, and it seems like he managed to solve it by copying the cv2 folders ino the local python site packages folder: https://github.com/Naxela/The_Lightmapper/issues/122#issuecomment-914134536

Could you test if this works for you?

Naxela avatar Sep 08 '21 06:09 Naxela

Ok I'll try that and report back.

kitaedesigns avatar Sep 08 '21 20:09 kitaedesigns

I tried copying and pasting the OpenCV and CV2 folders into the local python packages folder of Blender 2.93 and it seemed to do the trick.

kitaedesigns avatar Sep 08 '21 23:09 kitaedesigns

Thanks for testing it out. I'll try to see if I can make some kind of workaround that solves this issue

Naxela avatar Sep 10 '21 17:09 Naxela