Grim-es / material-combiner-addon

Blender addon for material combining, uv bounds fixing
MIT License
451 stars 36 forks source link

Materials in imported GLR scene files are incorrectly treated as duplicates #84

Open Yoshiatom opened 6 months ago

Yoshiatom commented 6 months ago

When trying to use this plugin with models imported with the blender-import-glr addon, by default trying to combine them will result in the first material being applied to everything, with all the other materials being deleted as duplicates regardless of the content of the material.

I did find a workaround, but it's very tedious:

The only lead I have as to what's causing this issue is the fact that the original image texture node is called "Base Texture". Maybe there's some sort of deprecated node? I don't really know enough about Blender to know for sure.

Grim-es commented 6 months ago

Not all shaders are supported. You can check the file utils/materials.py to find out which shaders are supported and what node names should be used.

The easiest solutution was to: