Unreal Engine
A heightmap for Unreal Engine landscapes, at the right size and scale
Unreal imports landscapes from a 16-bit grayscale PNG or RAW, but the landscape comes in at the wrong size unless you set the scale yourself. Here is how to make the heightmap and work out X, Y and Z.
Free, no account, nothing uploaded. Needs a WebGPU browser: Chrome, Edge, or Safari 26+.
Step by step
From the browser to an Unreal landscape
- Size the terrain in metres. Set the terrain's width, depth and height in Spirelight's inspector to what you want in the game. They become the numbers in the scale formula below.
- Sculpt it. Double-click the terrain, roll a base shape and refine it with erosion, terraces and the brushes. Pick the resolution under Size & files: 256, 512, 1024 or 2048.
- Export the heightmap. Click Export 16-bit PNG for a single-channel 16-bit grayscale PNG. Open Export for game engine… to read the terrain's size, and to export a DirectX (Y−) normal map if you need one.
- Open Landscape mode in Unreal. Press Shift+2, then Manage › New › Import from File and choose the PNG.
- Check the resolution Unreal offers. Unreal lists the section layouts it can build. Pick the one that matches your file as closely as it allows.
- Set Scale and Location Z with the formula below, then press Import.
The numbers
How to work out X, Y and Z scale
Unreal's landscape scale is in centimetres per sample, and its default of 100 means one metre between samples. A heightmap carries no units, so you supply them:
- X and Y scale = terrain width in metres ÷ (resolution − 1) × 100.
- Z scale = terrain height in metres × 100 ÷ 512. At Z = 100 the full 16-bit range spans 512 m.
- Location Z = terrain height in metres × 50 (in cm). Unreal treats the middle of the 16-bit range as zero, so this lifts the lowest point to ground level.
Worked example. A 4000 m wide terrain exported at 2017 samples, 600 m tall: X and Y = 4000 ÷ 2016 × 100 ≈ 198.4; Z = 600 × 100 ÷ 512 ≈ 117.19; Location Z = 600 × 50 = 30000. Spirelight's Pro Unreal pack prints exactly these three numbers in its README, so you can skip the arithmetic.
If you don't care about real scale, leave Z at 100 and the landscape will be 512 m tall at the heightmap's full range. Lower Z for gentler terrain.
Sizes
Which size to use
Unreal builds landscapes from components made of quads, and some sizes fill them exactly. Epic's documentation recommends sizes such as 1009 × 1009 and 2017 × 2017, which waste no edge. Spirelight's editor resolutions (256 to 2048) are close but not identical, and the free 16-bit PNG comes out at the resolution you chose.
| Route | Heightmap size | Notes |
|---|---|---|
| Free PNG export | 256, 512, 1024 or 2048 | Import it and let Unreal pick the nearest section layout, or resize it in a tool that keeps 16-bit. |
| Pro Unreal pack | 1009 (for sources up to 1024) or 2017 | Resampled for you, with the scale values, layer masks and a DirectX normal map. |
Resampling a smooth heightmap by a few percent is harmless, but resize in a program that keeps 16 bits per channel. Many image editors quietly convert to 8-bit, which brings back terraces on slopes.
Next
Layers, materials and what Spirelight does not do
The Pro pack also writes one greyscale weight map per layer (grass, rock, snow, sand) at the landscape's resolution. Assign a landscape material with four layers, create a Layer Info for each, and import the masks under Layers. They come from slope, height, water level and ridges, which gives a sensible first pass you then paint over.
Spirelight makes single terrains. It does not stream tiled open worlds, run a flow-based erosion simulation or bridge live into the editor. For those, a node tool such as Gaea or World Creator is the better fit. Many people block out the shape in Spirelight, judge it under a real sky, and refine in Unreal's landscape sculpting tools. The comparison of Terragen, World Creator and Gaea explains where each one wins.
Free exports are for personal use; shipping a landscape in a commercial game needs Pro's commercial-use licence. The shared engine guide is Terrain for Unity, Unreal and Godot.
Questions
Unreal heightmap questions
What is the best heightmap size for an Unreal landscape?
Epic recommends sizes that fill landscape components exactly, such as 1009 × 1009 and 2017 × 2017. Spirelight's Pro Unreal pack exports at these sizes. The free PNG is at 256, 512, 1024 or 2048, which Unreal can still import.
Does Unreal need a 16-bit PNG?
Unreal imports 16-bit grayscale PNG or RAW (.r16) heightmaps. An 8-bit image works but gives only 256 height levels, so slopes look stepped. Spirelight exports 16-bit only.
How do I make the landscape the right height?
Set Z scale to terrain height in metres × 100 ÷ 512, and Location Z to height × 50. At Z = 100 the 16-bit range spans 512 m.
Is it free to use in a game?
The export is free. Free exports are for personal use, so a game you sell needs Pro's commercial-use licence ($6/month, $48/year or $99 once).
Which normal map does Unreal want?
DirectX (green = Y−). Unity, Godot and Blender use OpenGL (Y+). Spirelight's export dialog offers both and the Unreal pack uses DirectX.
Keep reading
Block out your landscape in minutes.
Generate, sculpt, judge it under a real sky, then export.