Skip to main content
Skip table of contents

Lightning

Lightning Overview


The purpose of the lightning feature is to demonstrate a dynamic weather pattern in a given location.

Visual Examples

A scene before the lightning flashes across the sky

A scene of the lightning flashing across the sky 

A scene of lightning striking; its reflection can be seen in the water

Lightning Configuration


Lightning Token Configuration

Token NameTypeDefault ValueAccepted ValuesCategoryDescription
AutoCloudCulturalIllumBOOLOFFON, OFF, 1, 0, TRUE, FALSERendering Weather
AutoCloudCulturalIllumCountFLOAT25000-FLOAT_MAX to FLOAT_MAX, inclusiveRendering Weather
AutoCloudCulturalIllumFactorFLOAT1-FLOAT_MAX to FLOAT_MAX, inclusiveRendering Weather
AutoCloudCulturalIllumViewCountFLOAT15000-FLOAT_MAX to FLOAT_MAX, inclusiveRendering Weather
BlackSkyBOOLOFFON, OFF, 1, 0, TRUE, FALSERendering Weather
CloudCulturalIllumDefaultFLOAT0-FLOAT_MAX to FLOAT_MAX, inclusiveRendering Weather
CloudMoonIlluminationFactorFLOAT10 to 1, inclusiveRendering WeatherFactor to control moon cloud/fog illumination in OTW/CCD
DisableCloudSortBOOLOFFON, OFF, 1, 0, TRUE, FALSERendering Weather
InsideCloudVisibilityFactorFLOAT1

Greater than 0 Less than or equal to FLOAT_MAX

( 0 < x <= FLOAT_MAX )

Rendering Weather
LayeredHazeColorsBOOLON

ON, OFF, 1, 0, TRUE, FALSE

Rendering Weather

Sets whether layered haze colors are used If: 1) OTW or RADAR 2) Not Planter 3) HDRLighting is OFF or ON. Ignored and implicitly forced ON for sensor types where HDRLighting ADVANCED is active. Ignored and implicitly forced OFF if: HDRLighting is OFF or ON, and 1) Sensor type != OTW or RADAR or 2) Is Planter.

LayeredHazeDensityInitValueFLOAT0.66

-FLOAT_MAX to FLOAT_MAX, inclusive

Rendering Weather


LightInsideCloudRangeFLOAT100

Greater than 0 Less than or equal to FLOAT_MAX

( 0 < x <= FLOAT_MAX )

Rendering Weather


LightningIntensityFactorFLOAT1

-FLOAT_MAX to FLOAT_MAX, inclusive

Rendering Weather


RainColorFactorFLOAT1

-FLOAT_MAX to FLOAT_MAX, inclusive

Rendering Weather


Lightning Data Configuration

None.

Lightning Usage


Lightning ICD Interface

Nova VariableDescription
ios2ig.dat.lightning

Severity level of the lighting.

0: Off

1: Less severe to 3: More severe

Lightning Runtime Operation

Runtime Scenario - Enabling Lightning


If using AeHost:

  1. Locate the Precipitation section.
  2. Locate the Lightning Enable, Severity line and click its checkbox; change its value to 2.


If setting values directly in Spy:

  1. Set ios2ig.dat.lightning to 2.

Lightning CIGI Packets

Weather Control Packet

Layer IDWeather EffectSpyClient MappingSupported FieldsDescription
0Ground Fogios2ig.dat.fogWeather EnableOff / On Flag (0, 1)
ios2ig.dat.fog_layer_floorBase Elevation

Top altitude of full fog where visibility is equal to Visibility Range.

(The fog base always extends to the ground - ownship cannot punch below layer).

See Ground Fog Characteristics.

ios2ig.dat.fog_layer_ceiling

Thickness

(Summed with base elevation)

Thickness of transition band between Base Elevation (full fog) and no fog.

See Ground Fog Characteristics.

ios2ig.dat.fog_layer_range

