Grim-es/material-combiner-addon

Weird output uv map

awesomedudeer opened this issue · 2 comments

I am wanting to make an atlas of my minecraft world but some parts of the world became black when run through this program
and i think its because of the uv map
WM-Screenshots-20231108085146

Looks like black colored parts are on Banners and such. That might be due to unsupported shaders or incorrect node names. The combiner relies on node names to identify which nodes to use. The easiest approach is to use a Diffuse BSDF node for Each material, as it has only one input, and check that its "name" property is set to "Diffuse BSDF" without translations. And the Image Texture node has "Image Texture". You can find the name property in the Shading tab when you select the node and press the 'N' key to reveal the right-side panel in the nodes window. Information on supported shaders and the expected node names can be found in this script: utils/materials.py.

Additionally, minecraft textures are small, so UVs can be misaligned a bit. To disable that you can manually remove the + 2 from the margin and the 1 + from the border_margin in this file:

Also make sure all textures saved in 24/32 bit and non of them are indexed.

All I had to do was turn off a checkbox that would supposedly be in this menu. That only ever works on the addon "images to planes" case scenario. Don't know if that will fix the issue of yours but I did get the same output UV map
Supposedly somewhere here