I made an addon which will generate PBR textures and assign them directly inside blender. I’d be really grateful if you guys could use it and let me know how it is and if there are some changes needed
Ihab_Adeel… I like your addon it really speeds things up. All I need is an image and your addon does the rest. I was at first intimidated by the installation, but it really took a minute to do that and then all works as expected. Thank you so much for this awesome work
Activating the addon getting this error. Im using 2.82 version. Any solution
you’ve made some sort of issue with the installation,
did you run the python commands from the blender installation folder?
because blender’s python and your system’s python works separately
I have just installed the regular way. With going in preferences addon -> install -> selected the zip file thats it.
I went here and followed the instructions and everything worked
waiting for a video how to install the addon
Yup, I am getting the same syntax error.
Probably not clearly explained about how to do the python scipt execute command
Dearb Ihab_Adeel I love your addon because I must work with a lot of real photos like in photogrammetry.
You save me a lot of time to go ahead in my big project.
Remarks: make a clearer explanations about python modules install
like… run powershell with shift + right click in this python location. You must add “./” before your commands to run this python exe.
And cv2 errors too…
Hi Ilhab, I have this traceback, please:
Traceback (most recent call last):
File "C:\Users\Patrick\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\PBR_texture_generation\__init__.py", line 210, in execute
textureGenerator.main(mytool.image_path, mytool.mat_name, b_props, s_props, r_props, a_props)
File "C:\Users\Patrick\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\PBR_texture_generation\textureGenerator.py", line 59, in main
grayScale = cv2.cvtColor(baseImage, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.5.2) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-dn5w5exm\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed)
!_src.empty() in function 'cv::cvtColor'
I used Blender 2.83 last release and your addon on windows 64b.
My image URI was : “E:\Téléchargements\804035.jpg”
and cv2 don’t like accentuations !!! → so ERROR!
EDIT: I’m correcting the addon to accept URI with accentuations like in France now.
The solution was here: https://stackoverflow.com/questions/52676020/opencv-src-empty-in-function-cvtcolor-error
But your addon is amazing! Thks a lot.
Here is the update of your addon with Scikit-Image module: Run on Windows 10 with accentuated URI like in France.
You must add the Scikit-Image module after the OpenCV-Python:
./python.exe -m pip install -U scikit-image --user
and use this r1.0.1 released addon : PBR_texture_generation.zip (22.0 KB)