iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.11k stars 303 forks source link

Improve terrain subdivision and raster tiles fecthing #2421

Open jailln opened 1 month ago

jailln commented 1 month ago

Context

Several bugs are related to terrain subdivision and raster tiles fetching - for instance #2159 ; #2214 and the following behaviour that can sometimes happen (unfortunately I can't share the terrain source for this one for now):

https://github.com/user-attachments/assets/625c57ff-cb5c-4288-847f-800961df8221

The terrain subdivision code (mostly in TiledGeometryLayer) has become quite complex, is hard to understand (see discussions in #2159 and #2344 for instance) and is buggy (see aforementioned issues).

Proposed Solution

I think we need to:

I've started to work on a refactoring and simplification on this branch

airnez commented 1 month ago

Also related to #2442