# Weather Configuration (CPP) Weather configuration parameters (date, time, clouds, precipitation, lightning, etc.) are stored by default in a file named `weather_config.xml`. > **Notice:** You can specify another configuration file to be used via the `-weather_config` startup command-line argument: > ```bash > -weather_config "my_config.xml" > ``` A configuration file is an ordinary ***.xml** file with the following structure (example): ```xml modules/weather/shader/region_blur.basemat modules/weather/tracks/visibility.track 2023-10-26T11:00:24 0 editor2/resources/nodes/global_water_beauforts/beaufort_%d.node 1 1000000 2000000 0 50000 0 ``` ## Weather Settings The weather settings are added to the variables group with the name **Meteo**. ```xml 3.000000 3.000000 3.000000 ig/weather/tracks/visibility.track ig/weather/tracks/clouds_environment.track ig/weather/tracks/clouds_density.track ig/weather/fx/lightning/nodes/lightning_particles.node water_global_beaufort_%d ``` The following items are available: - **visibility_transition_time** � time, in seconds, for gradual change of visibility conditions (fog, etc.) - **precipitations_transition_time** � time, in seconds, for gradual change of precipitation - **cloud_transition_time** � time, in seconds, for gradual change of cloudiness - **visibility_tracker** � path to the `.track` file containing visibility transition effect - **overcast_preset_tracker** � path to the `.track` file containing the overcast preset - **clouds_density_tracker** � path to the `.track` file containing gradual change of cloudiness - **lightning** � path to the node storing lighting - **water_beaufort_material_prefix** � name of the water material for the corresponding number according to the Beaufort scale ## Date and Time Settings The date and time settings are added to the variables group with the name **SkyMap**. ```xml 0 2003-12-06T10:30:00 ``` The following items are available: - **timezone** � UTC timezone, only an integer value is possible (if not set, UTC=0) - **datetime** � date and time set for the specified timezone ## Round Planet Settings The settings that only apply when the world is rendered on a round planet � as it is with the *[Cesium](../../code/plugins/cesium/index_cpp.md)* plugin � are added to the variables group with the name **Planet**. On a flat map none of them has any effect. ```xml 1 1000000 2000000 0 50000 0 ``` The following items are available: - **enabled** � switch on the round-planet corrections: the altitude-driven cloud rounding, the sky offset that holds the horizon still across a [floating-origin rebase](../../code/plugins/cesium/index_cpp.md#anchor), the haze veto and the cloud noise continuity fixup - **clouds_radius_min_m** and **clouds_radius_max_m** � the bounds, in meters, of the radius the cloud layers are bent to - **clouds_radius_low_alt_m** and **clouds_radius_high_alt_m** � the observer altitude range, in meters, over which the radius ramps from the minimum to the maximum. Below the lower altitude the minimum is in force, above the upper one the maximum is - **haze_enabled** � draw the haze. Disabled by default on a planet > **Notice:** The cloud radius is deliberately far smaller than the real radius of the Earth (about 6378 km), and is a rendering parameter rather than a physical one: the cloud noise is simple enough to tile visibly at true planetary scale. Ramping it with altitude keeps the curvature plausible both from the ground and from orbit. > **Notice:** Haze is off by default because the flat-world haze is drawn as a hard band across the horizon once the horizon is curved. Enable it only if the camera stays low enough for that not to show. The values in force at run time can be read back through the *[Weather::Manager::getPlanet()](../../api/library/plugins/weather/class.weather_manager_cpp.md#Planet)* interface: *[isEnabled()](../../api/library/plugins/weather/class.planet_cpp.md#IsEnabled)*, *[isHazeEnabled()](../../api/library/plugins/weather/class.planet_cpp.md#IsHazeEnabled)* and *[getCloudsRadius()](../../api/library/plugins/weather/class.planet_cpp.md#CloudsRadius)*. ## Cloud Types The list of available cloud types is enclosed in the tag. The cloud type can be set via [HEMU](http://cigi.sourceforge.net/product_he.php) / [IG Host](../../ig/ig_host.md), or using the *[WeatherLayerCloud::setCloudType()](../../api/library/plugins/weather/class.weatherlayercloud_cpp.md#setCloudType_int_bool_void)* method. ```xml ``` The following attributes are available: - **type** � type of clouds - **name** � name of the cloud type - **material** � material to be used - **shadow_density** � power of the shadow cast by this cloud within the range [0.0, 1.0] - **padding** � lower and upper bounds for this type of cloud - **elevation** � default elevation for this type of cloud (height above sea level), in meters - **thickness** � default thickness for this type of cloud, in meters ## Precipitation Types The list of available precipitation types is enclosed in the tag. ```xml ``` The following attributes are available: - **type** � precipitation type id - **name** � name of the precipitation type - **far_node_path** � path to the node storing a representtation of the precipitation effect for far distances (when left empty the **near_node_path** is used) - **near_node_path** � path to the node storing a representtation of the precipitation effect for close distances