DocsGRADEReference

GRADE Fog Interactor

2 min read

On this page

A component that makes the fog react to its owner: a carving (or adding) sphere stretched along its motion, an optional cone, 2D trails and, on the primary interactor, the clear area around the character.

C++: UGradeFogInteractorComponent. Manual: GRADE Fog Interactor.

Parameters

Makes fog react to its owner. Attach it where the effect should be (e.g. to the flashlight socket for a cone).

ParameterValuesDefaultDescription
Interaction Enabledon/offonInteracts with the fog.

Sphere

ParameterValuesDefaultDescription
Radius>= 0 (slider to 2000), keyable80Radius of the sphere that pushes the fog away (cm). 0 = no sphere (cone / trail only).
Softness0..1, keyable0.6Soft edge of the sphere and cone (0 = hard, 1 = fades from the centre).
Strength0..1, keyable1How strongly the fog is carved (0..1).
Add Fogon/offoffAdds fog instead of carving it (spells, exhaust, a smoke grenade's core).
Stretch With Motionon/offonStretch the sphere into a capsule along the motion of the last frame (projectiles carve continuous tunnels).
Max Stretch>= 0 (slider to 5000)600Longest stretch per frame (cm). (Editable when Stretch With Motion is on.)

Cone

ParameterValuesDefaultDescription
Coneon/offoffCarve a cone along the component's forward axis (flashlights, headlights).
Cone Length>= 0 (slider to 5000), keyable800Cone length (cm). (Editable when Cone is on.)
Cone Angle1..80 deg, keyable18Cone half angle (degrees). (Editable when Cone is on.)
Cone Softness0..1, keyable0.6Soft edge of the cone (0..1). (Editable when Cone is on.)

Trail

ParameterValuesDefaultDescription
Draw Trailon/offonDraw a fading 2D trail into the fog while moving (needs a primary interactor in the level to place the trail area).
Trail Size>= 5 (slider to 1000), keyable75Trail radius (cm). Test it in the world and adjust. (Editable when Draw Trail is on.)
Trail Strength0..11Trail strength (0..1). (Editable when Draw Trail is on.)

Primary

ParameterValuesDefaultDescription
Is Primaryon/offoffThe player: clears the fog around the character on volumes with Affected By Character Fade and centres the 2D trail area. Set it on one interactor (the camera's character); a second primary is ignored.
Character Fade Radius>= 0 (slider to 3000), keyable250Radius of the clear area around the character (cm). Animate it to reveal bigger areas. 0 = no character fade. (Editable when Is Primary is on.)
Character Fade Softness0..10.6Soft edge of the character fade (0..1). (Editable when Is Primary is on.)
Trail Area Size>= 500 (slider to 20000)4000Width of the square trail area that follows the primary interactor (cm). Larger = trails further away, less detail. (Editable when Is Primary is on.)
Trail Resolution64..2048, integer512Trail texture resolution (texels per side). (Editable when Is Primary is on.)
Trail Fade Time>= 0.1 s (slider to 30)3Seconds for a trail to fade out. (Editable when Is Primary is on.)
Trail Height>= 10 (slider to 2000)250Height above / below the trail plane (the primary's height) over which trails fade out of the fog (cm). (Editable when Is Primary is on.)

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