Grim-es / material-combiner-addon

Blender addon for material combining, uv bounds fixing
MIT License
515 stars 41 forks source link

After combining materials, some normals are broken (version 2.1.2.9) #108

Open shazzner opened 2 months ago

shazzner commented 2 months ago

Imported one of the base models from the latest version of VRoid studio (1.29.1) to test out. Went to combine materials, after which a few details with the model's hair disappeared. Checked the backside and they were there, it appears that some of the of the faces normals broke. I'm not super blender savy so I'm not 100% sure what the issue is. Blender version 4.2

Front side: Screenshot from 2024-08-15 13-52-38

Back side: Screenshot from 2024-08-15 13-52-51

Settings: Screenshot from 2024-08-15 13-52-59

shazzner commented 2 months ago

Turns out the only issue was Backface Culling was enabled after combining. Once I disabled that, everything looks correct. Screenshot from 2024-08-15 16-57-00

Grim-es commented 1 month ago

Hello, yes, the materials combiner generates an output material with backface culling, meaning double-sided rendering is not applied. This helps make it clear to the creator when faces are missing on the back side of the mesh or when normals are inverted and pointing in the wrong direction. Since double-sided rendering can be expensive, it’s important to know when additional faces need to be added. However, this can be completely ignored in Blender if the asset will later be used in other softwares with double-sided rendering.