geo-data / cesium-terrain-builder

A C++ library and associated command line tools designed to create terrain tiles for use in the Cesium JavaScript library
Other
706 stars 338 forks source link

Cesium is not rendered after reaching level 4 terrain #95

Closed jespinosaar closed 3 years ago

jespinosaar commented 3 years ago

Hello! I am trying to create a global terrain dataset and it seems to be created correctly, but when I try to visualize it in Cesium, after reaching level 4, the tiles are not rendered. This is what I see:

image

I am using a WGS84 image geotiff (>1 gb) and I am using the latest version of tumgis/ctb-quantized-mesh, which seems to be using the last version of cesium-terrain-builder. And I am executing the following statement to create the quantized-mesh: ctb-tile -f Mesh -c 1 -C -N -n “GDAL_CACHEMAX=4000” -s 4 -e 0 -o /terrain /terrain/t2.tif

To serve it I am using cesium-terrain-server.

What am I doing wrong? Thanks in advance!

jespinosaar commented 3 years ago

Ok, the problem relied on the custom ellipsoid I was using, as this algorithm is focused on WGS84, it was necessary to modify the radius to the ones associated to my ellipsoid and now is working.