Render a heightmap
Turn a heightmap into a 3D render
You have a grayscale heightmap from Gaea, World Machine, a game, or a map tool, and you want to see it as a landscape. Here is how to import it, set the scale, light it and render a picture without installing anything.
Free, no account, nothing uploaded. Needs a WebGPU browser: Chrome, Edge, or Safari 26+.
Step by step
From a grayscale file to a finished render
- Check your file. A heightmap is a grayscale image where brighter means higher. 16-bit PNGs keep full precision. 8-bit PNGs and JPEGs work but show terraces on slopes, because they only have 256 height levels.
- Open the editor and add a terrain. Pick Terrain from the Create palette, or double-click the starter mountains to open the Terrain Editor.
- Import the image. In the Terrain Editor, press Import image… and choose your file. Non-square images are cropped to a centered square, so crop it yourself first if the edges matter. Heights up to 2048 × 2048 keep their detail.
- Set the real size. Close the editor and set the terrain's width, depth and height in metres in the inspector. A heightmap has no units, so this decides how steep it looks. Too tall looks like a spike; too low looks like a hill.
- Add the landscape. Choose a ground material (rock, grass, snow), add water at a sea level, and set the sun, sky, clouds and haze. A low sun shows relief best.
- Frame and render. Orbit the camera, save views to the slots on the left, and press Render. The viewport is already a path-traced preview and refines while you look. Save a PNG up to 4K free (8K and custom sizes with Pro).
Where heightmaps come from
Sources for heightmaps
| Source | Good for | Tip |
|---|---|---|
| Gaea, World Machine, World Creator | Eroded, production terrain | Export a 16-bit PNG. Spirelight reads it at full precision. |
| Real-world elevation tools (Unreal Heightmap, Tangram Heightmapper) | Real mountains and coastlines | Use their 16-bit PNG output if offered. Check the vertical scale you choose against reality. |
| Game engines | Rendering a level's terrain outside the engine | Export the landscape heightmap (16-bit PNG or RAW converted to PNG). |
| Spirelight itself | Quick generated or sculpted terrain | Use the heightmap generator, then render. |
For raw (headerless) files, convert them to a 16-bit grayscale PNG first; Spirelight imports images, not RAW. Elevation data downloaded from mapping tools often has its own unit scale, so decide the height in metres from the source's vertical range.
Making it look right
Five tweaks that make a heightmap read as a place
- Lower the sun. At 5° to 15° elevation, raking light picks out ridges and gullies. Overhead light flattens everything.
- Use haze. Distance haze separates ridgelines into layers, which is what gives depth.
- Add water below the peaks. A sea level across valleys turns noise into coastlines and lakes, and the reflections add contrast.
- Pick a texture that follows slope and height. Rock on steep faces and snow above a height gives the terrain structure without painting anything.
- Add one object in the foreground. A rock or a glass sphere gives scale; without it a mountain and a pebble look the same.
You can smooth, roughen, sharpen or erode the imported terrain with the same tools used on generated terrain, then export it again as a heightmap or an engine pack for Unity, Unreal or Godot.
Limits
What to know before you start
The imported terrain is a single heightfield up to 2048 × 2048, so a huge tiled world has to be rendered tile by tile or downsampled. There is no river or vegetation placement, so a render of a forested region will look bare. Renders are not geo-referenced and don't read GeoTIFF metadata. If you want a full atmosphere and planet-scale photoreal result, see Terragen and the other desktop tools.
Free renders are for personal use. For client work or print, Pro covers commercial use.
Questions
Heightmap render questions
How do I render a heightmap?
Import it in the Terrain Editor with Import image…, set the terrain's width, depth and height in metres, add a sky and a material, and render. The viewport is a path-traced preview that you save as a PNG up to 4K.
What heightmap formats can I import?
Any image the browser can open, such as PNG or JPEG. 16-bit grayscale PNGs keep full precision; 8-bit images work but show steps. RAW files must be converted to PNG first.
How big can the heightmap be?
Terrains up to 2048 × 2048 keep full detail. Non-square images are cropped to a centered square.
Can I render real-world terrain?
Yes, if you have an elevation heightmap from a mapping tool. Set the vertical scale from the real elevation range so slopes look right.
Is it free?
Yes, no account is needed and nothing is uploaded. PNG renders up to 4K are free for personal use; 8K and the commercial licence are Pro.
Keep reading