[Mod] Snowfall, rainfall, settling snow [0.4.0] [snowdrift]

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Fri Jan 24, 2014 01:16

alps21, tornado by particles only would be very processing heavy, a funnel cloud could be made with cloud nodes easily, perhaps even moved, with a few particles around it for debris. Tsunami is again possible but im not interested in that personally.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

by gsmanners » Fri Jan 24, 2014 04:13

Hmm...

I think you meant:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.add_particle(
                        {x = ppos.x - 32 + math.random(0,63), y = ppos.y + 16, z = ppos.z - 16 + math.random(0,63)}, -- posi


Otherwise you'll get:

attempt to perform arithmetic on global 'pposx' (a nil value)


But, yeah. That otherwise sorts out my frame rate issue.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Fri Jan 24, 2014 04:30

Good stuff! ... you must be using an earlier version, 0.2.4 has pposx.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

by gsmanners » Sat Jan 25, 2014 04:58

Okay. Now, I'm caught up.
 

Azuna
Member
 
Posts: 89
Joined: Fri Sep 27, 2013 22:50

by Azuna » Tue Feb 11, 2014 01:15

I wanted to know if you could make a modified version of this mod; it rains and snows in all loaded chunks periodically, sort of like seasons.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Tue Feb 18, 2014 11:53

Sorry or the delayed reply, how long would these seasons be? At the moment this
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local perlinp = minetest.get_perlin(813, 1, 0.5, SCALP)
    if perlinp:get2d({x = os.clock()/60, y = 0}) < PRET then
        return
    end

controls when there is precipitation, 'os.clock' is time in seconds since server start, might have to use 'os.date' http://www.lua.org/manual/5.2/manual.html#pdf-os.date instead to extract real-life time and date. Should be pretty easy ... im not interested enough to spend time on it though ;)
Last edited by paramat on Tue Feb 18, 2014 11:57, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Wed Mar 12, 2014 01:26

Version 0.2.5
Smaller, square raindrops.
A friend of mine found my beachball sized raindrops amusing, now thay're merely small-football sized. I won't be going smaller than 4x4 pixels, this is the limit for a cute astract drop with character
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by paramat » Mon Aug 25, 2014 05:06

Version 0.3.0
Update particle spawn format.
Added snow heaviness parameter FLAKES.
Rain off by default as some find it rather silly, see my 'rain' mod for heavier rain.
Snow, rain twice as heavy by default, on slower computers you may need to reduce heaviness parameters FLAKES and DROPS to maintain your FPS.

I'm continuing to use a square raindrop because i prefer it, it's cuter and more abstract, in Minetest many round things are square. See VanessaE's server version for an alternative raindrop.
Last edited by paramat on Wed Sep 17, 2014 23:39, edited 1 time in total.
 

User avatar
SAMIAMNOT
Member
 
Posts: 363
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by SAMIAMNOT » Wed Sep 17, 2014 22:49

Does it rain or is it just snow?
I test mines.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by paramat » Wed Sep 17, 2014 23:44

Yeah there's an option for rain, enable it by editing the init.lua file. It's disabled by default because particles are processing heavy and so the rain is too light. See my WIP 'rain' mod for a new method https://forum.minetest.net/viewtopic.php?f=9&t=9915
It's funny how snowdrift mod stops precipitating when a player goes indoors. For rain particularly the rain mod method is better, the rain can grow plants, grow saplings etc because it's there on the server as an actual node instead of a client-side particle.
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by Minetestforfun » Mon Sep 22, 2014 11:15

Why don't you merge your snowdrift mod with your rain mod ?
The rain of snowdrift is very poor and not very interresting like a "beta" try, while your rain mod is very... interresting and "finished" :)
 

User avatar
SAMIAMNOT
Member
 
Posts: 363
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by SAMIAMNOT » Mon Sep 22, 2014 22:01

Hey, you should make it always snow on Christmas! XD
EDIT 1: Are there snow clouds?
I test mines.
 

Michael Eh?
Member
 
Posts: 282
Joined: Sun Jan 01, 2012 17:21

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by Michael Eh? » Tue Oct 14, 2014 03:21

