Andrius K. · ProjectsNo. 15 of 18

Terrain generator · 2004, rebuilt 2026

Fractal Landscape

A program I wrote as a student in 2004, recovered from an old archive and rebuilt for the browser. Twenty years on, the arithmetic still holds.

Original
C++ and OpenGL, 2004; a thesis terrain, 2005
Rebuilt
2026, in plain WebGL, statement by statement
Status
Complete, with additions
Where
headbandno2.com/fractal-landscape
The 2005 terrain as an island under its sea and sky
The 2005 thesis terrain, as an island.

What it is

A terrain generator I wrote in C++ and OpenGL in 2004, and the textured terrain I finished for a thesis in 2005, with its own shadows, sky and water. Both were recovered from an old archive and rebuilt for the browser, statement by statement, down to the quirks of the original random number generator. A seed gives exactly the shape it gave twenty years ago.

The 2004 landscape in its own colours, with the program's menu beside it
The 2004 landscape and the program's own menu.

How it works

There are three subjects: a landscape, a planet and the thesis terrain. Drag to turn, scroll or pinch to come closer, pick a subject and generate with a new seed. The menu is the program's own, in its original wording.

A seed gives exactly the shape it gave twenty years ago.

Everything the old program did not have sits apart under "Addendum": more ways to generate, erosion, colour schemes, sunlight, trees and levels of detail. With the addendum at its defaults, the page computes exactly what the original did, and that is checked before every change.

The fractal planet, a grey sphere
The planet. Also not real.

Why

To see whether twenty-year-old arithmetic still stands up. It does. The line landscape behind this page is a distant relative.

Open the program

Have a project like this? Message me on LinkedIn