DocsGRADEReference

Fog Settings

6 min read

On this page

Every look parameter of a GRADE Fog Volume or Fog Spline (what fog presets store), in the groups of the Volumetrics panel tabs. Keyable in Sequencer; set it from Blueprint with Set Fog Settings or the single setters of the volume.

C++: FGradeFogSettings. Manual: Fog Settings.

Parameters

Every look parameter of a GRADE fog volume (what presets store). Keyable in Sequencer (Interp): the actors push changes to their materials every frame, in the editor and in game, no extra event track needed.

Nested settings: Shape (FGradeFogShapeSettings); Appearance (FGradeFogAppearance); Noise (FGradeFogNoiseSettings); Distortion (FGradeFogDistortionSettings); Surfaces (FGradeFogSurfaceSettings); Lighting (FGradeFogLightingSettings); Fade (FGradeFogFadeSettings); Interaction (FGradeFogInteractionSettings); Time (FGradeFogTimeSettings).

Fog Shape Settings (FGradeFogShapeSettings)

Shape of the fog inside the box.

ParameterValuesDefaultDescription
ShapeEGradeFogShape, keyableBoxFootprint of the fog inside the box.
Edge Falloff0..1, keyable0.35Soft edge, as a fraction of the smallest half size of the box (0 = hard edge, 1 = fades from the centre).
Inverton/off, keyableoffInverts the shape: fog fills the box except the shape (a clear bubble or tunnel inside a fog bank).
Height Gradient0..1, keyable0Thins the fog towards the top of the box (0 = uniform height, 1 = full at the bottom, none at the top). Ground mist likes 0.6 - 1.

Fog Appearance (FGradeFogAppearance)

Density and colour.

ParameterValuesDefaultDescription
Density>= 0 (slider to 10), keyable1Overall density (opacity) multiplier. 0 hides the fog; animate it to fade a volume in or out.
Extinction>= 0 (slider to 20), keyable1Extinction at full density: how strongly the fog blocks light (the Volume material Extinction input). Raise for thick fog.
Albedocolour, keyable(0.9, 0.9, 0.9, 1)Scattering colour (albedo): white fog scatters all light, darker colours absorb (smoke). Values above 1 are not physical.
Emissivecolour, keyableblackSelf-illumination colour (glowing gas, magic). Black = none. Scaled by the local density.
Emissive Intensity>= 0 (slider to 50), keyable1Brightness of the emissive colour.

Fog Noise Settings (FGradeFogNoiseSettings)

Procedural noise of the fog.

