Buildings in 3D tile 'moving' on terrain

Hi all,

I have B3DM tiles loaded via a 3D Tileset. Each contains a bunch of 3D buildings.

When I rotate the view in Cesium, buildings don’t stay a the same position relatively to the imagery; it’s like they are moving slightly on the ground.

I’m wondering if someone here may have an idea of the source of the problem.

Note that :

  • I don’t use any terrain in this example,

  • I use the CESIUM_RTC extension to place each tile.

Any hints appreciated,



cesium_moving_buildings.mp4 (1.13 MB)

Is it possible you have turned off the depthTestAgainstTerrain flag on the globe? To me, it looks like the buildings have a skirt that penetrates the terrain skin, but the depth test is turned off. The shadows appear to confirm this.

viewer.scene.globe.depthTestAgainstTerrain = true;


you were right, adding :

viewer.scene.globe.depthTestAgainstTerrain = true;

solved the moving effect.

Note that false is the default value.

Thanks a lot for your help.