How to load oblique photography without being blocked by terrain

viewer.scene.globe.depthTestAgainstTerrain = true
const tplTileset = await Cesium.Cesium3DTileset.fromUrl('http://localhost/uploadFiles/tileset.json', {
    maximumScreenSpaceError: 1,
    backFaceCulling: false,
})
viewer.scene.primitives.add(tplTileset);
I have loaded a 3D Tileset,However, I can only see part of it. I noticed that the effect of a client is very good, and it won't be obstructed. It seems like the terrain where the model is located has been hollowed out. How can I achieve this effect in Cesium

Hi @linxjkl, welcome to the Cesium community!

Could you help me understand what the end result you want should be? Is it the first image or second image above?

This sandcastle demonstrates terrain clipping using geojson data. Perhaps that’s helpful for what you’re trying to achieve. You can use https://geojson.io to quickly create the outline of the area you want to clip.

Hope that helps - please provide more information if that doesn’t address your issue.

Best,
Matt

Thank you, this is exactly the effect I wanted.
Additionally, how can I obtain the footprint of the oblique photography? My oblique photography file is in 3D Tiles format

Hi @linxjkl ,

Unfortunately, as of today creating that shape requires using external tools or a manual process. Even though this isn’t supported, it’s been identified by the community as an important workflow enhancement and is in active discussion.

One solution is to set up a point-and-click system to manually capture points for the footprint. Then save those points into an external file that gets used to create a ClippingPolygon. It can admittedly get a bit tedious, but it’s often the best current solution for one-off footprint creation.

If that’s not sufficient, there are some other image-based techniques for footprint detection that can be used but typically involve a bit of effort to create.

I say this hesitantly, there is this old topic where that user found a solution but it is quite old and I can’t guarantee it will work or be the best solution, but it’s another possible solution for you.

Let us know if any of the above works for you.

P.S. Just a reminder, when asking a new question it’s best to post to a new topic or even a linked topic if it’s related. It helps keep the forum tidy and makes it easier for future users to find relevant information they may be looking for.

Hi, thank you for pointing me in the right direction! I’ll look into the workarounds you suggested. Also, thanks for the reminder about the forum rules—I’ll be sure to start a new topic next time.

1 Like