You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a blender python script that attempts to locate the bump map of the same name as the loaded texture. It then links the texture if found and adds the necessary material nodes to plug in the normal map as well as link to the specular input of materials. As a result we get a pseudo preview of the normal map and specular of the material.
Примеры использования:
The script was done through ChatGPT with various prompts.
The logic goes like this:
1-For every object of type mesh, it runs through the list of materials in a parallel execution (for speed)
2- It looks to the already existing and plugged in Base texture for its path and information.
3- It attempts in 3 ways as fallbacks to find the associated Bump map.
Replaces '_diff' with '_bump' in the image path.
Appends '_bump' to the original path if it's not already there.
Cuts off the last part of the filename after the last "_" before the extension, and adds "_bump".
4- If it finds the bump, plugs it in the necessary node combination to display specular and normal map.
5-Set the color management of the bump file to Raw to avoid running a gamma operation on vector data from the normal.
The end result:
It also works for guns and other models
No bump
vs
with bump
Описание идеи:
I wrote a blender python script that attempts to locate the bump map of the same name as the loaded texture. It then links the texture if found and adds the necessary material nodes to plug in the normal map as well as link to the specular input of materials. As a result we get a pseudo preview of the normal map and specular of the material.
Примеры использования:
The script was done through ChatGPT with various prompts.
The logic goes like this:
1-For every object of type mesh, it runs through the list of materials in a parallel execution (for speed)
2- It looks to the already existing and plugged in Base texture for its path and information.
3- It attempts in 3 ways as fallbacks to find the associated Bump map.
4- If it finds the bump, plugs it in the necessary node combination to display specular and normal map.
5-Set the color management of the bump file to Raw to avoid running a gamma operation on vector data from the normal.
The end result:
It also works for guns and other models
No bump
vs
with bump
The script itself
AutoloadBumpMap_V4_ ForLevels.zip
The text was updated successfully, but these errors were encountered: