itowns icon indicating copy to clipboard operation
itowns copied to clipboard

Terrain precision glitching / jumping when using lower resolution terrain with default update strategy

Open airnez opened this issue 4 months ago • 1 comments

Context

Using a lower resolution terrain (world for instance) with the default strategy STRATEGY_MIN_NETWORK_TRAFFIC produces glitching effets by switching from precision levels very far apart from each other.

https://github.com/user-attachments/assets/e29a8923-5637-469b-9296-dcbd30d515dd

Steps to Reproduce

  1. Start from the view_3d_map example.
  2. Modify the range of the view.controls.lookAtCoordinate function to a smaller value like 1000 to zoom closer to ground when searching a place
  3. Remove the Highres France terrain to only use world terrain.
  4. Remove the update strategy in WORLD_DTM.json to use default one
  5. Search for the french city Sète
  6. See how tiles are switching between very far appart levels

Expected Behavior

Even if it makes sense that this strategy tries to request as few tiles as possible, it should not jump between levels too far appart.

Possible Cause/Fix/Solution

When zooming from the whole globe view to a close-up view, only very low-res and high res tiles are loaded, and the startegy switches betweel already loaded tiles.

airnez avatar Oct 17 '24 10:10 airnez