Naxela / The_Lightmapper

Fast and easy baked GI Lightmaps for Blender and Cycles
GNU General Public License v3.0
690 stars 52 forks source link

Does not seem to work with Blender 2.93+ #121

Open kitaedesigns opened 2 years ago

kitaedesigns commented 2 years ago

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

Naxela commented 2 years ago

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?

kitaedesigns commented 2 years ago

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.

Naxela commented 2 years ago

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! 👍

kitaedesigns commented 2 years ago

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.

Naxela commented 2 years ago

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.

kitaedesigns commented 2 years ago

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!"

Naxela commented 2 years ago

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?

kitaedesigns commented 2 years ago

Ok I'll try that and report back.

kitaedesigns commented 2 years ago

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.

Naxela commented 2 years ago

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