Page 1 of 1

How to use drawtype liquid on non-liquid nodes?

PostPosted: Wed Nov 23, 2016 21:26
by Wuzzy
Hey, I wonder whether it is possible to use the liquid drawtype on non-liquid nodes. And if yes, how.
Or are there certain restrictions on using the liquid drawtype? E.g. do I have to set some extra fields in the node definition?

The reason I ask is because I want to use semi-transparency on a node, like on water in Minetest Game, only that my node is not water, but a cloud piece.

Thanks to those who will help me. :-)

Re: How to use drawtype liquid on non-liquid nodes?

PostPosted: Thu Nov 24, 2016 05:04
by Christian9
Try what this guy did

viewtopic.php?f=11&t=15913

Re: How to use drawtype liquid on non-liquid nodes?

PostPosted: Tue Dec 13, 2016 20:59
by Christian9
OR Something much more easy and the result is better would be making the parts of the texture you want semi-transparent, semi-transparent in the .png its self and use the code use_texture_alpha = true, in the registry code. Hope this helps

Re: How to use drawtype liquid on non-liquid nodes?

PostPosted: Tue Dec 13, 2016 22:30
by Wuzzy
Hmm, using a semi-transparent PNG might be an option, yes. But this feels like a hack.
What if I can't change the texture because I want to use the identical texture of another mod?

Re: How to use drawtype liquid on non-liquid nodes?

PostPosted: Tue Dec 13, 2016 23:08
by Christian9
Not sure, maybe use an image editor to modify transparency? Though I don't if that's a thing or not

Re: How to use drawtype liquid on non-liquid nodes?

PostPosted: Wed Dec 14, 2016 00:26
by pithy
If only node alpha worked on all drawtypes.