Fog
Fog is set on the Sun & Sky operator's Fog page. It's applied to the image in both Storm and the path tracer, using the same sun and sky.
Two kinds of fog
| Switch | What it does |
|---|---|
| Aerial Perspective (air) | The haze of the real atmosphere: distant objects fade toward the colour of the horizon. At real scale this is subtle unless things are kilometres away. |
| Height Fog | Fog that is thickest near the ground and thins out with height, lit by the sun and the sky. |
Turn on either one, or both.
Settings
| Parameter | Default | Use |
|---|---|---|
| Air Distance Scale | 1 | 1 is physically correct. Raise it (20 to 100) to make a small scene feel big. |
| Fog Density | 0.02 | How thick the fog is at its base height, per metre. 0.05 to 0.2 is heavy fog. |
| Fog Falloff Height | 20 m | How quickly it thins with height. Smaller keeps it close to the ground. |
| Fog Base Height | 0 m | Below this height the fog is at full density. |
| Fog Albedo | white | The fog's colour. |
| Fog Anisotropy (g) | 0.6 | How much the fog glows toward the sun. 0 is even in all directions. |
| Fog Sky Ambient | 1 | How much skylight the fog picks up. |
| Fog Distance on Sky | 1000 m | How much fog lies in front of the sky. |
| Fog Steps | 24 | Quality. Leave it unless you see banding. |
| Volume in Path Tracer | on | In the path-traced view, the height fog is a real volume: light shafts, objects cast shadows into the fog, and the fog dims the sunlight that reaches the ground. Off: the depth-based fog, the same as in Storm. |
With the volume off, changing fog settings never restarts the path tracer. With it on, they do, because the fog is part of the path-traced image.
Fog as a volume
As a volume, the fog behaves physically, so a thick, tall fog bank really does block the sun. Density × Falloff Height is roughly how much fog the sun passes through on the way down. Keep it below about 1 to 2 for a sunlit scene. For example, 0.08 with a 2 m falloff gives low ground mist, while 0.06 with a 500 m falloff is a deep fog bank where almost no direct sun reaches the ground. The depth-based fog can't show this.
The fog's sky ambient comes from the dome itself in the volume, so Fog Sky Ambient and Fog Steps only affect the depth-based fog. The air (aerial perspective) always uses the depth-based pass.
Limits
- The depth-based fog (Storm, or the path tracer with Volume in Path Tracer off) has no light shafts, and objects don't shadow it.
- In the volume, very thick fog needs many scattering steps. Each path stops after 64 of them, so a fog bank that is tens of mean free paths deep comes out darker than it really is.
- The radiance cache doesn't include the fog. Leave the cache off while you use the volume.
- The fog settings are saved in an export as Lunaris attributes, but Karma doesn't render them.