Better rain animation

Post Reply
User avatar
Wuzzy
Member
Posts: 5104
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Better rain animation

by Wuzzy » Post

I'm not really happy how rain works in most weather mods and Luanti games, including mine (Repixture, Lazarr!).

The usual approach is to just draw a raindrop texture, spawn a particlespawner somewhere above the player and let the rain droplet particles fall.

This works, but IMHO it looks only OK but not great. Spawning a LOT of particles is also a performance drain.

Any suggestions on how to make better-looking and/or better performing rain?

Oh, and another thing I consider super important is that it doesn't rain inside houses. ;-)

From M******t videos I also saw a effect of little spash effects appearing on the floor during rain. I tried to emulate this with spawning particles on the floor, but I never managed to find good particle settings.

User avatar
Blockhead
Moderator
Posts: 2989
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: Better rain animation

by Blockhead » Post

Mineclonia dev repetitivestrain a.k.a halon has previously mentioned being quite proud of the rain in that game, so check that out if you haven't already. The main thing touted was that the rain in other games follows you quite closely and so flying on an elytra it became quite obvious..
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

repetitivestrain
Member
Posts: 140
Joined: Fri Aug 09, 2024 01:54

Re: Better rain animation

by repetitivestrain » Post

For avoidance of doubt it I ought to clarify that for this to function, you must install the client-side mod and my version of Luanti, as the generation of rain particles is implemented in C++; it could probably be optimized further by moving the vertex position calculation into a shader, but I haven't had the time to explore this strategy yet.
cdb_6dcb4b04312d

repetitivestrain
Member
Posts: 140
Joined: Fri Aug 09, 2024 01:54

Re: Better rain animation

by repetitivestrain » Post

And yes, needless to say, I am quite proud of it for having addressed one of my most enduring complaints with the state of existing weather facilities. For example, it observes biome transitions to a fault.
Attachments
screenshot_20260204_121107.jpeg
screenshot_20260204_121107.jpeg (538.96 KiB) Viewed 114 times
cdb_6dcb4b04312d

User avatar
Wuzzy
Member
Posts: 5104
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: Better rain animation

by Wuzzy » Post

Yeah … I was looking more for a native approach tho.

But still thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest