UDN
Search public documentation
HeightFog
Height Fog
Document Summary: Information regarding Height Fog and its uses. Document Changelog: Created; updated by Daniel Wright.Overview
This document covers Height Fog and its uses. It assumes that you have a level already set up in which you would like to add Height Fog. For more information on setting up a level, see the Creating Levels page.Versions
The one layer version of height fog was added in QA_APPROVED_BUILD_JUNE_2007. Before that, the four layer version was always used and there was no performance benefit to using less than four layers.Using Height Fog
In the Actor tab of the Generic Browser, select the HeightFog Actor, which is under Info. Right-click in the world and select Add HeightFog Here. Open the HeightFog Properties by either double-clicking the Actor; right-clicking on the newly-placed Actor and select Properties; or pressing F4. Positioning the HeightFog Actor will determine the height of the HeightFog.Height Fog Properties
In the Height Fog section you can edit the following properties related to the component:- Density - affects the scale for the fog layer's thickness
- Extinction Distance - the distance at which light passing through the fog is 100% extinguished
- Light Brightness - affects the inscattering color
- Light Color - fog color blended with the scene
- Start Distance - the distance at which fog starts affecting the scene
Animating Height Fog
To animate Height Fog, use Matinee to animate the HeightFog Actor values. For more information, see the Unreal Matinee User Guide? page.Color
Height Fog Color is now able to be changed at runtime using the Color Property Track in Matinee. Here’s how to set up Matinee to let you change Height Fog Color in-game:- Create a HeightFog Actor.
- Create a group in Matinee with that Actor attached.
- Create a color property track in the above group.
- A dialog should appear letting you choose which color property to interpolate. There should be only one option since the HeightFog Actor has only one property that is a color.
- Once that track is set up, you can place keyframes and use the context menu (right-click) or the Curve Editor to set the color for each key.