Integrating quantized mesh data

Hello,

assuming that I generated the quantized mesh data using https://github.com/tum-gis/cesium-terrain-builder-docker, could you tell me how I can integrate it into CesiumJS and see the terrain on the globe?

I tried the following inside the viewer, but it didn’t work:

terrainProvider: new Cesium.CesiumTerrainProvider({
url: “data/terrain”
}

``

I am using CesiumJS 1.50 on Ubuntu 16.04.

Thanks.

Do you have error message like this??

'
An error occurred in "w": Failed to obtain terrain tile X: 1 Y: 0 Level: 0.
Cesium.js:459 An error occurred in "w": Failed to obtain terrain tile X: 0 Y: 0 Level: 0.
'

If yes, i have same problem with you

Hello, a very similar one:

Cesium.js:452 An error occurred in “w”: Failed to obtain terrain tile X: 1 Y: 0 Level: 0.
Cesium.js:452 An error occurred in “w”: Failed to obtain terrain tile X: 0 Y: 0 Level: 0.

I converted the data also to “Terrain” format and I got the same result. Should these data be served in a specific way, instead of just a directiory?

I don't know why this is happen.
So temporarily, i just using Cesium ion

Presumably if it’s outputting correct quantized-mesh it should render fine in Cesium. This might be an issue on their side, so you should open a GitHub issue on the cesium-terrain-builder project if you haven’t already.

If you just need to create quantized mesh you could just upload it to ion (https://cesium.com/ion/) as mentioned earlier. All of ion’s tools are also available locally as CLIs as well (https://cesium.com/docs/on-premise/).

For anyone who might have the same problem, I solved it by using https://github.com/geo-data/cesium-terrain-server.