What about changing the clouds to darker color or more dense filling the sky in rain storms... maybe even thunder and lightning?
(Of course, how much realism in a game is necessary?
 

User avatar
SAMIAMNOT
Member
 
Posts: 363
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by SAMIAMNOT » Tue Dec 23, 2014 03:25

Been using the mod. pretty good! 1 thing tho. Is it supposed to only EITHER rain or snow? Also no offense the rain texture is terrible. They look like bubbles. Ill post my custom texture later this week. if you want it.
I test mines.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by paramat » Tue Dec 23, 2014 04:17

Yes it should rain or snow in a particular location, but there can be areas of snow and areas of rain in one world, this is all set by the noise parameters.

Please do post your texture here but i won't include it in the mod:
"I'm continuing to use a square raindrop because i prefer it, it's cuter and more abstract, in Minetest many [real life] round things are square. See VanessaE's server version for an alternative raindrop."
Perhaps due to MC people expect a long linelike raindrop, in 'real life' this is just due to vision blurring, i don't like including any kind of vision blur in MT, your eyes do that anyway due to motion so it's redundant, it also requires a much larger texture and obscures more of the scene behind. I release my raindrop texture understanding that most players will probably prefer and use a different texture. So no offence is taken.

For better rain see my rain mod, although it may need some improvement.
 

User avatar
SAMIAMNOT
Member
 
Posts: 363
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by SAMIAMNOT » Wed Dec 24, 2014 02:45

Thats fine. I still say it looks like a bubble though. More round than square looking.
I test mines.
 

grey
Member
 
Posts: 19
Joined: Fri Jan 03, 2014 18:51

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by grey » Sun Dec 28, 2014 01:59

Does snow accumulate on top of other snow blocks?
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by paramat » Sun Dec 28, 2014 05:34

I'm considering that, this mod needs work and i might remove the rain in the near future. I was thinking if snow lands on snow make a snowblock. There is a 'levelled' feature usable with snow but that's a little too high-resolution for me. Also i want to work on custom skyboxes for a dark sky, 2 or more will be needed to work at night too.
 

User avatar
SAMIAMNOT
Member
 
Posts: 363
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by SAMIAMNOT » Tue Dec 30, 2014 21:24

How about after it stops snowing for a while, some of the snow blocks temporarily turn into water sources, creating a flood. (but only if there's a lot of snow)
I test mines.
 

User avatar
fireuser
Member
 
Posts: 21
Joined: Wed Jul 02, 2014 21:05

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by fireuser » Wed Dec 31, 2014 17:52

That is an interesting idea,but I must object. The section of the map that is temporarily covered in water would be such a pain to go thought. Water slows your speed so much. If you are scouting out an area, (like I do) it would be a major pain.
 

User avatar
SAMIAMNOT
Member
 
Posts: 363
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by SAMIAMNOT » Thu Jan 01, 2015 03:39

True. Mabe an optional option that enables "flash floods?"
Wouldnt it be a nice surprise when melting snow from a nearby mountain plummets your village? :D
I test mines.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by paramat » Thu Jan 01, 2015 09:22

Nope i'm going to keep it simple, snow settles and will deepen to snowblocks.
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by Minetestforfun » Sat Jan 10, 2015 22:46

Hi paramat,

First, thank you for your mod, and your work ! :)

I have some problems with your mod on my server, when a client stay too longer in a "falling snow" chunk, the client loose packets and freeze... Also, the server freeze sometimes for the same reason when several clients are is "falling snow" chunks...

So, i tried to tweak the "parameters" section in the "init.lua", you can see my tweaked parameters here : https://github.com/Ombridride/minetest- ... t/init.lua
(my world in generated with a mapgenv6)

But the problem still here...
Can you help me please ?
Can you give me the optimal/better parameters for avoid the packets loos client and server side ?

Thank you in advance
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by paramat » Sun Jan 11, 2015 00:17

You could try 'local SETTLE = false', the snow settling code is a little slow i need to rewrite it to use the non-mapgen object voxelmanip.
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by Minetestforfun » Sun Jan 11, 2015 23:11

Thank you, i will try it and give you a return :)
 

User avatar
SAMIAMNOT
Member
 
Posts: 363
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie

Re: [Mod] Snowfall, rainfall, settling snow [0.3.0] [snowdri

by SAMIAMNOT » Mon Aug 10, 2015 00:30

Does the snow and rain come from clouds?
I test mines.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] Snowfall, rainfall, settling snow [0.4.0] [snowdri

by paramat » Fri Sep 04, 2015 03:02

Version 0.4.0
Mod has been rewritten, see first post.
Rain is removed, it was only experimental and having one particle per drop limited it to very light showers.
Snow settling is removed for now and needs rewriting to only occasionally add snow to player-built structures using a luavoxelmanip.
 

User avatar
Milan*
Member
 
Posts: 203
Joined: Thu May 28, 2015 06:45
GitHub: tchncs
IRC: Passant
In-game: Milan Passant

Re: [Mod] Snowfall, rainfall, settling snow [0.4.0] [snowdri

by Milan* » Fri Dec 23, 2016 11:51

Would be nice if this mod detects the date and adds snow in the whole map during christmas for example :)

Edit: this mod checks for snowbiome - this confuses me since as far as i know, the biomedate is lost if mapgen is done.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: [Mod] Snowfall, rainfall, settling snow [0.4.0] [snowdri

by paramat » Sat Dec 24, 2016 09:41

The mod uses the known noise parameters for temperature, however the threshold may need changing slightly for the new set of biomes.
By altering the temperature and precipitation thresholds you can make it snow everywhere at Christmas if you want.
 

Previous

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 17 guests

cron