r/TotalAnnihilation • u/Dgt84 • 2d ago
Terra Map Editor
Terra is the map editor I always wished I had for Total Annihilation.
It's an artist-driven terrain and map editor that runs on your GPU, right in the browser. Nothing to install. You shape the land and Terra generates the terrain procedurally. Then you export a real, playable TA map that runs in TotalA.exe and Nanolathe (and probably other engines too).
š Try it: https://terra.nanolathe.gg/
š Source code: https://github.com/nanolathe-gg/terra


Example maps
Click to open any of these in the editor, look around, change things, or export them:
Classic maps
A tweaked green planet
Wildly different worlds
What it does
- Artist-driven: you decide where the mountains, rivers, cliffs and coastlines go, and you control how they look. Shape, roughness, layering, weathering, color, vegetation, wetness and shine all have controls.
- Procedural: you never paint terrain pixel by pixel. You describe the land and the engine builds the detail, down to the grit, stones and scratches that read at TA's 1x scale.
- Multiple world presets: start from one of several built-in worlds, from familiar green planets to strange alien ones. Every map keeps its own copy of its world's settings, so you can tune one map's look freely and reuse it to start a new map.
- Exports a playable map: a real
.ufowith heights, tiles and features, ready to drop into your game.
How it works
Everything below runs on the GPU in near real-time. You get a quick preview while you drag, and the final image appears a moment after you let go.
- Drawn paths: you draw a path for a ridge, river, valley, plateau or coastline right on the map.
- Parametric curves: each path becomes a smooth parametric curve with an editable cross-section, so you can shape a cliff's profile or a river's banks.
- Procedural heightmaps: the shapes combine into a heightmap, and procedural layers add structure, variation and broad and fine detail.
- Erosion: the terrain is weathered by simulated erosion. Water carves channels and moves sediment, and sand settles where that sediment ends up.
- Voxels: rock is built from small voxels, which gives cliffs real strata, blocks and broken faces instead of stretched textures.
- Materials: ground, water, rock, sand and debris are materials made in a node-graph material editor. Layers of ground cover and vegetation sit on top, and wet bands follow the shorelines.
- Ray casting: light and shadow are ray-cast across the terrain, so cliffs cast proper shadows.
- TA's palette: the final image is reduced to TA's 256-color palette with dithering, and the exporter (running in your browser too) packs it into a map the game can load.
Status
It's still beta. The look of the original retail worlds isn't matched exactly yet, and I'd love help getting closer. It already works, though, and it can do some pretty neat things, so I'm releasing it now.
This should work cross platform and has been tested in Chrome, Safari, and Firefox. If you run into problems let me know! It requires WebGPU support (most modern browsers have it) and a decent graphics card is best for fast rendering.
As always, it's MIT-licensed open source. Do whatever you want with it. Issues, ideas and pull requests are all welcome on GitHub. Please help make it amazing!
Please share your map creations with the community! Post your share links or screenshots here, and I'd love to see what you make.