-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Transparent nodes are invisible in inventory #5461
Comments
Alpha translucency is unusable in MT anyway and is discouraged. |
well, water uses it. |
Water uses an alpha parameter |
@paramat... it appears to ignore nodedef |
That’s equally true both for node alpha and texture alpha, there is no difference for rendering. |
I hope it gets fixed eventually, that blinking and glass behind glass is pretty major graphic problem. |
So why do default water nodes look fine in inventory? |
For items and wield items texture alpha is ignored, as it is described described there. If you would like to experiment, change these two lines in the source (and disable shaders): |
They're only slightly darker, and maybe because they are being blended with dark grey behind. |
However very low alpha values do not make water clear in the world, there seems to be a minimum alpha similar to the texture alpha, perhaps 'alpha' nodedef and texture alpha are combined? |
That's a bug, fixing PR is #5494 |
Still happens, not with MTG water but with nodes (liquid at least) which use_texture_alpha. Seems that inventory mesh is drawn with EMT_TRANSPARENT_ALPHA_CHANNEL_REF instead of EMT_TRANSPARENT_ALPHA_CHANNEL. |
@Ezhh may have experience of this? |
Confirmed bug as well in 5.2.0-dev @ 80af58c with this minimal node definition and a fully opaque texture:
@nerzhul: How many confirmations are required to re-open this bug? ;-) |
Closing was a mistake due to misunderstanding of my comment #5461 (comment) |
Bump. This is still an issue (and I wouldn't consider it "low priority"..) |
Plus this is also annoying for servers since players can't see stuff that is less alpha in inv. |
If a node (e.g. MTG water with custom texture) uses texture with alpha less than 128, it’s inventory image is entirely transparent. If the alpha is in range [128, 255], the inventory cube is visible but dark.
The text was updated successfully, but these errors were encountered: