I can't merge materials
Opened this issue · 2 comments
I use it to merge materials and it just makes all the materials the first material (the top one in the selection) I don't know what's wrong with me, even if I switch my language to English, I don't know what I'm supposed to do.
Can I choose where to save the material?
![image](https://github.com/Grim-es/material-combiner-addon/assets/163805519/938b7d93-f008-416b-be88-d69d37cd9e05
Before merging materials
After merging materials
There are no changes to the material
I've tried both 3.3.16 and 3.6.9 with this issue
When using materials with the same image in their Image Texture
node, the materials will merge instead of being atlased. Or, if the proper image is not found, they will default to the color property, which, if the same, will also merge materials. To ensure proper functionality, make sure the shader you're using is listed in the supported shaders in utils/materials.py, and that the name
property is in English and matches exactly as listed in that file.
The easiest will be using the Diffuse BSDF shader with a name
property set to Diffuse BSDF
. Then, directly connect the image intended for the atlas to the shader using an Image Texture node with its name
property set to Image Texture
. To verify the name
property of nodes, select the node and press the 'N' key on keyboard to open a small right-side panel displaying that data.
Note that simply changing Blender to English will not automatically rename already imported or saved nodes. It will be necessary to manually rename them or reimport the model from the beginning.
So, combined materials either use the same texture (which you can export by pressing File > External Data > Unpack files to current directory), or have the name
property and shader not match the pre-hardcoded listed ones, and their texture is not used in the atlasing process.