| Weather Systems | |
|
|
Author | Message |
---|
Telepathetic Experienced Newbie
Posts : 26 Join date : 2013-01-31 Location : Whidbey Island, WA
| Subject: Weather Systems Fri 12 Apr - 8:18 | |
| Has anyone attempted in-game weather systems? I know there is fog in the terrain generator - theoretically other weather types could be added to that, right? Any ideas?
Thanks Tele
| |
|
| |
rotello Super Contributor
Posts : 215 Join date : 2012-12-06
| Subject: Re: Weather Systems Fri 12 Apr - 10:13 | |
| There's rain using particle and region. Set up regions and use emitter box, then you have rain or snow. Customize your effects using Particle Editor (see Tools category) | |
|
| |
tichfuie Super Contributor
Posts : 257 Join date : 2013-02-07 Location : NA
| Subject: Re: Weather Systems Fri 12 Apr - 10:42 | |
| hi rotello, welcome back :-)
question, i tested it by adding a region on world editor but the region does not have option to add an emitter box
how do you manage to add this emitter box to a region? | |
|
| |
rotello Super Contributor
Posts : 215 Join date : 2012-12-06
| Subject: Re: Weather Systems Fri 12 Apr - 11:34 | |
| hey, how's it going?
I think the emitter type (box) is already set for rain. In any case, you're gonna have to set it using particle editor or edit the particle file manually. I'm sure you're familiar with the editor. Posted that info in Tools section, btw. | |
|
| |
tichfuie Super Contributor
Posts : 257 Join date : 2013-02-07 Location : NA
| Subject: Re: Weather Systems Fri 12 Apr - 12:06 | |
| yeah, but you mentioned to add a region , what would the region be for?
I thought that by adding a region you could attach the rain box emitter to the region and have rain in the whole region area automatically?
because the way to add a particle is by either attach it to a marker or an object, but not to a region, at least i dont see any options to attach a particle to the region itself.
| |
|
| |
rotello Super Contributor
Posts : 215 Join date : 2012-12-06
| Subject: Re: Weather Systems Fri 12 Apr - 12:07 | |
| Sorry, you're right. I meant marker not region. | |
|
| |
rotello Super Contributor
Posts : 215 Join date : 2012-12-06
| Subject: Re: Weather Systems Fri 12 Apr - 12:09 | |
| You have to set the emitter size in the particle file and/or in the particle object in world editor.
| |
|
| |
tichfuie Super Contributor
Posts : 257 Join date : 2013-02-07 Location : NA
| Subject: Re: Weather Systems Fri 12 Apr - 12:30 | |
| ok, thanks.
i wonder how big the emitter can be resized to cover a large area.
but the optimal way might be to attach the rain particle emitter to the player camera, but so far dont know if this can be possible without having to do a mod to the C# camera code. | |
|
| |
Delurin Head of Platform Development
Posts : 424 Join date : 2011-08-03
| Subject: Re: Weather Systems Fri 12 Apr - 13:38 | |
| You can attach particles to the player object so it will follow you around. | |
|
| |
Telepathetic Experienced Newbie
Posts : 26 Join date : 2013-01-31 Location : Whidbey Island, WA
| Subject: Re: Weather Systems Tue 16 Apr - 5:40 | |
| Interesting mix of replies here - looks very promising! Thank you rotello, delurin, tichfuie. My ideal world has randomly fluctuating weather, similar to a real world system, that changes over time. I could conceivably do this by spawning an object that has a finite lifetime. The object would produce a weather effect for a region, either randomly or based on other weather objects, and then spawn another object as it's time expires (which would then generate a new weather effect for a random amount of time).
Assigning weather to objects (markers, it seems) appears very straightforward, the question is: Can an object spawn a new object, or at least regenerate itself/ reassign values to itself on a timer (again - randomized, or generated real time based on preexisting conditions)? At this juncture the actual code isn't important, just the possibility/difficulty of doing something like this. There are so many other pressing things to attend to on my game, but I wanted to check in about this in advance. Weather could be such a great addition....
Thanks all! Tele | |
|
| |
Delurin Head of Platform Development
Posts : 424 Join date : 2011-08-03
| Subject: Re: Weather Systems Tue 16 Apr - 5:44 | |
| I am not sure off the top of my head if there is something already created for it, but it wouldnt be hard to modify the spawnGenerator to despawn an object after a certain amount of time and respawn with a different weather particle attached | |
|
| |
Sponsored content
| Subject: Re: Weather Systems | |
| |
|
| |
| Weather Systems | |
|