Hidding part of Tileset

Hi,

I recently followed the “Hiding Parts of Tilesets with Cartographic Polygons” tutorial on Unity.

In my case I don’t understand why it only works half way.

(I apologize in advance if this problem has already been mentioned. I couldn’t find anything that looked like my problem.)

https://postimg.cc/06D7RhtL

I don’t understand why only a certain part of my zone disappears and not everything inside.

If you could help me I would be very grateful.

Have you looked into this? Add support for polygon clipping by j9liu · Pull Request #407 · CesiumGS/cesium-unity · GitHub

Hi !

Thank for your answer !

I just looked and for me it explains the same thing as in his tutorial.

I specify that I am on Unity 2023 on a non-LTS version and I do not have

I’m going to test on another version of Unity.

Hi @Vectuel_Valentin, welcome to the community!

If you have Exclude Selected Tiles enabled on your cartographic polygon, then it will exclude tiles that fall entirely within the region. But any tiles that are both inside / outside of the polygon must be loaded – otherwise, you’ll have holes outside of the polygon.

For those polygons, a material effect is used to hide the parts of the tiles that fall inside of the tile, leading to the appearance of a crisp region. However, the original meshes of the tiles will still be there. That’s why the tutorial is called “hiding Parts of Tilesets” – the clipping is intended as a visual effect. It is currently not possible to have the polygons actually cut parts of the tile meshes as they load in.

I hope that explanation makes sense. Let us know if you have any follow-up questions or concerns!

Hi @janine thank you a lot !

So if I understand correctly to hide the part of the tiles which are made both inside and outside I must use one of the following Cesium materials:

CesiumDefaultTilesetMaterial
CesimDefaultTilesetShader
CesiumPointCloudShadingMaterial
CesiumUnlitTilesetMaterial
CesiumUnlitTilesetShader

So I just tried and it actually works better, however I still have parts of the tile that do not disappear.

Maybe I misunderstood something?

Thank you for your answer !