Skip to content

How to self-host Cesium terrain tiles for a real-world site

Serve your own quantized-mesh terrain, the same format as Cesium World Terrain, from files you keep, no subscription.

Mantle Place lets you self-host Cesium terrain tiles for a real-world site: the terrain tiles Extra, a separate download that comes with paid sites, is a quantized-mesh tileset, layer.json plus its .terrain tree, that any static HTTP server can stream to CesiumJS or Cesium for Unreal. Cesium ion sells the same format as a hosted subscription, and nothing about the format requires one.

By Coulter Heiberger · Updated

answers

Quick answers

Can I measure on the streamed terrain?

Not precisely: the tiles carry a vertex about every 15 m, enough for context and flythroughs. For measurement, open Elevation/Elevation.tif, the finest native elevation for the site, in a GIS or Civil 3D.

step by step

How to do it

  1. Draw your area

    Draw your area of interest on Mantle Place and order the bundle. The terrain tiles come with paid sites and cover exactly that extent.

  2. Download terrain tiles

    In your vault, the terrain tiles Extra is a separate download beside the bundle; download it and unzip it anywhere. It is a coarse terrain for streaming into Cesium, with a vertex about every 15 m; for measurement, use Elevation/Elevation.tif.

  3. Serve folder over HTTP

    Start any static file server in the unzipped folder (one line of Python runs one on localhost) and confirm layer.json loads in a browser.

  4. Point Cesium client at it

    In Cesium for Unreal, add the CesiumTerrain actor, not Cesium3DTileset, and set its URL to the served layer.json. In CesiumJS, create the terrain provider from the same URL.

  5. Drape imagery

    Tile Imagery/Imagery.tif with gdal2tiles and serve the tiles beside the terrain. Add them as a Tile Map Service raster overlay, then fly the camera to your area.

questions

Frequently asked

Do I need a Cesium ion subscription to stream terrain?

No. Cesium ion is a hosting service, not the format. The terrain tiles Extra is standard quantized-mesh, the same wire format Cesium World Terrain uses, so any static HTTP server can stream it to CesiumJS or Cesium for Unreal.

Why the CesiumTerrain actor and not Cesium3DTileset?

They read different formats. The CesiumTerrain actor consumes quantized-mesh terrain (layer.json plus .terrain tiles), which is what the Extra holds. Cesium3DTileset expects a tileset.json with glTF tiles, a format the Extra does not contain.

Why does the tileset need an HTTP server instead of opening the files directly?

Cesium clients request tiles by URL as the camera moves, and stable builds of Cesium for Unreal reject raw file paths. A one-line static server on localhost satisfies that; a regular web host does the same for a whole team.

Can I use the same site without streaming at all?

Yes. The bundle carries the terrain as Elevation/Terrain.glb, Elevation/Elevation.tif, and more, so the streamed tiles are one option among several. Mantle Place for Unreal builds an editable Landscape from the identical data.

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