GRADE Fog Interactor
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).
| Parameter | Values | Default | Description |
|---|---|---|---|
| Interaction Enabled | on/off | on | Interacts with the fog. |
Sphere
| Parameter | Values | Default | Description |
|---|---|---|---|
| Radius | >= 0 (slider to 2000), keyable | 80 | Radius of the sphere that pushes the fog away (cm). 0 = no sphere (cone / trail only). |
| Softness | 0..1, keyable | 0.6 | Soft edge of the sphere and cone (0 = hard, 1 = fades from the centre). |
| Strength | 0..1, keyable | 1 | How strongly the fog is carved (0..1). |
| Add Fog | on/off | off | Adds fog instead of carving it (spells, exhaust, a smoke grenade's core). |
| Stretch With Motion | on/off | on | Stretch the sphere into a capsule along the motion of the last frame (projectiles carve continuous tunnels). |
| Max Stretch | >= 0 (slider to 5000) | 600 | Longest stretch per frame (cm). (Editable when Stretch With Motion is on.) |
Cone
| Parameter | Values | Default | Description |
|---|---|---|---|
| Cone | on/off | off | Carve a cone along the component's forward axis (flashlights, headlights). |
| Cone Length | >= 0 (slider to 5000), keyable | 800 | Cone length (cm). (Editable when Cone is on.) |
| Cone Angle | 1..80 deg, keyable | 18 | Cone half angle (degrees). (Editable when Cone is on.) |
| Cone Softness | 0..1, keyable | 0.6 | Soft edge of the cone (0..1). (Editable when Cone is on.) |
Trail
| Parameter | Values | Default | Description |
|---|---|---|---|
| Draw Trail | on/off | on | Draw 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), keyable | 75 | Trail radius (cm). Test it in the world and adjust. (Editable when Draw Trail is on.) |
| Trail Strength | 0..1 | 1 | Trail strength (0..1). (Editable when Draw Trail is on.) |
Primary
| Parameter | Values | Default | Description |
|---|---|---|---|
| Is Primary | on/off | off | The 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), keyable | 250 | Radius 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 Softness | 0..1 | 0.6 | Soft edge of the character fade (0..1). (Editable when Is Primary is on.) |
| Trail Area Size | >= 500 (slider to 20000) | 4000 | Width of the square trail area that follows the primary interactor (cm). Larger = trails further away, less detail. (Editable when Is Primary is on.) |
| Trail Resolution | 64..2048, integer | 512 | Trail texture resolution (texels per side). (Editable when Is Primary is on.) |
| Trail Fade Time | >= 0.1 s (slider to 30) | 3 | Seconds for a trail to fade out. (Editable when Is Primary is on.) |
| Trail Height | >= 10 (slider to 2000) | 250 | Height 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.