Rendering & applications

Distance estimation and contour structure

Escape time says when an orbit leaves. Distance estimation combines orbit growth with derivative information to approximate how far the starting point lies from the set.

Distance estimate around the Mandelbrot set with fine distance contours
The iteration derivative provides an estimate of distance to the set; contours make this scalar value visible.Image: Björn Kindler / MandelKit · MandelKit Wissensgrafik · Eigene Darstellung · Own work

Following the derivative

For analytic escape-time maps, the renderer advances both z and the derivative of the orbit with respect to the starting coordinate or parameter. Their final magnitudes enter an asymptotic estimate of distance to the boundary.

For many complex iterations, the orbit derivative can be propagated alongside z. Magnitude and derivative yield an exterior boundary-distance approximation, often proportional to |z|log|z|/|z′|. The additional work supplies a continuous geometric field. It can represent fine contours more stably than integer iteration bands, especially under strong magnification.

A powerful estimate with conditions

The value is most reliable in the exterior and near convergence of the formula’s assumptions. It is not an exact Euclidean distance at every pixel. Bailout, iteration depth and numerical precision affect it.

The result is an estimate with assumptions, not an exact Euclidean distance at every pixel. It can become unreliable near critical points, with insufficient iteration or for non-analytic formulas. Negative, infinite and NaN values need defined handling. A debug view of raw distance and marked exceptions is more useful than a shader that silently clamps every failure to zero.

From field to visual structure

Distance can drive adaptive antialiasing, contour lines, glow falloff and normal construction. Logarithmic bands reveal orders of scale, while gradients of the field suggest local surface directions for 2D shading or 3D relief.

A distance field can drive contour lines, adaptive sampling, edge glow and approximate normals. Each use needs its own scale: fixed world-space contour depth may vanish under zoom, while pixel-space width remains visible. Users should therefore control depth or width explicitly rather than receive only an on/off contour switch.

Sources and further reading

This article summarizes the following specialist sources in original wording. Accessed and editorially reviewed 12 August 2026.

  1. The Science of Fractal ImagesSpringer
  2. Mandelbrot SetWolfram MathWorld