Personal site

Alex Laverty

Notes on side projects, code, and whatever else I happen to be building.

Categories

Featured series

Procedural Worlds in Godot

Building a procedurally generated VR world for the Meta Quest 2, taken apart one system at a time — terrain, rivers, biomes, creatures, light and sound.

Start here

  1. 01 Procedurally Generated VR Worlds, Built with Claude Code What the project is, why it is generated from code, and an index of the posts that explain each part.

Foundations

  1. 02 Mountains from Noise How a grid of smooth random numbers — Perlin noise — turns into rolling hills, valleys and peaks.
  2. 03 Painting the Land: Biomes with Voronoi Scattering seed points and letting "nearest one wins" carve the world into meadows, forests, deserts and snow.

Water & shaping the land

  1. 04 How Rivers Find Their Way Simulating water flowing downhill — filling in pits, merging streams into rivers, and spilling over waterfalls.
  2. 05 Roads a Car Could Actually Drive Connecting the houses with paths that hug the contours instead of charging straight up cliffs.
  3. 06 Making Water Look Wet The little shader tricks — ripples, reflections and depth — that make a flat blue plane read as an ocean.

The living world

  1. 07 Building a Bird from Boxes A flying bird with flapping wings, assembled from a few simple shapes and a bit of banking.
  2. 08 Butterflies That Wander Gentle, ground-hugging drift and the occasional rest — the small touches that make a meadow feel alive.
  3. 09 Schools of Fish That Think as One The famous "boids" rules: three simple instincts that add up to a shimmering, swirling school.
  4. 10 Cottages from Scratch Endless cosy houses from a handful of dials — walls, parametric roofs, and windows that glow at night.

Atmosphere & polish

  1. 11 A Field of Grass Without Melting Your GPU Drawing a hillside of thousands of grass blades in a single go, and only where the player can see.
  2. 12 Wind You Can See Making grass and trees sway by turning position and time into motion — all on the graphics card.
  3. 13 Golden Hour on Demand Day, dusk and pitch-black night — with fog, god-rays, stars and the occasional aurora.
  4. 14 Light in the Dark Warm lamp posts, drifting fireflies and glowing windows: how the world stays cosy after sunset.
  5. 15 Music That's Never the Same Twice Gentle ambient music invented on the fly — and the reason it can never quite hit a wrong note.

Wrap-up

  1. 16 Make It Beautiful The one rule behind every decision in the project: when in doubt, choose the prettier option.
  2. 17 Walking Your Own World in VR Stepping inside the world on a Meta Quest 2 — comfortable movement, teleporting, and learning to fly.