-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Various issues with transparent materials #361
Comments
RIP deleted my comment by accident, this will be shorter. TLDR material that use the same texture but with diff parameters is the problem maybe? In the case of In a new case Zip of the problematic files: This new case has 2 problems:
Untitled.video3.mp4 |
Thanks for the upload we'll take a look. For transparency, the PMX format doesn't really specify which texture is transparent, so we can only rely on the alpha value and the material name to "guess" if a material is suppose to be transparent. That's why when you set opaque to 1 it's not transparent at all. We believe MMD simply treat all materials as transparent, but we don't have that option because in unity transparent materials needs to be sorted properly to appear correct (MMD must have its own rendering technique that does some sort of auto sorting). |
Yes and I think for |
For
To try and make sure there is no funny business with the cache between tests, I reset settings, unload the model, empty cache, restart DanceXR, then "Load As External" |
Updated to version 2024.9 |
Updated to 2024.11 and added case |
Describe the bug
1. Transparent material with Alpha=1 in PMX, but isn't loaded as transparent in DanceXR
This one is not too bad to workaround, but it would be nice if it worked without tweaks.
These glasses are set to opaque in PMX while still being transparent when rendered in the editor, but are opaque in DanceXR:
The current workaround is to set Materials->Transparent Materials to
On
, manually select the glasses, and setTransparent Materials->Options->Transparent:
Force Transparent
.Zip with the problematic component:
zipp.zip
Screenshots of transparency in the PMX editor:
2. Material that is transparent in PMX and loaded as transparent in DanceXR, but turns opaque right after loading
Similar to the previous case, except in DanceXR the texture is transparent during the loading animation, but quickly turns opaque right after. This usually happens with materials meant to be hidden/shown using a morph that either changes the opacity or in this case moves it into place. These materials often come with empty space/texture around them that should be transparent.
Untitled.video2.mp4
Zip with the problematic component:
stockings.zip
The current workaround is the same as for the previous case, force as transparent.
3. When 2 variation of the same clothing/material refer to the same texture, one with Alpha=1 (regular underwear) and one with Alpha=0 (the hidden variation).
Zip of the problematic files:
dual underwear.zip
This new case has 2 problems:
Untitled.video3.mp4
Expected behavior
The transparent part of the materials should be transparent by default
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: