Why 3d Tile under terrain show?

1. A concise explanation of the problem you’re experiencing.

I have a 3d tileset. It has no location info.

I made that 3d tileset to place underneath the terrain.

But I can still see that 3d tile. Obviously, it is underneath terrain.

I can not see it in Cesium Ion Location Editor with same location info.

Who can explain why?

How to fix?

This is screen capture in Cesium Ion Lcation Edior

This is screen capture in Cesium SandCastle.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

// Grant CesiumJS access to your ion assets

Cesium.Ion.defaultAccessToken = ‘eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2MzJlNDI2ZC1hMmE5LTQ4MjEtYmQwYS1iMDRlNTNjM2JiZTkiLCJpZCI6MjkyMSwiaWF0IjoxNTM1MjE4Mjk1fQ.jMg72t7Gnkk4-E9G7zhd_CoTJBUJ39hHALmxGBRL1ok’;

var viewer = new Cesium.Viewer(‘cesiumContainer’);

var tileset = viewer.scene.primitives.add(

new Cesium.Cesium3DTileset({

url: Cesium.IonResource.fromAssetId(20238),

//This tileset doesn’t have a location, so we’re using a modelMatrix to place it at 0, 0 instead of drawing at the center of the earth

modelMatrix: Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(124.4187910489, 39.7961007694, -50))




.otherwise(function (error) {



3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I want to place 3dtile under terrain.

4. The Cesium version you’re using, your operating system and browser.

1.60, Windows10, Chrome

Try setting depthTestAgainstTerrain (https://cesiumjs.org/Cesium/Build/Documentation/Globe.html?classFilter=Globe#depthTestAgainstTerrain) to true to make sure it’s not visible when under ground. Let me know if that helps.

Thank you very much. Problem fixed.