Getting the current LOD from Camera #1840
-
Hello, I am currently attempting to get a list of tiles that are currently displayed at the current LOD, but I am unsure of how to figure out what the current LOD is. Currently, I am creating an extent based off of my cameras view and assuming a LOD of 15.
This "works", but I feel like I could be doing something different -- is there a way to calculate what the current LOD of each layer is based off of the cameras range & viewport size? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not really. |
Beta Was this translation helpful? Give feedback.
Not really.
LOD is not selected on a per-layer basis. At cull time each tile can have a different LOD depending on the view matrix, the culling parameters, and the map projection. So there is never a single LOD that you are seeing for the whole terrain (unless you are in a projected map with an orthographic projection matrix).