Visibility Range

Visibility range within ground fog.

1Cloud Layer 1N/AWeather EnableOff / On Flag (0, 1)
ios2ig.dat.cloud_layer1Cloud TypeSee Cloud Types.
7th bit of ios2ig.dat.cloud_layer1Scud EnableOff / On
ios2ig.dat.cloud_thick1TransitionTransition region for scud.
ios2ig.dat.cloud_bottom1Base ElevationLowest Cloud level (meters).

ios2ig.dat.cloud_height1

Top Height

(Summed with thickness)

For types 3 and 9 - 12: Top height of cloud layer (Base Elevation + Thickness).

Thickness ignored for type 10.

All other types: Transition layer thickness - these clouds are 2D.

ios2ig.dat.cloud_layer_color1Severity

Color Enumeration

0: Default

1: Darkest - 4: Lightest

ios2ig.dat.cloud_layer_density1

Coverage (Types 9 - 12 only)

Density: 0 - 100 (Less Dense - More Dense).

ios2ig.dat.cloud_layer_softness1Aerosol (Types 9 - 12 only)Softness: -127 - 127 (Sharper Edge - Softer Edge). 0 is default.
2Cloud Layer 2N/AWeather EnableOff / On Flag (0, 1)
ios2ig.dat.cloud_layer2Cloud TypeSee Cloud Types.
7th bit of ios2ig.dat.cloud_layer2Scud EnableOff / On
ios2ig.dat.cloud_thick2TransitionTransition region for scud.
ios2ig.dat.cloud_bottom2Base ElevationLowest Cloud level (meters).

ios2ig.dat.cloud_height2

Top Height

(Summed with thickness)

For types 3 and 9 - 12: Top height of cloud layer (Base Elevation + Thickness).

Thickness ignored for type 10.

All other types: Transition layer thickness - these clouds are 2D.

ios2ig.dat.cloud_layer_color2Severity

Color Enumeration

0: Default

1: Darkest - 4: Lightest

ios2ig.dat.cloud_layer_density2

Coverage (Types 9 - 12 only)

Density: 0 - 100 (Less Dense - More Dense)

ios2ig.dat.cloud_layer_softness2Aerosol (Types 9 - 12 only)

Softness: -127 - 127 (Sharper Edge - Softer Edge)

0 is default

3Cloud Layer 3N/AWeather EnableOff / On Flag (0, 1)
ios2ig.dat.cloud_layer_color3Severity

Color Enumeration

0: Default

1: Darkest - 4: Lightest

ios2ig.dat.cloud_layer_density3

Coverage (Types 9 - 12 only)

Density: 0 - 100 (Less Dense - More Dense)

ios2ig.dat.cloud_layer_softness3Aerosol (Types 9 - 12 only)Softness: -127 - 127 (Sharper Edge - Softer Edge). 0 is default.
4RainN/AWeather EnableOff / On Flag (0, 1)

ios2ig.dat.rain

ios2ig.dat.inten_rain

Severity

Rain Severity

1: Less Severe - 5: More Severe

5SnowN/AWeather EnableOff / On Flag (0, 1)
ios2ig.dat.snowSeverity

Snow Severity

1: Less Severe - 5: More Severe

10Lightning (Aechelon Extension)ios2ig.dat.lightningWeather EnableOff / On Flag (0, 1)
Severity1: Less Severe - 3: More Severe
11Sea State (Aechelon Extension)N/AWeather EnableOff / On Flag (0, 1)
ios2ig.dat.sea_state.sea_stateSeverity

Sea State

1: Calm - 5: Not Calm

ios2ig.dat.sea_state.sea_roughnessThickness

Sea Roughness

1: Less Rough - 5: More Rough

ios2ig.dat.sea_state.sea_wind_speedHorizontal Wind Speed

Wind speed for waves (knots).

ios2ig.dat.sea_state.sea_wind_dirWind Direction

