Hide terrain below 3dtileset

Hello,

I understand that theres a way to hide the terrain using clipping planes/polygons but is there a way to hide the terrain below the 3dtileset?

I understand that if you know the polygon/area that the tileset will be on the terrain and create a polygon shape as a clipping plane, you can remove the terrain but is there a way to do this with just the 3dtileset?

I would like to keep the surrounding terrain and just remove the areas under the tileset. I have got a half solution using globe.depthTestAgainstTerrain but this is a more global option whereas I am looking for more of a per tileset option.

An example use case would be, i have a tileset that is a photogrammetry of a cliff but the default terrain makes the cliff out to be taller than what we have scanned, so the terrain cliff sticks out over the tileset cliff.

example pic - the dark areas are the terrain.

Hi there,

We have a Tutorial covering hiding terrain under a 3D tileset here. Hopefully that will get you pointed in the right direction.

Thanks for the help!

Often external apps will define a footprint or outline.

Do you have any resources on getting the footprint for a 3d tileset? Not sure which apps can do this for me.

Do you have any resources on getting the footprint for a 3d tileset? Not sure which apps can do this for me.

I’m not sure what your data workflow is, but some example might be FME, ArcGIS, or QGIS. You could also manually click out positions yourself to define the edges of the polygon in a mini CesiumJS app.

1 Like