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
Waving liquid render bug if solid block is above liquid #3075
Comments
Possible dupe of #1404. |
@est31 no it's not. Usually the top tile of the water is not visible when a solid node is above it, so it's not added to the mesh. This needs to be changed when the waving shader is enabled (there was a similar thing with new_style_water a while ago). |
I see, that makes sense. |
@PilzAdam Uh, I've been seeing the exact opposite, the top tile of water is visible when a solid node is above it (which is especially visible in underwater caves for example). Doesn't matter if new_style or not. |
@Rui914 yes, probably; the if should contain |
|
@paramat Erm... Or we could just try and fix it, maybe? I think it's worth a look into the rendering code... I imagine that to save extra rendering, Minetest doesn't render the top water face, because normally it would be squashed against the stone on top. But this is what I think, and I might be very wrong. |
Now even I think that it should be removed. its far too buggy. |
The title should not have been removed and this should not have been closed. |
To anyone who has no clue what this bug is about: SummaryIf a solid block is directly above a waving liquid, and waving liquids are enabled, there's a render bug. The area below the solid block has no visible liquid, thus creating an odd “hole” in the liquid. See screenshot in 1st post. Steps to reproduce
|
Resolves minetest#3075 1. Extract the code that determines the tile index by the face direction so it can be reused in other places. Specifically in the `face_contents` function which determines which face of the adjacent nodes to hide based on their real and visual solidness. 2. Extend `face_contents` to accept tile index which determines the direction of the face and force showing the top liquid face when the waving water is enabled and the face has a more solid block on top of it. Not the best solution but it kinda works. Please let me know what you think about it. Also any ideas on how to improve the solution are really appreciated.
Resolves minetest#3075 1. Extract the code that determines the tile index by the face direction so it can be reused in other places. Specifically in the `face_contents` function which determines which face of the adjacent nodes to hide based on their real and visual solidness. 2. Extend `face_contents` to accept tile index which determines the direction of the face and force showing the top liquid face when the waving water is enabled and the face has a more solid block on top of it. Not the best solution but it kinda works. Please let me know what you think about it. Also any ideas on how to improve the solution are really appreciated.
This bug is at least "medium priority" imho (not "low priority") because it is quite visible to players and not rare at all. All you need to do is enable waving liquids and then you can see it happen wherever water is below a solid block. This is common in caves and at cliffs, which you an also see in the screenshot. |
(EDIT by paramat: Screenshot by Wuzzy2)
The text was updated successfully, but these errors were encountered: