Knob
Fog
You might say: aerial perspective, distance haze, volumetric fog
Fog blends an object's colour with the colour of the air as distance grows. Aerial perspective also lowers contrast and can shift distant ground towards the sky colour.
- What it does
- Separates near and far space, hides hard transitions and gives the scene a scale and weather cue.
- Ask
- At what distance does object colour fall away, and does the ground still keep its value structure?
- Typical
- The plot uses x = eye distance and y = share of the object's colour left. Linear uses f=(end-x)/(end-start), exponential uses f=exp(-density*x), and exponential squared uses f=exp(-(density*x)^2).
- Trouble
- Fog and grading can wash out value structure. A hard start distance, excessive density or a mismatched fog colour makes the world look flat and removes navigation cues.
What to look for
- Distant objects become lighter, bluer or closer to the fog colour
- A foreground start distance keeps nearby ground clear
- A smooth density change replaces a hard horizon cut
- Fog lit by the sun shows a directional inscattering tint
Catalogue: Fog falloff
- Linear: Object colour falls at a fixed rate between start and end distances.
- Exponential: Object colour falls by uniform attenuation with distance.
- Exponential squared: Object colour falls more sharply at distance as the density-distance term is squared.
Connections
- Lowers: Value structure
- See also: Tone mapping
Sources
- OpenGL Reference, glFog, Description
Fog blends a fog color with each rasterized pixel fragment's post-texturing color using a blending factor f.
- David Blythe, OpenGL Programming Guide: Other Atmospheric Effects, 17.8 Other Atmospheric Effects
The exponential fog equation has some physical basis. It is the result of integrating a uniform attenuation between the object and the viewer.
- Epic Games, Exponential Height Fog in Unreal Engine, Exponential Height Fog
Exponential Height Fog creates more density in low places of a map and less density in high places.
- Sébastien Hillaire, Physically Based and Scalable Atmospheres in Unreal Engine, What are we talking about?, slide 2
When light scattering happens between objects and your eyes, this physical interaction is called aerial perspective. Those objects then look like they are in a fog.
Use it on your project
teardown-apply: hold "Fog" (fog) from the teardown at https://teardownatlas.com/environment-art/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal