Hi,
I need to calculate the map “extent” (part of the world that the player actually sees). What is the best approach for it?
Hi,
I need to calculate the map “extent” (part of the world that the player actually sees). What is the best approach for it?
Hi @asaf.masa ,
Thanks for your question! Determining the geographic “extent” of what the player’s camera sees is a common use case in geospatial projects. Let me walk you through the general approach for Cesium for Unity.
In this case, your objective is to calculate the geographic view extent based on the camera’s frustum. Cesium for Unity provides APIs that allow you to achieve this:
For further reference, I recommend reviewing the Cesium for Unity – Cesium to better understand the transformation methods. If you’d like, I can provide more detailed guidance (e.g., sample code snippets) tailored to a specific aspect of this workflow. Let me know!
Also, if you’re dealing with large extents or want optimized performance for frequent calculations, you might consider leveraging Cesium Native directly.
Looking forward to your response!
Best,
Jake