Page 3 of 6

PostPosted: Mon Jul 15, 2013 10:14
by proller
Now its uses heat and humidity from core and deside rain-or-snow in lua
melting-freezing now have no hardcoded nodes, anything via groups

PostPosted: Mon Jul 15, 2013 12:25
by MirceaKitsune
proller wrote:Now its uses heat and humidity from core and deside rain-or-snow in lua
melting-freezing now have no hardcoded nodes, anything via groups


Sounds good! Are there any screenshots with functional weather yet?

PostPosted: Mon Jul 15, 2013 14:33
by proller
i cant make screenshots. but it same as in top of this post.

And better can showed on video, snow-rain area is moving (slowly), water can freeze, ice-snow can melt, ...

try it

PostPosted: Tue Jul 16, 2013 09:12
by AndrOn
Maybe you could enable collision to avoid the problem of the rain inside glass buildings? I wonder also if there is a way to avoid the particles facing the player, it's weird when you look up at the rain. A workaround could be to make rain more like small round drops, this way it wouldn't look bad when you look up.

PostPosted: Tue Jul 16, 2013 10:41
by hassage
Good Idea AndrOn!

PostPosted: Thu Jul 18, 2013 18:20
by playzooki
make floods

PostPosted: Thu Jul 18, 2013 18:22
by mauvebic
playzooki wrote:make floods


Place a single water block, that otta do it :p

PostPosted: Sat Jul 20, 2013 09:37
by AndrOn
mauvebic:
playzooki wrote:

make floods


Place a single water block, that otta do it :p


really good idea! Maybe not water sources to avoid the map to be permanently flooded but if it's possible half-filled water flowing blocks that would flow, spread and vanish.

PostPosted: Sat Jul 20, 2013 16:49
by Linxx
AndrOn wrote:
mauvebic:
playzooki wrote:

make floods


Place a single water block, that otta do it :p


really good idea! Maybe not water sources to avoid the map to be permanently flooded but if it's possible half-filled water flowing blocks that would flow, spread and vanish.

then enable finite liquids i think that might do it but idk haven't used it.

PostPosted: Sat Jul 20, 2013 21:01
by proller
floods when rain and when snow melt already done in my branches.

PostPosted: Sun Jul 28, 2013 13:37
by proller
Core support for heat, humidity, leveled nodes merged into master.
now with latests git can try https://github.com/proller/minetest-mod-weather/tree/weather

PostPosted: Sun Jul 28, 2013 15:26
by Inocudom
proller wrote:Core support for heat, humidity, leveled nodes merged into master.
now with latests git can try https://github.com/proller/minetest-mod-weather/tree/weather


This sounds like something Bas080, Hybrid Dog, and VanessaE can really put to good use.

PostPosted: Tue Aug 06, 2013 22:05
by paramat
I'm working on a lightweight fork of this mod where individual snowflake particles are spawned.
EDIT snowflakes drift southward as clouds do, just a little slower.

PostPosted: Wed Aug 07, 2013 01:41
by Bas080
This can be improved. What if weather is locational and not only random.

A big improvement would be that when you walk the particles are spawned a bit in front of the player. That way the particles that are spawned are more visible and are used more effectively. I'm sure you'll figure out how to achieve this.

PostPosted: Wed Aug 07, 2013 18:59
by paramat
Bas080, in my version snow will be dependant on biome.

PostPosted: Wed Aug 07, 2013 21:36
by paramat
Jeija, see useful info on terminal velocity in this thread https://forum.minetest.net/viewtopic.php?id=2290&p=5

PostPosted: Wed Aug 07, 2013 22:27
by Chinchow
paramat wrote:I'm working on a lightweight fork of this mod where individual snowflake particles are spawned.
EDIT snowflakes drift southward as clouds do, just a little slower.


http://i.imgur.com/G2wHG2c.png

This is cool but is it possible to make the sky a little less bright to those in a snowy area so that it mimics a snowy day?

PostPosted: Wed Aug 07, 2013 23:28
by paramat
Hmm not sure ... however my snowfall is very light so makes sense in a world with only a few clouds.
Forum member proller is working on more complex weather.

PostPosted: Thu Aug 08, 2013 10:34
by Splizard
Bas080 wrote:This can be improved. What if weather is locational and not only random.

A big improvement would be that when you walk the particles are spawned a bit in front of the player. That way the particles that are spawned are more visible and are used more effectively. I'm sure you'll figure out how to achieve this.

Snow fall in the current version of snow mod, is only spawned in snow biomes.

PostPosted: Tue Aug 20, 2013 20:04
by BrunoMine
I want the snow to accumulate. how to do it?

PostPosted: Wed Sep 11, 2013 07:53
by samreenkhud
I will attempt to disseminate all that I have discussed and learned over the last 36 hours.

weather in pakistan

PostPosted: Tue Sep 17, 2013 05:04
by TheFlannelOne
I'm getting this error:

