A Blender Addon that generates PBR Textures (Albedo, AO, Specular, Roughness, Bump and Normal(Generated from Bump internally) with OpenCV and assigns it directly to the object.
This addon only works on Blender 2.8 and beyond
ORIGINAL GENERATED
To run the addon in blender we need to install OpenCV for blender which can be installed by the following steps:
- Locate the python terminal in you blender installation folder. For Windows, it can be found at
C:\Program Files\Blender Foundation\Blender 2.82\2.82\python\bin
- Open the system terminal and execute the following commands
python.exe -m pip install --upgrade pip setuptools wheel --user
python.exe -m pip install opencv-python --user
- Copy the addon folder to the Blender Addon Folder which can be found at
C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons
- Start blender and go to User Prefences and search for PBR Texture Map Generator addon
- Enable and use
- The Panel will be located in the 3D viewport, under the Tools Panel
- Enter Material Name: Enter the desired Material name
- Select Base/Albedo Image: Locate and open the base image for your texture
- Generate Textures: This will generate all the required textures and save them in a new/existing folder in the image source location. This will also setup the nodes necessary and the object will be for rendering, all the changes will be seen immediately in the viewport
- Purge Selected Unused: This will delete all unused Materials of the same name as that as the one selected currently. This will help remove all the duplicates which may have been generated while editing the textures.
- Purge All Unused: This will delete ALL materials which are not in use by the object. Clicking this once will delete all unused materials, clicking this twice will remove all usued images as well
- Invert: Use this if you wish to invert the respective Texture Map (this can be done in the node editor as well)
- Saturation: Use to control the saturation between the Black and White areas of the image for the respective map, min = -50 , max = +50
- Brightness: Use to control the overall brightness of the respective map, min = -127 , max = +127
- Gamma: Use for gamma correction(if required) of the respective map, min = 0 , max = +5
- Threshold: Use to set the maximum threshold of the map, min = 0 , max = +255
- Make Cahnges: Makes changes only to the respective texture map
The addon has default values for all the above fields and will generate results immediately, these options are only for tweaking the textures if the result was unsatisfactory.
- Mapping: Use to control how the texture is mapped onto the object
- Invert: Invert the texture map
- ColorRamp: Use for final touches to the texture maps
- RGB Curve: Use for controlling the base texture
- Bump: Use for adjusting the effect of the effect of the bump and displacement maps
ORIGINAL GENERATED