Game-dev export

Terrain for Unity, Unreal and Godot

Generate a mountain range or a canyon, sculpt and erode it in your browser, then take it into your game engine: a heightmap at the size the engine wants, a normal map, splat masks for grass, rock, snow and sand, a glTF mesh, and a README with the exact import settings.

The 16-bit heightmap, Unity RAW, normal map and meshes up to 512 × 512 are free. Engine packs and splat masks are part of Spirelight Pro.

Spirelight's Export for game engine dialog: Unity, Unreal and Godot presets, heightmap, normal map, mesh and splat mask options

Workflow

Sculpt, export, import.

No plugin, no install. The files land in your Downloads folder, ready for the engine.

Make the terrain

Pick a style (mountains, hills, mesas, dunes), then sculpt with brushes, terraces, rain erosion and island edges. The terrain's size and height in the scene become its size in metres.

Export for your engine

Open File › Export for game engine (or Size & files in the Terrain Editor). Pick single files, or a preset that resamples everything to the engine's preferred size.

Import

Each preset zip has a README with step-by-step import settings and a scale.json with metres per pixel and the height range, for your own scripts.

What you get

Every map a terrain needs

Heightmaps

16-bit PNG, and 16-bit little-endian RAW at Unity's 513, 1025 or 2049

Normal map

OpenGL (Y+) for Unity and Godot, DirectX (Y−) for Unreal

Splat masks

One RGBA weight map plus four greyscale masks from slope, height, water level and ridges

Mesh

glTF 2.0 .glb or OBJ, 128 to 1024 vertices a side, with UVs and normals

Unity

Terrain for Unity

  • RAW at 2ⁿ+1. Unity terrains need 513, 1025 or 2049 samples a side; the pack resamples to the right one, 16-bit, Windows byte order.
  • Terrain size filled in. The README gives the width, length and height for the Import Raw dialog, so the terrain comes in at its real scale.
  • Splat map, applied for you. A small editor script paints the RGBA splat map onto four Terrain Layers: grass, rock, snow and sand.

Import in four steps

  1. GameObject › 3D Object › Terrain.
  2. Terrain Settings › Import Raw…, pick heightmap_1025.raw.
  3. Depth 16-bit, Byte Order Windows, the terrain size from the README.
  4. Optional: Tools › Spirelight › Apply Splat Map.

Unreal Engine

Landscapes for Unreal

  • A recommended landscape size. The heightmap is a 16-bit PNG at 1009 or 2017, sizes Epic's landscape docs recommend, so no edge is lost to padding.
  • The Z scale worked out. At Z = 100 the 16-bit range spans 512 m; the README gives the X, Y and Z scale and Location Z for your terrain's real height.
  • Layer weight maps. One greyscale mask per layer, at the landscape's resolution, for the Layers section of the import.

Import in three steps

  1. Landscape mode › Manage › New › Import from File.
  2. Heightmap File: heightmap_1009.png.
  3. Scale X, Y and Z and Location Z from the README.

Godot

Terrain for Godot 4

  • A glTF mesh. Drop terrain.glb into the project, drag it into a scene and add a trimesh collision. In metres, Y up, with UVs.
  • Terrain3D ready. A 16-bit .r16 heightmap with the vertex spacing and height range for the Terrain3D importer (Godot loads 16-bit PNGs as 8-bit).
  • Maps for shaders. OpenGL normal map and splat masks that line up with the mesh's UVs.

Also works with

Blender (import the .glb or OBJ, or use the PNG with a Displace modifier), Gaea and World Machine (16-bit PNG or RAW in), and any engine that reads glTF 2.0.

Questions

Good to know

What's free and what's Pro?

Spirelight Pro is $6 a month, $48 a year or $99 once. Free: the 16-bit PNG heightmap, the 16-bit RAW, the normal map and meshes up to 512 × 512. Pro: the Unity, Unreal and Godot preset zips, splat masks, and meshes up to 1024 × 1024.

What units and scale are the files in?

Metres. A terrain's width, depth and height in the scene are its size in metres; every pack's scale.json lists the size, metres per pixel and height range.

Why 513, 1025 or 2049 for Unity, and 1009 or 2017 for Unreal?

Unity terrains need a power of two plus one samples a side. Unreal landscapes are built from components of quads; 1009 and 2017 are sizes that fill them exactly. Spirelight resamples your terrain to fit.

Which way is up on the normal map?

Choose OpenGL (green = Y+) for Unity, Godot and Blender, and DirectX (green = Y−) for Unreal. The engine packs pick the right one.

Is anything uploaded?

No. Exports are built in your browser and saved straight to your computer.

Build your next level's terrain.

Double-click the starter scene's mountains to sculpt them, then File › Export for game engine.