21:51:15: ERROR[main]: ServerError: LuaError: error: ...bin\..\mods\minetest-mod-weather-master\weather/rain.lua:16: bad argument #1 to 'add_particlespawner' (number expected, got table)

I'm on windows 7 using minetest-0.4.7-72b9b0f-fixes-win32

The snow works fine. This error only happens when it rains.

PostPosted: Tue Sep 17, 2013 06:22
by sfan5
TheFlannelOne wrote:I'm getting this error:

21:51:15: ERROR[main]: ServerError: LuaError: error: ...bin\..\mods\minetest-mod-weather-master\weather/rain.lua:16: bad argument #1 to 'add_particlespawner' (number expected, got table)

I'm on windows 7 using minetest-0.4.7-72b9b0f-fixes-win32

The snow works fine. This error only happens when it rains.

Update your Minetest version.
Also please note this:
PilzAdam wrote:There are a lot of other people doing win builds now, so I will make my builds on request now. Ask me here or in IRC, I can also make builds of different branches or Minetest forks.

You have too use my or Fess to get new minetest builds

PostPosted: Tue Sep 17, 2013 09:38
by jojoa1997
sfan5 wrote:
TheFlannelOne wrote:I'm getting this error:

21:51:15: ERROR[main]: ServerError: LuaError: error: ...bin\..\mods\minetest-mod-weather-master\weather/rain.lua:16: bad argument #1 to 'add_particlespawner' (number expected, got table)

I'm on windows 7 using minetest-0.4.7-72b9b0f-fixes-win32

The snow works fine. This error only happens when it rains.

Update your Minetest version.
Also please note this:
PilzAdam wrote:There are a lot of other people doing win builds now, so I will make my builds on request now. Ask me here or in IRC, I can also make builds of different branches or Minetest forks.

You have too use my or Fess to get new minetest builds
Fess's builds are good when ou are using big texture packs and the such because they are 64-bit. IF your computer can handle it.

PostPosted: Fri Oct 11, 2013 17:50
by MirceaKitsune
I tested Proller's version of the weather system in the Next branch, and wanted to share my thoughts, the issues I found, and solutions for some of those issues. I already discussed most points with Proller on IRC, but things tend to get lost in chats so I'll also mention them here.

First of all, I absolutely love how precipitation respects the mapgen humidity map, how rain / snow create flowing water or snow blocks, and how water freezes or evaporates based on the temperature map. I watched those in practice today and also looked at the Lua files, and there's little to object to. Only problem I can think of is that flowing water shouldn't appear on flat surfaces and litter them randomly, but only build up in holes or flow over hills. In some aspects I find this a little odd:

Image

My only real problem is the laggy and incorrect particle system, which IMO needs a lot of fixing. Here's my take on each of the issues:

1 - Particle spawners follow the player on the server rather than the client. This not only causes clients with a slow connection to see particle clouds be left behind as they walk, but also wastes a lot of bandwidth. In my opinion, weather cannot be ready until particles are attached to the player client-side, and only updated by the server when needed. Thankfully there's already code for that, but the branch is still waiting in this pull request. Once that change is added to Minetest, this problem should be easy to fix.

2 - Current indoor / outdoor detection system is very fake and obvious. If the player is standing under the clear sky, he sees weather taking place indoor... while if he's in a cave or house, he no longer sees precipitation outside. Me and Proller thought of a solution for this: Having one or more circles of spawners above the player, each spawner detecting if its positioned indoor or outdoor. I asked the Lua team for a formula which can generate a circle of X points in Y radius, and someone wrote one which would provide a perfect fix. Feel free to try it out over here:

Code: Select all
local points = 4
local dist = 10
for i = 1, points do
    print(("( %.2f, %.2f )"):format(math.sin( (math.pi * 2 / points) * i) * dist, math.cos( (math.pi * 2 / points) * i ) * dist))
end


3 - Rain particles should only face the camera horizontally, not vertically (snow is good as it is). If you look forward as it rains, you see the rain fall correctly. But if you look up, you see panels of blue lines coming toward you. Proller said a vertical parameter for particles already exists, so this should be fixed soon.

4 - The player can see particles appearing. Look upward when it rains / snows, and you see how particles spawn right above your head. Their starting point should be much higher... probably at least 25 nodes above the player.

5 - Particles decrease frame rate considerably. In my case, rain or snow seem to bring FPS down to half. Sadly there might be nothing we can do here. Decreasing the amount of particles is not an option, since the current quantity looks correct and any less would be ugly. Only suggestion is making sure there are no performance improvements left undone in particle rendering code, and if so this is something we'll have to live with.

Last suggestion I have on the weather system is adding sounds when it snows or rains. Simply looping the sound files is very easy, although having realistic sound effects (like rain hitting different surfaces) might be trickier. And of course, darkening the sky and thickening fog while it's snowing or raining... but that will require heavier code changes so it's best left for later.