[Mod] Snow, rain, clouds (with sound) [snowdrift]
-
- Member
- Posts: 76
- Joined: Thu Jun 01, 2017 20:06
- GitHub: John-Constructor
- In-game: Nooberton
- Location: On Minetest 24/7
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Tried it out, I must say it works quite nicely, 10/10! May I suggest that rain/snow stopping when inside has a setting to be enabled/disabled?
Constructing mechs and wingless aircraft since 2016.
- Otter
- Member
- Posts: 152
- Joined: Fri May 12, 2017 21:17
- GitHub: InfiniteOtter
- In-game: Otter
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
A high roof will still allow for rainfall and rain just shuts off when you go under a tree. This mod is far from perfect, but I like it enough to almost always have it installed.John_Constructor wrote:Tried it out, I must say it works quite nicely, 10/10! May I suggest that rain/snow stopping when inside has a setting to be enabled/disabled?
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
New screenshots in first post.
- Scarecrowman
- Member
- Posts: 40
- Joined: Sun Nov 19, 2017 14:48
- In-game: Scarecrowman
- Location: The Ranch, S4, on a secure government computer...
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
I couldn't even get the other weather mod installed.
Like this one so far, but is there a way to call the snow or rain via a command?
Like this one so far, but is there a way to call the snow or rain via a command?
"Those who dream by day are cognizant of many things that escape those who only dream at night..."
-EDGAR ALLAN POE
-EDGAR ALLAN POE
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
No, but if necessary you can cause constant precipitation by altering parameters in the init.lua file.
By default it will not precipitate in deserts.
By default it will not precipitate in deserts.
- Scarecrowman
- Member
- Posts: 40
- Joined: Sun Nov 19, 2017 14:48
- In-game: Scarecrowman
- Location: The Ranch, S4, on a secure government computer...
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Ah yes! I was able to adjust these to get a more constant snowfall. And no rain!paramat wrote:No, but if necessary you can cause constant precipitation by altering parameters in the init.lua file.
By default it will not precipitate in deserts.
Well done, Paramat!! This version really should be next to the weather mod on the main site's mod list.
"Those who dream by day are cognizant of many things that escape those who only dream at night..."
-EDGAR ALLAN POE
-EDGAR ALLAN POE
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Also, the number of drops or flakes is set very low, i find these can be quadrupled without issues on a mid-power machine.
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
I really wonder how Minecraft is doing this. Even in Beta 1.8.1 they have better rain without much performance issues.
https://youtu.be/WlMyxp-BKyg?list=PLC96 ... 7D634&t=27
If he walks up the stairs you can see the rain at the end of the staircase. Not instantaneously, but far in the distance
https://youtu.be/WlMyxp-BKyg?list=PLC96 ... 7D634&t=27
If he walks up the stairs you can see the rain at the end of the staircase. Not instantaneously, but far in the distance
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
A few suggestions to make this mod a bit more realistic (if your PC can handle it).
Set the YLIMIT to -10 or less
Set the number of drops to 256 or even 512 and collide = true
Disable the outside check in line 108 simply by set it to true (remove get_node_light)
Increase the height in line 177 to 10 or even more, depending on your highes room
And IMHO most important: set the y velocity in line 182 to -15.0 or even -20 because the raindrops look unrealistic slow. The default value is set to the gravity, but raindrops have more than 10m to accelerate.
I also add some random to the particle spaw position because the always hit the center of a node. My add_particle function looks now like this
Parameters are
And works pretty well
Set the YLIMIT to -10 or less
Set the number of drops to 256 or even 512 and collide = true
Disable the outside check in line 108 simply by set it to true (remove get_node_light)
Increase the height in line 177 to 10 or even more, depending on your highes room
And IMHO most important: set the y velocity in line 182 to -15.0 or even -20 because the raindrops look unrealistic slow. The default value is set to the gravity, but raindrops have more than 10m to accelerate.
I also add some random to the particle spaw position because the always hit the center of a node. My add_particle function looks now like this
Code: Select all
pos = {
x = pposx - 12 + math.random() * 24,
y = pposy + 15 + math.random() * 10,
z = pposz - 12 + math.random() * 24
},
vel = {
x = 0.0,
y = -20.0,
z = 0.0
},
Code: Select all
-- Parameters
local YLIMIT = -10 -- Set to world's water level or level of lowest open area,
-- calculations are disabled below this y.
local PRECSPR = 6 -- Time scale for precipitation variation in minutes
local PRECOFF = -0.4 -- Precipitation offset, higher = rains more often
local GSCYCLE = 0.5 -- Globalstep cycle (seconds)
local FLAKES = 16 -- Snowflakes per cycle
local DROPS = 512 -- Raindrops per cycle
local RAINGAIN = 0.2 -- Rain sound volume
local COLLIDE = true -- Whether particles collide with nodes
local NISVAL = 39 -- Clouds RGB value at night
local DASVAL = 175 -- Clouds RGB value in daytime
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Also a suggestion for the snow particle spawner. I set the number of flakes to 64
Code: Select all
pos = {
x = pposx - 32 + math.random(0, 64),
y = pposy + 15 + math.random(0, 5),
z = pposz - 32 + math.random(0, 64)
},
vel = {
x = (math.random() - 0.5) * 3,
y = -4.0 + (math.random() - 0.5) * 3,
z = (math.random() - 0.5) * 3
},
- Scarecrowman
- Member
- Posts: 40
- Joined: Sun Nov 19, 2017 14:48
- In-game: Scarecrowman
- Location: The Ranch, S4, on a secure government computer...
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Looks great, Burli!
"Those who dream by day are cognizant of many things that escape those who only dream at night..."
-EDGAR ALLAN POE
-EDGAR ALLAN POE
-
- New member
- Posts: 2
- Joined: Thu Nov 30, 2017 21:44
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Hi I'm new here.
I'm having an issue enabling this mod. I'm using Minetest 0.4.15 from the Debian repositories. I get this error while trying to enable this mod for my world:
I'm having an issue enabling this mod. I'm using Minetest 0.4.15 from the Debian repositories. I get this error while trying to enable this mod for my world:
Is there a way to fix this? I've searched through the mod but couldn't find anything obvious.Failed to enable mod "snowdrift-master" as it contains disallowed characters. Only characters [a-z0-9_] are allowed.
- GreenXenith
- Member
- Posts: 1356
- Joined: Wed Oct 28, 2015 01:26
- GitHub: GreenXenith
- Location: UTC-8:00
- Contact:
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Welcome, then :)Elderking1986 wrote:Hi I'm new here.
I'm having an issue enabling this mod. I'm using Minetest 0.4.15 from the Debian repositories. I get this error while trying to enable this mod for my world:Is there a way to fix this? I've searched through the mod but couldn't find anything obvious.Failed to enable mod "snowdrift-master" as it contains disallowed characters. Only characters [a-z0-9_] are allowed.
Many new users are tripped up by this problem, all you need to do is remove the `-master` from the file name (this applies to any mod downloaded from GitHub, it adds a `-master` to the file). Notice the `[a-z0-9_]` in the error message which means "a thru z, 0 thru 9 and _", not including the `-`. So any modname with a `-` shouldn't work :)
YouTube | Mods | Patreon | Minetest Discord @greenxenith
You should not be able to read this message.
You should not be able to read this message.
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
burli the video is beautiful. This mod has a lot of room for improvement, i've just been busy.
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
It is more like a proof of concept and I squeezed the last performance out of my PC. I hope the performance issues with particles will be fixed soon, than we can make better weather mods.paramat wrote:burli the video is beautiful. This mod has a lot of room for improvement, i've just been busy.
This is a compromise of effect and performance. With the current settings it is possible that it is raining or snowing in tall buildings or caves. The particle spawner need to be much higher and the area should be bigger.
I moved the center of the spawning plane ahead of the player. The effect is better in view direction. Especially the snow is a problem because it takes a while until he fills the area, but I don't want to make him faster. I think, the current speed is good. In fact, the speed and direction varies from flake to flake.
I will push it to github soon, but maybe I will add some more effects and try to optimize it as good as possible
- voxelproof
- Member
- Posts: 1087
- Joined: Sat Aug 05, 2017 08:13
- Location: Europe
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Great... Thanks. I thought nothing may surprise me in Minetest any more, but I was obviously wrong. This tuning is indeed extraordinarily impressive.burli wrote:Made a fork
https://github.com/MarkuBu/snowdrift
To miss the joy is to miss all. Robert Louis Stevenson
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Thanksvoxelproof wrote:This tuning is indeed extraordinarily impressive.
I forgot to mention that the FLAKES parameter has no effect. I pushed an update that fixes that. But now FLAKES is a decimal number 0..1. Default is 0.2, but if it is too much for your PC you need to reduce to maybe 0.1 or less
It is the percentage of total DROPS
EDIT: and you should set PRECSPR to 6 and PRECOFF to maybe 0.2. I set these values to continuous rain ;-)
-
- New member
- Posts: 2
- Joined: Thu Nov 30, 2017 21:44
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
Sorry for the late reply. I didn't get an email and I don't check these forums too often. Thanks for the help. I'll try that. I'm kinda surprised I didn't catch that.GreenDimond wrote:Welcome, then :)Elderking1986 wrote:Hi I'm new here.
I'm having an issue enabling this mod. I'm using Minetest 0.4.15 from the Debian repositories. I get this error while trying to enable this mod for my world:Is there a way to fix this? I've searched through the mod but couldn't find anything obvious.Failed to enable mod "snowdrift-master" as it contains disallowed characters. Only characters [a-z0-9_] are allowed.
Many new users are tripped up by this problem, all you need to do is remove the `-master` from the file name (this applies to any mod downloaded from GitHub, it adds a `-master` to the file). Notice the `[a-z0-9_]` in the error message which means "a thru z, 0 thru 9 and _", not including the `-`. So any modname with a `-` shouldn't work :)
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
> I moved the center of the spawning plane ahead of the player
Good idea.
Good idea.
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
You can always backport good stuff back into main repo ;)
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
I plan to.
Version 0.5.2
Update deprecated 'acc','vel'. 12 new 5x5 snowflake textures. Time particles to disappear at water level. Randomise snowflake XZ velocities.
More particles.
New screenshot of snow in first post.
Version 0.5.2
Update deprecated 'acc','vel'. 12 new 5x5 snowflake textures. Time particles to disappear at water level. Randomise snowflake XZ velocities.
More particles.
New screenshot of snow in first post.
- Otter
- Member
- Posts: 152
- Joined: Fri May 12, 2017 21:17
- GitHub: InfiniteOtter
- In-game: Otter
Re: [Mod] Snow, rain, clouds (with sound) [0.5.1] [snowdrift
This mod seriously makes the game feeling a more rich experience. Personally, I would love it if the weather was added to Minetest Game and dropped back to about a tenth as likely so it is a surprise but not a regular constant. Having two or three rainy or over cast days in a row should still happen but more seasonally than regularly.
I usually disable fog when I am not going for the visual effects, but fog shrouded mountains, fog over streams and lakes and foggy mornings are delightful in real life.
But I suppose you would have to take this up with the person in charge of Minetest Game. Switching hats can be stressful and I know the motives and goals can be different. While you are wearing the other hat, Paramat, Pine usually grows in deep sandy soil. Deep sand makes for tall pines.
I usually disable fog when I am not going for the visual effects, but fog shrouded mountains, fog over streams and lakes and foggy mornings are delightful in real life.
But I suppose you would have to take this up with the person in charge of Minetest Game. Switching hats can be stressful and I know the motives and goals can be different. While you are wearing the other hat, Paramat, Pine usually grows in deep sandy soil. Deep sand makes for tall pines.
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Snow, rain, clouds (with sound) [0.6.0] [snowdrift
Version 0.6.0 released.
Inspired by the ideas of others who have worked on this, i have removed the weird behaviour of precipitation stopping when the player is undercover.
I have made each particle check being under open sky (light == 15) to spawn, and collision detection is on. Now particles don't pass through objects and precipitation continues outside when the player is undercover.
It's a big improvement, more intensive but worth it.
Also included is more parameters and player position prediction from a pull request by lhofhansl.
Inspired by the ideas of others who have worked on this, i have removed the weird behaviour of precipitation stopping when the player is undercover.
I have made each particle check being under open sky (light == 15) to spawn, and collision detection is on. Now particles don't pass through objects and precipitation continues outside when the player is undercover.
It's a big improvement, more intensive but worth it.
Also included is more parameters and player position prediction from a pull request by lhofhansl.
Last edited by paramat on Tue Jul 24, 2018 18:37, edited 1 time in total.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 16 guests