Projects / procedural-generation · Summer 2020 · Solo self-study project

Procedural Terrain Generation

A self-teaching experiment: infinite, Mars-like terrain generated and meshed in Unity with a multithreaded chunk pipeline.

What it is: A summer-long experiment (July-August 2020) in letting the computer draw the landscape instead of me: procedural terrain generation inside Unity. What it does: generates heightmap-driven terrain chunk by chunk as you move through it, with a Mars-style theme applied.

Following Sebastian Lague's tutorial series, I went past the demo and into the part that actually matters for a self-taught coder: efficiency. Unity runs game logic on a single thread, so heavy terrain math tanks the framerate. The fix was threading: generating mesh data off the main thread and handing completed chunks back to the render loop.

What I took from it

  • Multithreaded chunk generation: compute on worker threads, apply on the main thread.
  • Mesh generation from heightmaps, and why naive per-vertex work gets expensive fast.
  • General coding discipline from studying how an experienced engineer iterates; this project taught me more about code structure than any tutorial I'd followed to that point.

No public repository; it was a learning artifact. I'm happy to walk through the approach; the ideas show up again in every performance-sensitive thing I've built since.

← all projectsQuestions? Email me