Wind direction for waves (degrees).

12Haze (Aechelon Extension)N/AWeather Enable

Off / On Flag (0, 1)

ios2ig.dat.visib_general

ios2ig.dat.visib_fog

ios2ig.dat.fog_range

Visibility Range

Range (meters).

ios2ig.dat.layered_haze_intensity

Coverage

Intensity of layered haze effect (0.0 - 1.0).

ios2ig.dat.haze_tint

Thickness

De-saturate blue tint of haze effect (0.0 - 1.0). 0.0 is default value.

13Windshield Wipers (Aechelon Extension)

N/A

Weather Enable

Thickness = (0.0 - 1.0) Speed

ios2ig.dat.windshield_wipers

Thickness

Speed

0.0: Slower - 1.0: Faster

14Tide Level (Aechelon Extension)

ios2ig.dat.sea_state.tide_level

Thickness

Tide (feet).

15Patchy Fog (Aechelon Extension)

N/A

Weather Enable

Off / On Flag (0, 1)

ios2ig.dat.fog

Coverage

Coverage Type

See Patchy Fog Coverage Types.

ios2ig.dat.fog_layer_floor

Base Elevation

Top altitude of full fog where visibility is equal to Visibility Range (the fog base always extends to the ground, 0 MSL)

ios2ig.dat.fog_layer_ceiling

Thickness

(Summed with base elevation)

Thickness of transition band between Base Elevation (full fog) and no fog

See Ground Fog Characteristics.

ios2ig.dat.fog_layer_range

Visibility Range

Range.

ios2ig.dat.varying_fog

Transition

Variance

0.0 - 1.0

16Wet Runway (Aechelon Extension)

N/A

Weather Enable

Off / On Flag (0, 1)



ios2ig.dat.wet_runway

Severity

Effect enumeration

0: Auto

1: Clear

2: Rain

3: Snow

4: Ice

5: Patchy Rain

6: Patchy Snow

7: Patchy Ice

8: Sand

17Sea Current (Aechelon Extension)

N/A

Weather Enable

Off / On Flag (0, 1)

ios2ig.dat.sea_state.sea_current_dir

Wind Direction

Wind direction for sea targets (degrees).

ios2ig.dat.sea_state.sea_current_speed

Horizontal Wind Speed

Wind speed for sea current (knots).

ios2ig.dat.sea_state.sea_current_amplitude

Base Elevation

Wave amplitude in meters.

ios2ig.dat.sea_state.sea_current_period

Thickness

Wave period in meters.

18Alpenglow (Aechelon Extension)

N/A

Weather Enable

Off / On Flag (0, 1)

ios2ig.dat.alpenglow

Thickness

Alpenglow effect intensity

0.0 - 1.0

19Wind Layer 1 (Aechelon Extension)

N/A

Weather Enable

Off / On Flag (0, 1)

Note that the Atmosphere Control packet's wind settings set all wind layers; to set them individually, you must send this packet after the Atmosphere Control packet

h2ig.dat.wind_dir[0]

Wind Direction

Wind direction (degrees).

h2ig.dat.wind_veloc[0]

Horizontal Wind Speed

Wind speed (knots).

h2ig.dat.wind_layer_hgt[0]

Base Elevation

Wave height in meters.

20Wind Layer 2 (Aechelon Extension)

N/A

Weather Enable

Off / On Flag (0, 1)

Note that the Atmosphere Control packet's wind settings set all wind layers; to set them individually, you must send this packet after the Atmosphere Control packet

h2ig.dat.wind_dir[1]

Wind Direction

Wind direction (degrees).

h2ig.dat.wind_veloc[1]

Horizontal Wind Speed

Wind speed (knots).

h2ig.dat.wind_layer_hgt[1]

Base Elevation

Wave height in meters.

21Wind Layer 3 (Aechelon Extension)

N/A

Weather Enable

Off / On Flag (0, 1)

