Official Community Forums
 
HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  The Wiki  Website  github Project  

Share | 
 

 Weather Systems

View previous topic View next topic Go down 
AuthorMessage
Telepathetic
Experienced Newbie
Experienced Newbie
avatar

Posts : 26
Join date : 2013-01-31
Location : Whidbey Island, WA

PostSubject: 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
Back to top Go down
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: 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)
Back to top Go down
tichfuie
Super Contributor
Super Contributor
avatar

Posts : 257
Join date : 2013-02-07
Location : NA

PostSubject: 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?
Back to top Go down
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: 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.
Back to top Go down
tichfuie
Super Contributor
Super Contributor
avatar

Posts : 257
Join date : 2013-02-07
Location : NA

PostSubject: 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.

Back to top Go down
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: Weather Systems   Fri 12 Apr - 12:07

Sorry, you're right. I meant marker not region.
Back to top Go down
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: 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.
Back to top Go down
tichfuie
Super Contributor
Super Contributor
avatar

Posts : 257
Join date : 2013-02-07
Location : NA

PostSubject: 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.
Back to top Go down
Delurin
Head of Platform Development


Posts : 424
Join date : 2011-08-03

PostSubject: Re: Weather Systems   Fri 12 Apr - 13:38

You can attach particles to the player object so it will follow you around.
Back to top Go down
Telepathetic
Experienced Newbie
Experienced Newbie
avatar

Posts : 26
Join date : 2013-01-31
Location : Whidbey Island, WA

PostSubject: 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
Back to top Go down
Delurin
Head of Platform Development


Posts : 424
Join date : 2011-08-03

PostSubject: 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
Back to top Go down
Sponsored content




PostSubject: Re: Weather Systems   

Back to top Go down
 
Weather Systems
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» rfe weather for rf1
» Killer dynamic weather
» Solar Energy Engineering, Second Edition: Processes and Systems
» Basecoat in Cold Weather
» Weather script for Fallout 3

Permissions in this forum:You cannot reply to topics in this forum
 :: Development :: Getting Started-
Jump to: