Bounding Google photorealistic tiles

Hello there,
I was wondering if there’s a way to only bring in a small part of a location entered instead of it importing the entire world in AR.

For more clarification what my intention is for the user to enter a location (lon, lat) and get a small plane (maybe a small square) that contains part of the 3d map of this location, is that possible??

I’ve tried a-lot of approaches but to no avail and it normally lags and takes time as it continues loading the entire world map.

HI @YasmeenShaaban, welcome to the community!

We have a few features that allow you to hide parts of tilesets and/or exclude tiles completely from loading.

The first is polygon clipping, which uses a spline to exclude everything outside (or inside) of your drawn polygon. We have a tutorial for that on our website.

Secondly, if you’re comfortable with writing scripts in C#, you can implement tile exclusion behavior using the CesiumTileExcluder interface. You can use this to, for example, exclude tiles outside of a specified radius, or any tiles that fall outside of a box mesh. There’s an example in the description of this PR: https://github.com/CesiumGS/cesium-unity/pull/248.

Let us know if that helps!

I have a question, would doing this stop dynamic loading of tiles even as we move the camera? like if i move outside the radius I define, will more of the map load automatically? or can I somehow disable loading of the map even as the camera moves outside the radius? Essentially I want to limit the API calls

Hi @sayxli,
Neither CesiumCartographicPolygon nor CesiumTileExcluder will stop dynamic loading of tiles generally. But both will prevent loading any tiles that you exclude. That is, if you define a polygon and configure it to exclude the area outside of it, then no tiles that are entirely outside that polygon will load at all. Inside the polygon, however, tiles will load and unload based on the LOD computation, as normal.