Note that the Atmosphere Control packet's wind settings set all wind layers; to set them individually, you must send this packet after the Atmosphere Control packet

h2ig.dat.wind_dir[2]

Wind Direction

Wind direction (degrees).

h2ig.dat.wind_veloc[2]

Horizontal Wind Speed

Wind speed (knots).

h2ig.dat.wind_layer_hgt[2]

Base Elevation

Wave height in meters.

22Wind Layer 4 (Aechelon Extension)

N/A

Weather Enable

Off / On Flag (0, 1)

Note that the Atmosphere Control packet's wind settings set all wind layers; to set them individually, you must send this packet after the Atmosphere Control packet

h2ig.dat.wind_dir[3]

Wind Direction

Wind direction (degrees).

h2ig.dat.wind_veloc[3]

Horizontal Wind Speed

Wind speed (knots).

h2ig.dat.wind_layer_hgt[3]

Base Elevation

Wave height in meters.

Lightning FX Tuning

FX Tuning for Lightning


Token NameDefault ValueAccepted ValuesDescriptionToken Source File

BOLT_HEIGHT_SCALE

600.0
Lightning bolt height scale.

Lightning.fx

BOLT_HEIGHT_BIAS

2000.0
Lightning bolt height bias.

LIGHTNING_RADIUS

100000.0
Lightning radius.

CORE_BRANCH_PROB

1.1
Lightning bolt core branch probability.

CORE_BRANCH_CLAMP

0.89
Lightning bolt core branch clamp.

SUB_BRANCH_LENGTH

200.0
Lightning bolt sub-branch probability.

SUB_BRANCH_PROB

0.965
Lightning bolt sub-branch length param.

LIGHTNING_TEMP

1000
Lightning temperature.

CLOUD_TO_CLOUD_RATIO

0.2
Cloud-to-cloud lightning ratio.

LOCAL_LIGHT_ATTENUATION

1.0, 0.0, 0.000000022
Lightning local light attenuation.

LOCAL_SPOT_FALLOFF

0.5, 0.0, 0.0, 0.0
Lightning cubic spotlight falloff p.w + x(p.x + x(p.y + xp.z)) for x in [0,1].
Token NameDefault ValueAccepted ValuesDescriptionToken Source File
FOG_CONTRAST_THRESHOLD0.02
Fog range / contrast calibration.Weather.fx
DUST_CLOUD_SCALE0.0055
Dust cloud scale.
DUST_CLOUD_INTENSITY1.0
Dust cloud intensity.
DUST_STORM_RADIUS_FACTOR2.0
Dust storm radius scalar.
DUST_STORM_CEILING_SCALE2.0
Dust storm ceiling scalar.
DUST_STORM_INTENSITY_SCALE1000.0
Dust storm intensity scalar.
DUST_STORM_RANGE_SCALE30.0
Dust storm range scalar.
DUST_STORM_FLOOR_SCALE-10.0
Dust storm floor scalar.
DUST_STORM_VECTOR_SCALE8.0
Dust storm direction scalar.
DUST_STORM_COLOR0.659, 0.6, 0.5
Dust storm color (RGB).
WATER_STORM_COLOR0.78, 0.83, 0.86
Water storm color (RGB).
FIRE_HAZE_COLOR_FACTOR0.9, 0.85, 0.8
Fire haze color factor for fog (RGB).
WASH_TRANSITION_FRAMES60
Rotor wash frames parameter.
BLOWING_SNOW_SCALE0.001, 0.001
Blowing snow scalar.
SNOW_ACCUMULATION_MAT_THRESHOLD0.70.1 to 1.0Determines the value of snow accumulation after which the material returns become snow.  Any value of snow accumulation less than this value will return the normal materials.
ANTICOL_GAIN_DELAY0.05
Anti-collision lights delay amount.
ANTICOL_GAIN_DECAY0.4
Anti-collision lights decay scalar.
ANTICOL_COLOR_CONTROLFALSE
Anti-collision lights color flag.
LIGHTNING_WITHOUT_RAINTRUE
Lightning without rain flag.
VARYING_FOG_SPATIAL_SCALE350.0
Varying fog spatial extent.
VARYING_FOG_INTENSITY0.6
Varying fog intensity scalar.
LOBE_FOG_INTENSITY0.7
Fog intensity scalar for lobe lighting.
LOBE_FOG_RANGE3000.0
Fog distance for lobe lighting.
LOBE_FOB_ATTEN0.95
Fog Time-of-Day attenuation for lobe lighting.
INSIDE_CLOUD_RANGE25.0
Dust cloud parameter.
INSIDE_CLOUD_FACTOR0.6
Percent inside a cloud where we begin fogging ownship geometry.
INSIDE_WASH_RANGE100.0
Rotor wash inside distance.
PATCHY_CLOUD_FOG_MIN_RANGE7500.0
Fog minimum distance for patchy-clouds.
LAYERED_HAZE_FLOOR_BASE-400.0
Layered haze floor.
LAYERED_HAZE_FLOOR_SCALE-600.0
Layered haze floor scalar.
LAYERED_HAZE_CEILING_BASE400.0

