MirceaKitsune wrote:An addition to my previous post: I thought of an even better way to fix points #2 and #4. What if a single particle spawner could follow the player horizontally (X and Z axes) but stay at cloud level vertically (Y axis)? Rain would always start at the correct height, and the delay precipitation has before reaching the ground would also be simulated.
Particles would need to use collision detection in this case, and die the moment they hit a surface, to avoid weather indoor. Collisions already exist, but I'm not sure about the dying part. Also, particles would start from very high up, so a draw distance limit is needed to avoid butchering performance.
BlockMen wrote:I tried that already and it kinda sucks, because of the "dying part". Sometimes the rain particles dont even reach the ground or they lie on the ground for seconds until they disapear. Furthermore it needs smaller particles (to look correct) than this mod uses and that drops the framerate or to be more precise: It makes the game unplayable for an average pc.
webdesigner97 wrote:So you mean weather could be a none-walkable transparent node with animated texures? Interesting...
webdesigner97 wrote:So you mean weather could be a none-walkable transparent node with animated texures? Interesting...
VanessaE wrote:Seems to me that if you start at the sky and replaced the air in 1x1m *columns* rather than large blocks, working your way downward and always stopping each individual column at the first non-air node, you'd get a correct and easy-on-the-CPU result.
That part would be almost trivial. The real trick would be making the precipitation track the movement of the clouds. :P
You would probably want to make exceptions to the stop rule, where clearly the precipitation should logically pass through.
VanessaE wrote:You can do this now by making a single node with inordinately tall nodebox coordinates. The texture will tile along the height. Alternatively, you may be able to use the plantlike draw type with a visual_scale setting of something insanely tall also.
I'm not sure what the height limit is, but it may be worth a try.
Then you'd just need nodes at the surface instead of whole columns.
Besides, I was thinking that columns (or single nodes) would be "turned on/off" gradually, one at a time.
VanessaE wrote:I was thinking of the nodes being placed at the surface where the rain/snow is landing, rather than at cloud level. Of course like you said, that doesnt handle the issue of stopping the precip at cloud height.
MirceaKitsune wrote: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.
GUIConfigureWorld: Not allowing focus change.
18:30:51: ERROR[main]: mod "digilines_inventory" has unsatisfied dependencies: "require"
[moreores] loaded.
[Mod] Memorandum [0.0.9] [memorandum] Loaded...
[Mod] Inventory Tweak _loaded
[Plantlife Library] Loaded
[Moretrees] Loaded (2013-02-11)
[Mod] Ferns [0.1.2] [ferns] Loaded...
[Poison Ivy] Loaded.
[Junglegrass] Loaded.
[Flowers] Loaded.
[Bushes] Loaded.
[OK] Mesecons
Pipeworks loaded!
18:30:51: ACTION[main]: .__ __ __
18:30:51: ACTION[main]: _____ |__| ____ _____/ |_ ____ _______/ |_
18:30:51: ACTION[main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
18:30:51: ACTION[main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
18:30:51: ACTION[main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
18:30:51: ACTION[main]: \/ \/ \/ \/ \/
18:30:51: ACTION[main]: World at [/home/silent/.minetest/worlds/Original_Home]
18:30:51: ACTION[main]: Server for gameid="minetest" listening on port 30000.
creative inventory size: 489
18:30:51: ACTION[ServerThread]: Silent-Hunter joins game. List of players: Silent-Hunter
Font size: 8 16
18:31:16: ACTION[ServerThread]: Silent-Hunter leaves game. List of players:
18:31:16: ERROR[main]: ServerError: LuaError: error: /home/silent/.minetest/mods/weather/weather/rain.lua:16: bad argument #1 to 'add_particlespawner' (number expected, got table)
18:31:16: ERROR[main]: stack traceback:
kwalters-price wrote:can i get this mod?
minetest.add_particlespawner(25, 0.5,
minp, maxp,
vel, vel,
acc, acc,
0.8, 0.8,
25, 25,
false, "weather_rain.png", player:get_player_name())
minetest.add_particlespawner(25, 0.5,
minp, maxp,
vel, vel,
acc, acc,
0.8, 0.8,
25, 25,
false, "weather_rain.png", player:get_player_name())
Silent-Hunter wrote:I doublechecked, I have particles enabled. And yet I still get the error I posted above.
Users browsing this forum: No registered users and 2 guests