viya3d
:: Free tool ::

Heightmap to 3D terrain

Turn a grayscale heightmap into a terrain mesh. Set its size, height and detail, colour it by height or with the image itself, and download a GLB for Unity, Godot, Unreal or Blender.

:: Drop an image ::

Drop an image here

A grayscale heightmap: white is high, black is low. PNG keeps the most detail. Nothing is uploaded.

Fill the terrain with props from viya3d

How to turn a heightmap into terrain

  1. 01

    Drop a heightmap

    White is high, black is low. Exports from World Machine, Gaea, terrain.party or any grayscale PNG work. Or try the generated sample.

  2. 02

    Shape it

    Set the width and height in metres, the grid detail and the smoothing, then pick a colour ramp.

  3. 03

    Download the GLB

    The terrain is centred on the origin, Y-up, in metres, with UVs, so you can texture it in your engine.

Questions about heightmaps

Which way is north?

The top of the image becomes the far (−Z) side of the terrain, so the mesh matches the image seen from above.

How detailed should the grid be?

128 × 128 (about 33,000 triangles) is plenty for a background hill. Use 256 or 512 for terrain the player walks on, or split big maps into tiles.

Why does my terrain look stepped?

Browsers read images with 256 brightness levels, so gentle slopes can come out in steps. Raise Smoothing a little, or blur the heightmap slightly before exporting it.

Can I use it in Unity or Unreal?

Yes, as a regular mesh. For their own terrain systems, import the heightmap image directly; this tool is for meshes, props and quick blockouts.

Is my image uploaded?

No. The mesh is built and saved in your browser.