Layered haze ceiling.

LAYERED_HAZE_CEILING_SCALE600.0
Layered haze ceiling scalar.
LAYERED_HAZE_RANGE_BASE4000.0
Layered haze base distance.
GLOW_FOG_PUNCHTHROUGH_FACTOR0.5
Scalar of fog ranges to cause lights to punch through fog; lower values increase light visibility.
OWNSHIP_LIGHTS_MUTE_FLARESTRUE

Controls priority of ownship lights over flares.

True: Ownship

False: Flares

ANTICOL_AMBIENT_FACTOR0.1
Anti-collision lights ambient scalar.
ANTICOL_DIFFUSE_FACTOR0.9
Anti-collision diffuse scalar.
ANTICOL_ATTENUATION1.0, 0.0, 0.005
Anti-collision lights attenuation.
ANTICOL_FOG_RANGE5000.0
Anti-collision lights fog distance.
ANTICOL_TOD_ATTEN0.95
Anti-collision lights time-of-day attenuation.
ANTICOL_TOD_ATTEN_BIAS0.20
Anti-collision lights time-of-day attenuation bias.
ANTICOL_CONE_ANGLE180.0

Anti-collision lights cone angle (degrees).

ANTICOL_FALLOFF0.0
Anti-collision lights falloff scalar.
SEARCH_LIGHT_TOD_ATTEN0.95
Search lights time-of-day attenuation.
SEARCH_LIGHT_TOD_ATTEN_BIAS0.20
Search lights time-of-day attenuation bias.
NAV_AMBIENT_FACTOR0.1
Navigation lights ambient factor.
NAV_DIFFUSE_FACTOR0.6
Navigation lights diffuse factor.
NAV_CONE_ANGLE89.9
Navigation lights cone angle (degrees).
NAV_FALLOFF0.005
Navigation lights falloff scalar.
SUNRISE_CLOUD_POWER1.45
Sunrise cloud parameter.
SUNRISE_CLOUD_COLOR0.44, 0.27, 0.17
Sunrise cloud color (RGB).
HDR_HAZE_CLOUD_LIMIT_COLOR0.69, 0.71, 0.74
HDR Haze cloud limit color (RGB).
INSIDE_ROTORWASH_OWNREL_DISTANCE10.0
Ownship distance to begin ramping inside rotor wash.
INSIDE_ROTORWASH_OWNREL_THRESHOLD5.0
Ownship distance where inside rotor wash is 1.0.
PATCHY_FOG_FULL_DEPTH_THRESHOLD1.0

Depth fraction into patchy fog needed to be consider3ed full depth for visualization.

Should be greater than 0.0 and less than or equal to 1.0



JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.