johnzero7 / XNALaraMesh

Blender addon Import/Export XPS Models, Poses
525 stars 94 forks source link

Broken transparent meshs #76

Open Arrow-x opened 3 years ago

Arrow-x commented 3 years ago

Untitlesd what is happening, replacing the shader with a simple diffuse doesn't help Windows 7 on Blender 2.90.1

Arrow-x commented 3 years ago

Erina Nakiri (SD).zip this is the file it happend on many other files too, but others work fine

loliXn commented 3 years ago

pretty sure that's because of blend mode setting which is automatically being set to the alpha blend mode which is causing this kind of rendering problem on eevee preview. if the material should be transparent, then you have to set this option to alpha hashed blend mode, otherwise it should be set to opaque. image

anyway, it would be nice if dev could somehow fix this kind of problem, because setting the correct option for every material can be kinda painful if the model has a lot of them.

Arrow-x commented 3 years ago

Thank you that works nicely.

CodeRookie1234 commented 2 years ago

The blend mode setting used at import can be changed in the "material_creator.py" file within your XNALaraMesh addon folder. Hair transparencies for EEVEE are best by using "HASHED" instead of "BLEND" now.

This solution i googled at https://www.deviantart.com/necrocainalx/art/Xnalara-XPS-Importer-for-Blender-Alpha-mode-fix-865490504.

It was no solution for me to let the method "BLEND" and adding a new line below this setting with "materialData.show_transparent_back=False" like one user left as comment. Hair transparency was still buggy after this. Transparent faces caused the underlying face to be "seen through" even if colored. By now only the "HASHED" solution is working.

The developer has done a real great job. Thank you a lot. Could you please change the value within "material_creator.py"to "HASHED" in your repository? A lot of fans would be happy about it.