irrWeatherManager 0.0.5 - weather system for Irrlicht

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Post by cobra »

Virion: You can set the "center" where a cloud layer spawns around (using irrWeatherManager::createCloudLayer()). In the Irrlicht example, the clouds are at 6,000 on the Y axis.

In my simulator I have the clouds at a virtual 8,000ft like real cumulus clouds form at in temperate areas.


EDIT: Update on the clouds.

I added a new cloud palette for more whispy and natural clouds:

Image
Image
Image

More:
http://skyreignsoftware.net16.net/Image ... uds3_1.png
http://skyreignsoftware.net16.net/Image ... uds3_2.png
Josiah Hartzell
Image
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

wow, the clouds are getting better and better :D
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

impressive. the new cloud is totally awesome.
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Post by cobra »

Now I've been working on the storms. No precipitation yet.

The new lightning system using Sudi's CBoltSceneNode. Lightning only comes out of the clouds of cloud layers that are designated as "storm cloud layers."

The storms aren't finished yet; I just started doing them last night.

Also, irrWeatherManager (the class) keeps a list of all cloud layers, and those cloud layers keep a list of all clouds in it. I thought this would be more organized and easy to keep track of layers (cirrus, cumulus, storm, stratus, etc. to be more easy to manage them).

The lightning strikes are completely random. Random number of bolts, random direction, random size, random host cloud, random life time and update time, etc.

It looks really neat in real time.

The host clouds are highlighted as blue for the moment until I think of another way to make them "flash."


Anyway, the previews:

Image
Image
Image


More:

http://www.skyreignsoftware.net16.net/I ... torms1.png
http://www.skyreignsoftware.net16.net/I ... torms2.png
http://www.skyreignsoftware.net16.net/I ... torms3.png
Josiah Hartzell
Image
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

a fractal randomization instead of a standard randomization will get the clouds to look better. thinked about that?
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Post by cobra »

Hi. I've thought about this, yes. I might end up doing it in the future, but right now it's not necessary, I don't think.
Josiah Hartzell
Image
Leo [Teh one]
Posts: 6
Joined: Sun Sep 05, 2010 3:08 pm

Post by Leo [Teh one] »

Cool project. I've already integrated it in my framework. Thanks, cobra!
I will wait for new releases.
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Post by cobra »

Hi, Leo.

Thanks! Yes, the coming releases will be much better than the previous. :)
Josiah Hartzell
Image
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Post by devsh »

I'd advise my atmospheric scattering as can be found in code snippets, and use that shader for atmospheric scattering within a cloud. atmospheric scattering is what makes clouds look so awesome. Do some research into that, also try to find a way of making rim lighting and self shadowing on clouds. HDR would help
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Post by cobra »

Hi, Devsh.

Could you go into a bit more detail about how this atmospheric scattering would be done for the clouds? Just a general explanation.

Would it be applied to the material of the cloud as a whole node, or per-particle?
Josiah Hartzell
Image
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Post by devsh »

its a shader, if you use a lot of vertices for your clouds then you can run it in per vertex mode otherwise some kinda per-pixel every alternating frame. Also checkout the Flight Sim paper about having an Impostor technique, with the current development of relief mapping you can fake clouds that are mid to far away. By rendering them onto a octagon surrounding the camera and updating them once per second (without having to redraw every cloud every frame), it was found to be very efficient and convincing. Now remember back in 2004 there was no parallax mapping or parallax occlusion mapping, if you threw a depth map in, the clouds could occlude each other despite being physically flat.
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Post by cobra »

Good suggestions, devsh. I was going to do imposters anyway, but not the way you described.

Thanks for the information.


Also, I want everybody to know that I'm moving active development to finishing a product of mine (a tool; not related to 3D).

This means that any other projects of mine will be put on hold, or short-time development, until I finish this completely and release it.

Thanks. And remember, the projects won't be dead. They're just on hold for the time being.
Josiah Hartzell
Image
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Post by devsh »

I'll be releasing a demo of my atmospheric scattering+shadows soon so maybe you could use some of that, at least for the skydome. At least when you releases it I give you permission to copy and paste code. I dunno how to scatter on clouds though :( I must figure out that one but I will do terrain first. A similar approach should work on clouds but its more kinda depth based rendering :(
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

is this using the atmosphere thingy? looks pretty good but the center of the sky (straight up) looks really odd at certain times a day. I think to really pull this off perfectly you're going to need to make use of many fine tuned shaders. sorry to state the obvious just putting my dumb opinion in here.

Goodluck with your project, nice job so far!
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Post by cobra »

Midnight wrote:is this using the atmosphere thingy? looks pretty good but the center of the sky (straight up) looks really odd at certain times a day. I think to really pull this off perfectly you're going to need to make use of many fine tuned shaders. sorry to state the obvious just putting my dumb opinion in here.

Goodluck with your project, nice job so far!

Hey Midnight. Thanks for the input.

Yeah, the top of the sky looks strange at times. This can be fixed by changing the atmosphere texture.

Unfortunately, I'm not very good with shaders right now. Maybe I'll start experimenting some time. :)
Josiah Hartzell
Image
Post Reply