Afterglowscreensavers

Terrain Flythrough Screensaver

The Terrain Flythrough screensaver generates an endless landscape from fractal noise and flies over it continuously, with fog closing off the far distance. It runs in the browser with nothing to install; press ESC to exit.

Live preview

Press ESC to leave fullscreen. Settings are saved in your browser only.

How the Terrain Flythrough screensaver works

The saver renders with three.js on your GPU. The library is vendored into this site rather than fetched from a CDN, and loads only when a 3D screensaver actually runs.

It reads nothing external — the heightfield is generated in the browser.

The scene resizes with the window and releases its WebGL context when the saver stops, so shuffle mode and Multi-view can cycle 3D savers without exhausting the browser's context limit.

If WebGL is unavailable the saver says so on screen rather than showing an empty black box.

A worked example

Height comes from four octaves of noise summed together: the low frequencies give the large landforms and the high ones add ridges and gullies, which is the standard way to get terrain that looks eroded without simulating erosion. Only the vertex heights are rewritten as the ground scrolls, so nothing is allocated per frame, and the low ground is clamped flat to read as water.

Settings & tips

Frequently asked questions

Does it ever repeat?
Not on any timescale you would watch it for. The noise is evaluated at a continuously advancing coordinate rather than sampled from a tile, so the ground ahead has not been generated before.
Why does distant terrain fade out?
Fog, and it is doing real work. Without it the mesh would end at a hard edge revealing that the world is a finite sheet. Fading the far end both hides that and gives the scene depth.
Does this need a special browser or plugin?
No. It uses WebGL, which every current desktop and mobile browser supports. Nothing is installed and no plugin is required.
Does it cost anything or need an account?
No. Every screensaver here is free, runs in the browser and needs no sign-up.

← All Generative screensavers