Converting Terrain Data to Quantized-Mesh Format

I’m working on an offline project where I need to convert my terrain data into a format compatible with Cesium. Specifically, I have terrain data in .dte2 and .tif formats and I’d like to convert either one of them to Cesium’s quantized-mesh format.

I understand that Cesium supports two main terrain formats: heightmap and quantized-mesh.

I’m particularly interested in converting my data to the quantized-mesh format, as it is better suited for large-scale terrain rendering.

I also have .terrain files that are already in use. What is the best way to utilize these files within Cesium?

File structure of my terrain data:

terrain/
|-- 0
|-- 1
|-- 2
|-- 3
|-- 4
|-- 5
|-- 6
|-- 7
|-- 8
|-- 9
|-- 10
|-- 11
|-- 12
|-- 13
|-- 14
|-- 15
-- layer.json

Hi @Mehmed, welcome to the community!

You can find all the details of the quantized-mesh format here.

If you want a quick test to convert your data files with an existing software, you could try using Cesium ion, following this guide: Terrain – Cesium.

1 Like