Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken transparent meshs #76

Open
Arrow-x opened this issue Oct 31, 2020 · 4 comments
Open

Broken transparent meshs #76

Arrow-x opened this issue Oct 31, 2020 · 4 comments

Comments

@Arrow-x
Copy link

Arrow-x commented Oct 31, 2020

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

@Arrow-x
Copy link
Author

Arrow-x commented Oct 31, 2020

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

@loliXn
Copy link

loliXn commented Nov 1, 2020

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
Copy link
Author

Arrow-x commented Nov 1, 2020

Thank you that works nicely.

@CodeRookie1234
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants