3D clouds

From FlightGear wiki
Revision as of 16:58, 11 January 2009 by Fg (Talk | contribs)

Jump to: navigation, search
3D clouds in OSG version as seen from a EC135.
3D clouds in PLIB version

FlightGears weather system uses 3D clouds for a realistic reproduction of the sky. 3D clouds have been present since version 0.9.1, and significantly updated in version 0.9.9.

When FlightGear switched from PLIB to OSG the 3D clouds were temporarily lost. Currently efforts are going on to re-implement the clouds. As of October 2008 the clouds are back and committed to FlightGear CVS, and released with FlightGear 1.9.0 that December.

Cloud shapes and layers

A 3D cloud layer is defined in the <layers> section. It contains of a number of randomly located <boxes>, containing a set of <clouds>.

Each cloud is generate with random size, based on the following tags:


The cloud consists of <num-sprites> individual sprites. Each sprite is generated with random size, based on the following tags:


The <texture> defines the texture file to be used for the sprite. The texture file may contain more than one texture in a grid, by setting the <num-textures-x> and <num-textures-y> tags.

Cloud are darker towards the bottom. bottom-shade indicates the shading factor of the bottom of the cloud compared with the top.

External links