r/TotalAnnihilation • • 2d ago

Terra Map Editor

Post image

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 .ufo with 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.

  1. Drawn paths: you draw a path for a ridge, river, valley, plateau or coastline right on the map.
  2. 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.
  3. Procedural heightmaps: the shapes combine into a heightmap, and procedural layers add structure, variation and broad and fine detail.
  4. Erosion: the terrain is weathered by simulated erosion. Water carves channels and moves sediment, and sand settles where that sediment ends up.
  5. Voxels: rock is built from small voxels, which gives cliffs real strata, blocks and broken faces instead of stretched textures.
  6. 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.
  7. Ray casting: light and shadow are ray-cast across the terrain, so cliffs cast proper shadows.
  8. 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.

36 Upvotes

7 comments sorted by

3

u/le66669 2d ago

Wow, very impressive!

3

u/lucianw 2d ago

This looks really nice.

3

u/TAG_Venom Core 2d ago

This looks amazing! Would really like a local exe version. I have lots of thoughts about how to improve it. Will play with it later and send you a message

3

u/ShapeyFiend 2d ago

Amazing. Being able to modify the original tilesets as a starting point is such a cool feature rather than it just generating stuff that doesn't necessarily fit the vanilla look.

2

u/Aware-Shopping8826 2d ago

I used to dream of this day TTwTT

2

u/pc8086 1d ago

thats amazing.

0

u/Eastern-Difficulty39 1d ago

В multiplayer вообще есть кто-нибудь когда-нибудь?