# Why 3d Tile under terrain show?

**URL:** <https://community.cesium.com/t/why-3d-tile-under-terrain-show/8542>\
**Category:** CesiumJS\
**Created:** [August 10, 2019, 6:19pm UTC](https://community.cesium.com/t/why-3d-tile-under-terrain-show/8542 "2019-08-10T18:19:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![3DGISKing](https://avatars.discourse-cdn.com/v4/letter/3/91b2a8/32.png) [@3DGISKing](https://community.cesium.com/u/3DGISKing)\
**Post date:** [August 10, 2019, 6:19pm UTC](https://community.cesium.com/t/why-3d-tile-under-terrain-show/8542/1 "2019-08-10T18:19:48Z")

</div>

**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

 ![Screenshot_1.png](https://global.discourse-cdn.com/cesium/original/3X/0/c/0c221b590278150ac936ee3e4cf441193d6465a7.png)

This is screen capture in Cesium SandCastle.

 ![Screenshot_1.png](https://global.discourse-cdn.com/cesium/original/1X/baac77b064d7ea605fe1e1dea2b7a8d62dc4f4e9.png)

**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))

})

);

viewer.zoomTo(tileset)

.otherwise(function (error) {

console.log(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

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [August 13, 2019, 2:32pm UTC](https://community.cesium.com/t/why-3d-tile-under-terrain-show/8542/2 "2019-08-13T14:32:35Z")

</div>

Try setting depthTestAgainstTerrain ([https://cesiumjs.org/Cesium/Build/Documentation/Globe.html?classFilter=Globe#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.

---

<div class="post-metadata">

**Author:** ![3DGISKing](https://avatars.discourse-cdn.com/v4/letter/3/91b2a8/32.png) [@3DGISKing](https://community.cesium.com/u/3DGISKing)\
**Post date:** [August 13, 2019, 2:40pm UTC](https://community.cesium.com/t/why-3d-tile-under-terrain-show/8542/3 "2019-08-13T14:40:55Z")

</div>

Thank you very much. Problem fixed.
