Revealing objects with Animated Fog

This tutorial builds on the Adding Fog to a Scene tutorial, and shows how to animate the Start Distance of a Fog shader applied to the air of the scene to reveal the scene.

We will animate the fog we used in the Adding Fog to a Scene tutorial to reveal the scene we have.

First, we need to set an animation length.

This is done in the Project Window (P key).

In the Project Window, let’s assign a total animation length of 120 frames (4 seconds @30 fps)

At time zero, we’ll set up our fog shader to be dense, and to start really close to the camera.

Initial Fog

Then, with the head set to the end of our animation in the Project Window, we set the parameters for the final Fog.

The head is at 4 seconds (frame 120)

It is vital to make sure we have the Edit At: set to Current Time.

Let us increase the Start Depth to 400 in., which is the size of the height map object in this scene.

Final Fog

That’s it.

Render the animation (please make sure the Enable Shadows checkbox is unchecked, for the sake of speed), and see the fog recede, revealing the scene.