Fog Environment Effect
 
 
 
Command entry:Rendering menu Environment Environment and Effects dialog Environment panel Atmosphere rollout Add Fog

This plug-in effect gives the appearance of fog or smoke. Fog can cause objects to appear to fade as they increase in distance from the camera (standard fog), or can be layered fog that envelops all or parts of objects in a blanket of mist.

Fog added to a scene

Fog renders only in Camera or Perspective views. Orthographic or User views don’t render Fog effects.

Procedures

To use standard fog:

  1. Create a Camera view of your scene.
  2. In the camera's creation parameters, turn on Show in the Environment Ranges group.

    Standard fog is based on the camera's environment range values.

  3. Set Adjust Near Range and Far Range to include the objects you want to fog in your rendering.

    As a general guideline, set Far Range just beyond the objects, and Near Range to intersect the object geometry closest to the camera.

  4. Choose Rendering Environment.
  5. Under Atmosphere on the Environment panel, click Add.

    The Add Atmospheric Effect dialog is displayed.

  6. Choose Fog, and then click OK.
  7. Make sure you choose Standard as the type of fog.

To use layered fog:

  1. Create a Camera or Perspective view of your scene.
  2. Choose Rendering Environment.
  3. Under Atmosphere on the Environment panel, click Add.

    The Add Atmospheric Effect dialog is displayed.

  4. Choose Fog, and then click OK.
  5. Choose Layered as the fog type.
  6. Set the parameters for layered fog.

    You can have multiple fog layers in the scene by adding multiple Fog entries to the list and choosing Layered.

Interface

The Fog Parameters rollout appears when you select Fog under Effects in the Environment dialog. The Fog Parameters rollout has the following controls.

Fog group

Color

Sets the color for the fog. Click the color swatch, and then select the color you want in the Color Selector. You can animate the color effect by changing the fog color at a nonzero frame with the Auto Key button on.

Environment Color Map

Derives the fog color from a map. You can map the background and the fog color, you can animate the procedural map parameters in Track View or Material Editor, and you can opacity-map the fog.

The large button displays the name of the color map, or None if no map is assigned. The map must use Environmental mapping coordinates (spherical, cylindrical, shrink wrap, or screen).

To assign the map you can drag a map from a Sample slot or Map button in the Material Editor (or anywhere else in the interface; for example, a projector map button) and drop it on the Environment Color Map button. A dialog asks if you want the environment map to be a copy (independent) or an instance of the source map.

Clicking the Environment Color Map button displays the Material/Map Browser, where you can choose a map type from the list. To adjust the environment map's parameters, open the Material Editor and drag the Environment Color Map button over an unused sample slot.

Use Map

Toggles the effect of this map on or off.

Environment Opacity Map

Alters the density of the fog.

You assign the opacity map, edit it, and toggle its effect in the same way as the Environment Color Map.

Fog Background

Applies the fog function to the background of the scene.

Type

When you choose Standard it uses the parameters in the Standard section and when you choose Layered is selected it uses the parameters in the Layered section.

Standard

Enables the Standard group.

Layered

Enables the Layered group.

Standard group

Thins and thickens the fog based on the distance from the camera.

Exponential

Increases density exponentially with distance. When turned off, density increases linearly with distance. Activate this check box only when you want to render transparent objects in volume fog.

TipIf you turn on Exponential, this increases the Step Size value to avoid banding.
Near %

Sets the density of the fog at the Near Range (Camera Environment Range parameter).

Far %

Sets the density of the fog at the Far Range (Camera Environment Range parameter).

Layered group

Thins and thickens the fog between an upper and lower limit. You can have multiple layers of fog by adding multiple fog entries to the list. Because you can animate all the fog parameters, you can also animate fog rising and falling, changing density and color, and add horizon noise.

Top

Sets the upper extent (in world units) of the fog layer.

Bottom

Sets the lower extent (in world units) of the fog layer.

Density

Sets the overall density of the fog.

Falloff (Top/Bottom/None)

Adds an exponential falloff effect so that the density is reduced to 0 at either the Top or Bottom of the fog extent.

Horizon Noise

Turns on the horizon noise system. Horizon Noise perturbs just the horizon of the fog layer to add realism.

Size

Scale factor applied to the noise. Larger scale values make the fog tendrils larger. Default=20.

TipIf you want tendrils to really pop out, try making the density greater than 100.
Angle

Determines the affected angle off the horizon line. For example, if the angle is set to 5 (a reasonable value), then starting at 5 degrees below the horizon, the fog will begin to break up.

This effect is mirrored above and below the horizon, which can produce strange results when the height of the fog layer traverses the horizon. Typically you'd want the fog to be either above or below the actual camera horizon. (You can use the horizon line in the camera parameters as an aid to help you position this.)

Phase

Animating this parameter animates the noise. If Phase is moving in the positive direction, then the fog tendrils will drift upward (and deform at the same time). If your fog is above the horizon you may want to animate Phase in the negative direction to make the tendrils fall downward.