# 3D Tileset photogrammetry model overlap with terrain

**URL:** <https://community.cesium.com/t/3d-tileset-photogrammetry-model-overlap-with-terrain/28178>\
**Category:** CesiumJS\
**Created:** [November 19, 2023, 4:55pm UTC](https://community.cesium.com/t/3d-tileset-photogrammetry-model-overlap-with-terrain/28178 "2023-11-19T16:55:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tutotamto](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/tutotamto/32/20518_2.png) [@tutotamto](https://community.cesium.com/u/tutotamto)\
**Post date:** [November 19, 2023, 4:55pm UTC](https://community.cesium.com/t/3d-tileset-photogrammetry-model-overlap-with-terrain/28178/1 "2023-11-19T16:55:53Z")

</div>

Hello community. I have 3D tileset as photogrammetry model placed on Cesium Terrain, see [sandcastle here](https://sandcastle.cesium.com/standalone.html#c=bVPbbtswDP0VwU8pUMgY9pamwdK02AokW4Fk7YtfGJlJtOriUXQyZ+i/T5adLL3AgAXynEOTR7TyLrDYadwjiWvhcC+mGHRt5WPKDYpMpXjqHYN2SEV2Kf4WTghGopgZHgXLLpZr8vbJkyn7xCCxhSD8XWPgJ4jCOYTnoWCq8fIV+IjE+Oe7JwsmnBFeLtKxQa98iTQU64h3UFDocB6zD1o9v4a23uJNzezdedbBTm+AtXff0FTv8RUEnEGDdCx46gKctkl4Tmdt0URj/udOBU7W3FvYIDUpmfx5IL/TcZBJaJwadBb03AmprzrMoVog7ZB66VGQ1DfxAxaqZVNhr32jbgnzjiAXk+XdbHa/vOuYF+3RuvlycVW4wnVXL5OL8U2IblGBwilYJGhvnbwxkYEOVganMdAhWnCLjKr1Im5Na1Aq1j4qbRRrgwE5grAHzcf2uuPz7bKD0zQ/yfRTFNmWuQrDPF979oetJ5DhOUcg3uYHXXWbmPe15a/gXZGleQp39WaUirTVrHcYJJTloNe0M4t+3eXBe7v051B2mY0CNwbHR1u/aFt5YlHHJqXMGW1l4gKHfFXH5WCpQuhqCjHKz6WjUu+ELq8/+H+EMhBCRNa1MQt9wCIbj/LIfyc1HkrtNj/iHhhoWtr203jWJaWUozyGHyvZe7MCelM5znd0OIArFQQ2KLsGpfI230B7103+Dw). Unfortunately tileset has areas which are below terrain and thus they are not visible.  
**Question 1:** Is there any setting to dissable terrain in those areas or prefer tileset over terrain or something to actually see tileset data?  
**Question 2** : If I would like to use only WGS84 ellipsoid as terrain (flat), I would have to set height of the tileset lower because it floats in air. I know there is sandcastle demo which shows code for function to set its height but I want to set it as fixed in code without button,  
**Question 3** : I would like to increase cachebytes and maximumCacheOverflowBytes but dont know how to implement it in my code as documentation is not clear for me 🧐 and coulnd find any example codes that implement them.  
Appreciate any help in advance 🙂

 ![Tileset-overlap](https://global.discourse-cdn.com/cesium/original/3X/1/9/197abea71ce6d29405db096769ada23004ca965e.jpeg)  
 ![wgs84-float](https://global.discourse-cdn.com/cesium/original/3X/7/d/7d4594218fbd1f36d0cd69a4887277cd10ece9b1.jpeg)

---

<div class="post-metadata">

**Author:** ![tutotamto](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/tutotamto/32/20518_2.png) [@tutotamto](https://community.cesium.com/u/tutotamto)\
**Post date:** [November 23, 2023, 8:11am UTC](https://community.cesium.com/t/3d-tileset-photogrammetry-model-overlap-with-terrain/28178/2 "2023-11-23T08:11:40Z")

</div>

Update: I found answer to Question 1. I can use use points with clipping planes to cut terrain.  
The remaining questions still need answer.
