Skip to content

[geo-layers] Fix globe tile culling near poles#10297

Closed
charlieforward9 wants to merge 1 commit into
visgl:cr/feat/terrain-layer-globe-gridfrom
NEW-HEAT:codex/globe-tile-cull-rect
Closed

[geo-layers] Fix globe tile culling near poles#10297
charlieforward9 wants to merge 1 commit into
visgl:cr/feat/terrain-layer-globe-gridfrom
NEW-HEAT:codex/globe-tile-cull-rect

Conversation

@charlieforward9
Copy link
Copy Markdown
Collaborator

Summary

Fixes TileLayer/Tileset2D visibility in GlobeView near the poles by bypassing screen cullRect lng/lat bounds culling for globe viewports.

getOSMTileIndices already uses the globe frustum traversal to select visible tiles. The later cullRect path approximates the screen rectangle as a simple lng/lat bbox from corner unprojection, which breaks around polar caps and can hide every selected tile.

Validation

  • npx vitest run --project headless test/modules/geo-layers/tileset-2d/tileset-2d.spec.ts

Stacked on #10250 / cr/feat/terrain-layer-globe-grid.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage is 83.764%NEW-HEAT:codex/globe-tile-cull-rect into visgl:cr/feat/terrain-layer-globe-grid. No base build found for visgl:cr/feat/terrain-layer-globe-grid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants