Dec 3 2007, 09:52 AM
|
I've been learning C++, for the past.. has it been 2 months now? Time flies. I still have -lots- to learn, but grey, minthos, mort, njpaul and corman make it ALOT easier. They deserve medals for putting up with my endless questions
Anyways, since I'm so impatient, I dove straight into Ogre. Decided to try my hand at making a simple cloud rendering system, wich, obviously turned complicated. I'm currently planning on modeling realistic Cumulus, Stratocumulus, nimbus, cirrus, Stratus, and Nimbocumulus cloudtypes.
The basic technique wich I am utilizing was described by Niniane Wang in a paper on the Cloudsystem in FS2004 (and FSX for that matter). A quick google will bring it up if you're interested. Basically, I create a few boxes in Max, run a script that turns them into a predefined amount of planes (or billboards if you will), and then run another script wich outputs their position relative to 0,0,0 to a text file. I then parse the textfile and input the data into a Vector, wich I then utilise to create a billboard set in ogre. It's an efficient method that will be able to be used for most cloudtypes, except very large, layered cloudtypes such as stratus, or cirrus.
For lighting, Njpaul wrote me a awesome shader that takes the size of the bounding box and darkens the bottom of the cloud based on that data (so larger clouds will be darker below than smaller (height wise)). All that is left to do for cloud lightning, is a simple method of calculating a vertex position in relation to the cloud centre and light, and then using that data in the shader to light/darken the correct side. For time of day, I'm hoping colour interpolation will suffice.
Anyways, there's still LOTS of work to do, and if I actually manage to write some clean code you'll hopefully see it in the techdemo.
Here are some images. Keep in mind that these are very very early. I just crappily generated a bunch of clouds, based on one "cloudfile", so it'll definately look much better in the future.
|
|
|
Sep 24 2006, 04:22 PM
|
Wow, that was a heavy crunch..
It's funny how life happens exactly when you're not expecting it. Juggling school, PW and partying can be difficult at times. I am really happy to have my DWARF modelpack out the door, It may seem like little, but it really is alot of work.
Xanthrax sent me some wonderfull models I requested him for the modelpack, but i'm afraid they didn't make it in. I feel kind of bad for not holding up to my word - but perhaps it will be released sometime later on.
Eagerly awaiting your comments and thoughts. Also looking forward to the response on ogre forums.
Have fun!
|
|
|
|
Info/Links
About the author
Blog categories
Blog stats
Views: 3391
Entries: 3
Blog created: Aug 3 2006, 12:38 AM
|