Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom doesn't adjust correctly for globe with terrain #5026

Open
birkskyum opened this issue Nov 9, 2024 · 0 comments
Open

Zoom doesn't adjust correctly for globe with terrain #5026

birkskyum opened this issue Nov 9, 2024 · 0 comments
Labels
bug Something isn't working globe Globe related issues terrain vertical-perspective Vertical Perspective projection

Comments

@birkskyum
Copy link
Member

birkskyum commented Nov 9, 2024

The globe is supposed to be rendered at the same size when changing the center, which require ongoing adjustment of the zoom level (a fixed zoom level, say zoom=2, will be much closer to earth surface at the pole than at equator).

This continuous scaling doesn't work when terrain is enabled.

Screen.Recording.2024-11-09.at.15.38.34.mov

Repro:

  • the hybrid-terrain.html example can repro this without changes.
  • the 3d-terrain.html examlpe, by setting projection.type to "globe" or "vertical-perspective"
@birkskyum birkskyum added globe Globe related issues vertical-perspective Vertical Perspective projection labels Nov 9, 2024
@birkskyum birkskyum changed the title getZoomAdjustment() doesn't scale correct for globe with terrain Zoom doesn't adjust correctly for globe with terrain Nov 9, 2024
@HarelM HarelM added terrain bug Something isn't working labels Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working globe Globe related issues terrain vertical-perspective Vertical Perspective projection
Projects
None yet
Development

No branches or pull requests

2 participants