Mathematical Foundations of Generate a Fractal Landscape
Introduced at SIGGRAPH 1982 by Alain Fournier, Don Fussell, and Loren Carpenter (who created the Genesis Planet sequence in Star Trek II: The Wrath of Khan), the Diamond-Square algorithm synthesizes realistic 3D mountain landscapes by recursively subdividing a heightfield and adding Gaussian displacements scaled by 2^(−H·k).
Self-similar fractals exhibit recurring geometric structure across scales, governed by Iterated Function Systems (IFS), Lindenmayer L-System rewriting rules, or recursive spatial subdivisions. Every geometry calculation, 2× HiDPI canvas pass, progressive animation frame, and lossless SVG vector export executes natively inside your browser at 60 FPS with zero server latency.
Diamond-Square Subdivision & Hurst Scaling
1. Diamond Step: Set square center height = average of 4 corners + ξ · σ_0 · 2^(-H·k) 2. Square Step: Set diamond edge midpoint = average of 4 diamond neighbors + ξ · σ_0 · 2^(-H·k) 3. Sea-Level Clamping: z_final(x, y) = max(z_sea, z(x, y)) Exact Theoretical Surface Hausdorff Dimension: D_H = 3 - H
Lowering the Hurst Smoothness Exponent H toward 0.35 increases high-frequency variance (D_H → 2.65), creating jagged volcanic badlands, whereas raising H toward 0.85 (D_H → 2.15) produces gently rolling glacial hills.
Iteration Scaling & Complexity Table
| Iteration / Setting | Elements / Size | Geometric Property |
|---|---|---|
| H = 0.35 | D_H = 2.6500 | Jagged craggy volcanic spires |
| H = 0.50 | D_H = 2.5000 | Classic memoryless Brownian mountain ridge |
| H = 0.72 (Earth Norm) | D_H = 2.2800 | Natural Alpine mountains & fjord valleys |
| H = 0.90 | D_H = 2.1000 | Smooth eroded rolling highlands |
Applications in Science, Graphics & Engineering
Cinema VFX & Game Terrain Generation
Loren Carpenter's midpoint displacement algorithm launched Pixar's Reyes rendering architecture and modern procedural open-world games.
Geomorphology & Topographic Scaling
Real Earth mountain ranges measured by satellite radar altimetry typically exhibit Hurst exponents between H = 0.70 and H = 0.80 (D_H ≈ 2.2–2.3).
Interactive Hydrological Flooding
Raise the Ocean Sea-Level Plane slider from -0.60 to +0.40 to flood valleys into alpine lakes, fjords, and island archipelagos.
3D Vector Mesh Export
Export the depth-sorted 1,024-quad 3D terrain mesh directly to vector SVG or 2× Retina PNG.
Interactive Controls, Pan/Zoom & Vector Export
Tune Hurst Smoothness H, raise or lower the Ocean Sea-Level Plane, orbit the 3D camera with Yaw and Pitch sliders, and export the 3D terrain mesh as lossless SVG.
Export crisp 2× Retina PNG renders for presentations or scalable infinite-resolution SVG files directly into Illustrator, Figma, Inkscape, LaTeX, or laser-cutting workflows.