Golden Valley A World Made of Mathematics
| Click Here to Watch Live |
A walkable 3D landscape that lives entirely inside a single web page.
Golden Valley is a small experiment in what a web browser can do on its own. Open one ordinary web page and you find yourself standing in a valley at sunset: rolling hills covered in grass, a winding dirt path, pine and broadleaf trees swaying in the breeze, a lake catching the last of the light, mountains on the horizon, clouds drifting overhead. You can walk around with your keyboard, look around with your mouse, and if you own a VR headset, you can step inside it and point-and-teleport across the landscape. Glowing amber markers dotted around the valley reveal little stories about each place when you click them.
Nothing is downloaded — everything is grown
Here is the part that tends to surprise people. Most virtual worlds are built like film sets: artists model every tree, photograph every texture, record every sound, and the computer downloads all of those files before you can enter. Golden Valley works the other way around. The page contains no photographs, no 3D model files, and no audio recordings at all. Instead, it contains recipes — compact mathematical instructions — and your browser follows them to grow the entire world in the moment you arrive.
The shape of the hills comes from a formula that mimics how natural terrain rises and falls. The grass — around seven thousand individual tufts — is painted by the same rule stamped thousands of times with small random variations, the way nature repeats a pattern without ever copying it exactly. Every tree, rock, and flower is placed by rules that behave like an ecosystem: trees keep a polite distance from each other, avoid the path, and refuse to grow in the lake. Even the “photographs” wrapped around the ground and the wooden dock are sketched fresh by the browser, like a very fast artist drawing textures on demand.
A soundscape played live, not recorded
The audio follows the same philosophy. The wind you hear is not a recording of wind — it is randomness, smoothed and filtered until it becomes wind, gusting gently on slow invisible waves. The birdsong is built from quick rising and falling whistles, randomised so that no two calls are ever the same, and positioned in space so the singing grows louder as you approach the grove. The lake laps quietly at its shore; your footsteps change character when you step from soft grass onto the packed dirt of the path.
Even the background music is composed live. A small musical “director” inside the page plays warm, slow chords in the key of F major — a progression chosen to feel like late afternoon — and sprinkles gentle plucked notes over the top at unpredictable moments. Because it is generated rather than recorded, the music never loops and never repeats.
Why build it this way?
Partly for the craft of it — there is something satisfying about a complete world that weighs less than a handful of holiday photos. But mostly because it makes a wonderful teaching object. Everything in the valley, from the shape of a hill to the pitch of a bird call, is a readable, changeable rule. Alter one number and the mountains grow taller; change four frequencies and the music shifts into a different mood. For students learning immersive web development, that is the real lesson of Golden Valley: a virtual world is not a warehouse of files. It is a set of ideas, written down precisely enough that a browser can dream them into being.
The whole experience runs on the open web — no app to install, no account to create. It works on a laptop, on a phone, and in a VR headset, built with A-Frame, the free web framework for virtual reality.
Golden Valley was created as part of my ongoing work in WebXR and immersive education.