Skip to content

How to download a real-world heightmap for Unity terrain

A real site in Unity from a real-world heightmap or a ready-made mesh: no streaming SDK, no token, just the standard import pipeline.

Mantle Place delivers a real-world heightmap for Unity terrain: draw the area, and the bundle carries Elevation/Elevation.png, a 16-bit grayscale heightmap of real elevation, beside Elevation/Terrain.obj, which Unity imports natively as a mesh. For a sculptable Unity Terrain, resample the PNG to a power of two plus one, such as 513, and save it as 16-bit RAW for Import Raw.

By Coulter Heiberger · Updated

answers

Quick answers

Where can I download a real-world heightmap for Unity?

Draw the area on Mantle Place and take the bundle’s heightmap: a 16-bit grayscale PNG of real elevation, clipped to your extent and free at 0.25 km² and under. The elevation is 1 m wherever USGS lidar covers the site.

What heightmap format does Unity terrain need?

Unity’s Import Raw reads 16-bit or 8-bit RAW, and the heightmap resolution must be a power of two plus one, such as 513, 1025, 2049, or 4097. The bundle’s PNG needs resampling to one of those sizes first.

How do I convert a PNG heightmap to RAW for Unity?

Open the 16-bit PNG in an image editor or GIS that writes 16-bit RAW, resize it to the nearest power of two plus one (the bundle’s heightmap uses Unreal sizes such as 1009 or 2017), and save it as RAW with Windows byte order. Unity’s Terrain Tools package can also read a heightmap texture directly.

step by step

How to do it

  1. Download your bundle

    Draw the area on Mantle Place, order the bundle, and download it from your vault. Pick the level your project can carry, Max, Med or Min, since the meshes and the heightmap shrink with it.

  2. Import terrain mesh

    Drag Elevation/Terrain.obj into the project for a native import; it is Y-up in metres, as Unity is. For Elevation/Terrain.glb, install a glTF importer package such as glTFast first.

  3. Resample heightmap

    Elevation.png comes at a size Unreal accepts, so resize it in an image editor or GIS to a power of two plus one, such as 513 or 1025. Save the result as 16-bit RAW with Windows byte order.

  4. Create Unity Terrain

    Create a Terrain, open its settings, and choose Import Raw with the RAW file at 16 bits and Windows byte order. Set the heightmap resolution to the size you resampled to.

  5. Set Terrain Height

    Read the raster scale and offset in the catalog entry for Elevation/Elevation.png in Manifest.json. Set Terrain Height to 65535 times the scale and raise the Terrain by the offset, so the relief comes back at true scale in metres.

  6. Build scene

    Drop in Basemap/Buildings.glb through the glTF package, add colliders and lighting, and treat the site like any other geometry in the project.

questions

Frequently asked

Do I need Cesium for Unity to get real-world terrain?

No. Cesium for Unity streams global tiles at runtime and is the right tool for planet-scale work. For one site, importing a bundle as plain meshes is simpler and carries no token or connection.

Will the terrain work in builds without a connection?

Yes. The site is ordinary geometry and textures baked into the build. Nothing streams, nothing expires, and the packaged project runs fully offline.

Can I get a sculptable Unity Terrain instead of a mesh?

Yes, from Elevation/Elevation.png. Unity’s Terrain imports heightmaps as 16-bit RAW at a power of two plus one, so resample and convert the PNG first; after that the site behaves like any sculptable Unity Terrain.

Was this useful?

Get the data for your site.

Draw your area, read its Site Brief, and download a bundle you keep: terrain, imagery, CAD drawings, and more, ready for Unreal, Revit, AutoCAD, and more. $25 plus $5 per square kilometer, and 0.25 km² and under is free.

Native plugins: Mantle Place for Unreal, Mantle Place for Revit, and Mantle Place for AutoCAD.

Enter the curator