ParameterValuesDefaultDescription
PatternEGradeFogNoise, keyablePerlinNoise pattern. Cost grows from Value (cheapest) to Worley / Cloud (most expensive).
Sizevector (X, Y, Z), keyable(400, 400, 250)Size of the noise features in centimetres per axis (larger = broader shapes).
Octaves1..6, integer, keyable3Detail layers (octaves). More = finer detail and higher GPU cost. Reduced automatically with distance (Fade > Noise LOD Distance).
Contrast>= 0 (slider to 6), keyable1Contrast of the noise around mid grey: higher = sharper gaps between clumps. 0 = flat.
Coverage0..1, keyable0.5How much of the volume is covered (0.5 = neutral; lower = sparse patches, higher = mostly solid).
Multiply>= 0 (slider to 5), keyable1Multiplies the shaped noise (density boost of the clumps).
Panning Velocityvector (X, Y, Z), keyable(25, 8, 0)Wind: how fast the noise moves, in centimetres per second (world axes, or the volume's axes in local space).
Rotation Speedslider -180..180, keyable0Swirl: rotation of the noise around the volume's up axis, in degrees per second (vortices, magic).
Seedinteger0Offsets the noise so two identical volumes do not look the same.
Local Spaceon/off, keyableoffOff (default): the noise is fixed in the world, so overlapping volumes and spline puffs match and moving a volume reveals new fog. On: the noise moves, rotates and scales with the volume (a cloud you carry around).

Fog Distortion Settings (FGradeFogDistortionSettings)

Domain distortion (turbulence) of the noise.

ParameterValuesDefaultDescription
PatternEGradeFogNoise, keyableNone (Uniform)Pattern that bends the noise. None = off (no extra cost). Perlin / Value are the cheap choices.
Sizevector (X, Y, Z), keyable(800, 800, 800)Size of the distortion swirls in centimetres per axis.
Amount>= 0 (slider to 1000), keyable0How far the noise is pushed, in centimetres.
Z Amount0..2, keyable0.5Vertical share of the distortion (0 = only horizontal, 1 = as strong as horizontal).
Speed>= 0 (slider to 4), keyable0.3How fast the distortion evolves (multiplies time).

Fog Surface Settings (FGradeFogSurfaceSettings)

Fog that clings to the surfaces of the level (global distance field).

ParameterValuesDefaultDescription
Cling To Surfaceson/off, keyableoffKeep the fog close to meshes and terrain (it hugs the ground, pools around rocks, follows walls). Uses the global mesh distance field: needs "Generate Mesh Distance Fields" in the project settings (Rendering) and meshes that affect distance field lighting. Uses the M_GRADE_FogVolume_DF variant of the material (a little more expensive). Large flat surfaces can show the coarse distance field steps: keep the height moderate there.
Height>= 1 (slider to 2000), keyable150Height above surfaces in centimetres where the fog fades out. (Editable when Cling To Surfaces is on.)
Contrast>= 0.1 (slider to 8), keyable1.5Contrast of the clinging (higher = a thinner, sharper layer right on the surfaces). (Editable when Cling To Surfaces is on.)

Fog Lighting Settings (FGradeFogLightingSettings)

Self shadowing approximation (the engine's volumetric shadows from lights still apply on top).

ParameterValuesDefaultDescription
Self Shadow Amount0..1, keyable0.4Darkens the parts of the fog hidden behind denser fog (gives volume to clumps). 0 = off (saves one noise evaluation).
Self Shadow Contrast>= 0.1 (slider to 4), keyable1Contrast of the self shadow (higher = only the densest parts shadow).
Self Shadow Distance>= 1 (slider to 1000), keyable120How far towards the light the shadow probe looks, in centimetres (about the size of the clumps).
Self Shadow From Directional Lighton/off, keyableonShadow towards the level's main directional light (sun); off = lit from above.

Fog Fade Settings (FGradeFogFadeSettings)

Camera / character fades and distance level of detail.

ParameterValuesDefaultDescription
Near Fade Distance>= 0 (slider to 5000), keyable150The fog fades in over this distance from the camera (cm): avoids flying through dense voxels (jitter / slicing). 0 = off.
Far Fade Distance>= 0 (slider to 50000), keyable6000The fog fades out towards this distance from the camera (last quarter), in cm. 0 = never. The height fog's Volumetric Fog View Distance limits every volume anyway.
Affected By Character Fadeon/off, keyableonClear the fog around the primary GRADE Fog Interactor (third person / top down: keeps the character visible).
Noise Lod Distance>= 0 (slider to 20000), keyable4000Distance (cm) at which the noise drops to a single octave (cheaper far away). 0 = always full detail.

Fog Interaction Settings (FGradeFogInteractionSettings)

Reaction to GRADE Fog Interactors (characters, physics objects, flashlights, projectiles).

ParameterValuesDefaultDescription
Allow Interactionon/off, keyableoffReact to interactor spheres / cones (carving or adding fog). Off by default: adds shader instructions and lets the interaction system tick. Needs at least one GRADE Fog Interactor component in the level.
Strength0..1, keyable1Strength of the interaction on this volume. (Editable when Allow Interaction is on.)
Affected By Trailson/off, keyableonAlso react to the 2D trails drawn around the primary interactor (best on volumes that do not reach far above the ground). (Editable when Allow Interaction is on.)

Fog Time Settings (FGradeFogTimeSettings)

Time source of the noise animation.

ParameterValuesDefaultDescription
Time Scale>= 0 (slider to 4), keyable1Multiplies the animation speed (panning, rotation, distortion). 0 freezes the fog.
Use Custom Timeon/off, keyableoffDrive the animation with Custom Time instead of the world time (scrub it in Sequencer for exact, repeatable renders).
Custom Timenumber, keyable0Animation time in seconds when Use Custom Time is on (key it in Sequencer). (Editable when Use Custom Time is on.)

Enumerations

Fog Shape (EGradeFogShape)

Footprint of a fog volume inside its box (Size x actor scale).

ValueMeaning
BoxFills the whole box.
SphereSphere of the smallest half size, centred in the box.
CylinderVertical cylinder (elliptical when X and Y differ), flat top and bottom.
EllipsoidEllipsoid touching the six faces of the box (the usual "puff").

Fog Noise (EGradeFogNoise)

Procedural 3D noise patterns (evaluated in the shader, no textures). Indices are sent to the material: append only.

ValueMeaning
None (Uniform)No noise: uniform density (shaped only by the volume shape, height gradient and fades).
ValueSoft blobs (value noise). Cheapest.
PerlinSmooth rolling fog (gradient noise).
WorleyCellular puffs (inverted Worley F1). The most expensive pattern.
Cloud (Perlin-Worley)Billowing cloud shapes: gradient noise eroded by cellular noise.
BillowFluffy, cauliflower-like (absolute gradient noise).
RidgedSharp ridges and veins (inverted absolute gradient noise).
WispsThin, stretched streaks (domain-warped ridged noise): smoke wisps, blowing dust.

Generated from the GRADE C++ headers. Back to the reference index.