3D clouds: Difference between revisions

Jump to navigation Jump to search
53 bytes added ,  22 December 2009
m
Added new example picture and fixed various spelling and grammar errors.
No edit summary
m (Added new example picture and fixed various spelling and grammar errors.)
Line 6: Line 6:
[[FlightGear]]s [[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.
[[FlightGear]]s [[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.
When FlightGear switched from [[PLIB]] to [[OSG]] the 3D clouds were temporarily lost. As of October 2008 the clouds were back in [[FlightGear CVS]] and released with [[FlightGear 1.9.0]] that December. Current development versions feature an improved 3D cloud rendering system that will be included in the next release.


==Cloud shapes and layers==
==Cloud shapes and layers==
Line 14: Line 14:
A 3D cloud layer is defined in the <layers> section. It contains of a number of randomly located <boxes>, containing a set of <clouds>.
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:
Each cloud is generated with random size, based on the following tags:


  <min-cloud-width-m>
  <min-cloud-width-m>
Line 31: Line 31:
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.
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.
Clouds are darker towards the bottom. bottom-shade indicates the shading factor of the bottom of the cloud compared with the top.


Finally, note that the clouds are defined as a set of properties, so can be modified within the simulator under /environment/cloud-layers. You can then see the effects of your changes by changing the clouds dialog, which reloads the clouds from properties.
Finally, note that the clouds are defined as a set of properties, so they can be modified within the simulator under /environment/cloud-layers. You can then see the effects of your changes by changing the clouds dialog, which reloads the clouds from properties.


==Cloud Textures==
==Cloud Textures==
78

edits

Navigation menu