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

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.

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.

Why
To see whether twenty-year-old arithmetic still stands up. It does. The line landscape behind this page is a distant relative.
Have a project like this? Message me on LinkedIn