XNALaraMesh icon indicating copy to clipboard operation
XNALaraMesh copied to clipboard

Broken transparent meshs

Open Arrow-x opened this issue 5 years ago • 4 comments

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

Arrow-x avatar Oct 31 '20 00:10 Arrow-x

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

Arrow-x avatar Oct 31 '20 00:10 Arrow-x

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.

loliXn avatar Nov 01 '20 18:11 loliXn

Thank you that works nicely.

Arrow-x avatar Nov 01 '20 23:11 Arrow-x

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.

  • open material_creator.py with an ascii editor like notepad++
  • search for BLEND
  • change "materialData.blend_method = 'BLEND'"
  • to "materialData.blend_method = 'HASHED'"

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.

CodeRookie1234 avatar Oct 02 '21 21:10 CodeRookie1234