Skip to content
All apps

Mandelbrot as terrain (3D)

About this app

The Mandelbrot set as a 3D mountain landscape — escape time of the iteration z²+c becomes height, self-similarity becomes spatially tangible. GPU shader, live zoomable up to ~1e+12, presets for seahorse valley, elephant valley, mini-Mandelbrot.

With explain mode: an AI tutor walks you through the app, points out what matters in the scene and answers your questions.

What the Mandelbrot set is

For each complex number c, start at z = 0 and apply the rule z → z² + c over and over. If the sequence stays bounded, c belongs to the Mandelbrot set; otherwise it does not. Once |z| exceeds 2 the sequence is certain to escape to infinity. The set is connected and its boundary is a fractal: zooming in reveals ever new spirals, branches and small copies of the whole set. It is named after Benoît Mandelbrot, who popularised it from 1980 onwards.

What the app shows

The app turns the familiar colour image into a landscape. The number of iterations before a point escapes becomes its height, so sharp mountain ridges rise along the boundary of the set. Points that never escape form a calm plateau or, if you switch, a lake. Everything is computed in a GPU shader, so the landscape rebuilds live as you zoom and pan. A values panel shows the current centre c, the width of the view and the zoom factor.

Things to try

Fly to one of the famous spots: Seahorse valley, Elephant valley, triple spiral, mini Mandelbrot or dendrite. Zoom on the cursor with the mouse wheel or use the ×2 and ×½ buttons; a double-click recentres. Raise the iteration count when zooming deep, or the fine structures at the edge blur. Dragging tilts the camera, right-click or Ctrl + drag pans. Mountain height, wireframe and glow are adjustable.

Frequently asked questions

What is the Mandelbrot set in simple terms?
The Mandelbrot set is the set of all complex numbers c for which the sequence z → z² + c, starting at z = 0, does not grow to infinity. Plotted in the complex plane, it forms the familiar bug-like shape. Its boundary has infinitely fine structure.
Why is the Mandelbrot set a fractal?
Its boundary shows new detail at every magnification, and small, slightly distorted copies of the whole set appear in many places. This self-similarity across all scales is typical of fractals. The boundary has Hausdorff dimension 2 even though it is a curve.
What do the colours or heights in Mandelbrot images mean?
They usually show the escape time, i.e. after how many iterations |z| exceeds 2. Points close to the boundary of the set need many iterations, points far away only a few. In this app the escape time is shown as height.
What can I try in this app?
You fly over the Mandelbrot set as a 3D landscape, zoom in live and jump to well-known spots such as Seahorse valley. Iterations, height and display style (plateau or lake, wireframe, glow) are adjustable.

Subject: Fractals

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps