minetest / minetest_game

Minetest Game - A lightweight and well-maintained base for modding [https://github.com/minetest/minetest/]
http://minetest.net/
Other
1.42k stars 577 forks source link

Z-fighting between flowing river water and water source #2960

Open Wuzzy2 opened 2 years ago

Wuzzy2 commented 2 years ago

If you place a flowing river water on top of a water source, or a flowing water on top of a river water source, and you walk inside the source liquid to see the part where the upper liquid touches the bottom liuqid, and then you move the camera around, you will see z-fighting.

Screenshot

https://www.satoshiupload.com/images/4KXnqG99Pz.png

Steps to reproduce

Expected: No z-fighting Actual result: Z-fighting

Version

See also

https://github.com/minetest/minetest/issues/9323

This might be a bug in Minetest, but I am not sure. Maybe there is also a way to fix this in the game code, with no engine change required? I'm not sure.

appgurueu commented 2 years ago

Maybe there is also a way to fix this in the game code, with no engine change required?

Any such way would require slightly offsetting the source node faces which would be hacky, presumably introducing new kinds of visual bugs. I say this needs an engine change.