Using MapTiler with Cesium

We currently use MapTiler 3D quantized mesh in conjunction with Cesium 3D maps. We have noticed different behaviour however when compared to using the Cesium World terrain data. Basically, when using Cesium World terrain data, map elements will respect the 3D terrain in that they will disappear when located at an altitude that is below that of the terrain. So for example vectors will disappear through a hill and reappear out the other other side. This however doesn’t happen when using MapTiler 3D quantised mesh in that elements always appear above the terrain regardless of altitude. Do you know why this might be the case? In other respects the MapTiler data appears to work identically to that of the Cesium data. The terrain provider URL we’re using is as follows:

http://<server_name>:3650/api/tiles/maptiler-terrain_quantized_mesh-2021-03-11-v3_1

Hi,

Could you please try to add the following to your CesiumJs viewer and reply with the behavior you see

viewer.scene.globe.depthTestAgainstTerrain = false;

Thanks,
Ankit

Hi Ankit,
Apologies for the delay in getting back to you. Yes this appears to solve the problem. Thanks for your help.
Regards,
Jon-Paul.

1 Like