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

Sky shouldn't be visible on low zoom in Globe-Mercator projection #4853

Closed
birkskyum opened this issue Oct 17, 2024 · 8 comments · Fixed by #4878
Closed

Sky shouldn't be visible on low zoom in Globe-Mercator projection #4853

birkskyum opened this issue Oct 17, 2024 · 8 comments · Fixed by #4878
Labels
bug Something isn't working enhancement New feature or request globe Globe related issues

Comments

@birkskyum
Copy link
Member

birkskyum commented Oct 17, 2024

When using a globe, and going to a high pitch, the non-globe sky is shown

Demo:
https://cartes.app/?style=transports&choix+du+style=oui#2.08/66.22/-14.38/47/85

Screenshot 2024-10-18 at 00 21 59
@birkskyum birkskyum added the globe Globe related issues label Oct 17, 2024
@HarelM
Copy link
Collaborator

HarelM commented Oct 18, 2024

I tent to think this is the sky.
It is best to create a minimal reproduction as it's hard to understand what the style definition is in the linked site...

@HarelM HarelM added the need more info Further information is requested label Oct 18, 2024
@birkskyum
Copy link
Member Author

@laem can you help with a minimal repro of the sky issue seen here?

@birkskyum
Copy link
Member Author

birkskyum commented Oct 18, 2024

@HarelM , repro here , zoom out to see the sky stay in flat-earth mode:
https://codepen.io/birkskyum-1471370946/pen/mdNwGOo

@birkskyum birkskyum changed the title Globe atmosphere Globe sky Oct 18, 2024
@birkskyum birkskyum changed the title Globe sky Sky doesn't adapt to Globe projection Oct 18, 2024
@HarelM
Copy link
Collaborator

HarelM commented Oct 18, 2024

Thanks @birkskyum!
Globe still doesn't support sky well.
I've linked it in the v5 breaking change issue in order to see if this can be supported as well.

@HarelM HarelM added bug Something isn't working enhancement New feature or request PR is more than welcomed Extra attention is needed and removed need more info Further information is requested labels Oct 18, 2024
@birkskyum birkskyum changed the title Sky doesn't adapt to Globe projection Sky doesn't adapt to Globe-Mercator projection Oct 18, 2024
@ibesora
Copy link
Collaborator

ibesora commented Oct 21, 2024

What are the expectations here? Should we just disable sky? The current implementation tries to simulate sunlight on the earth but that doesn't obviously work on globe

@birkskyum
Copy link
Member Author

birkskyum commented Oct 21, 2024

I expected the sky to wrap around the globe, so that it starts at the globe edge, and extends out.

@laem
Copy link

laem commented Oct 21, 2024

Thanks for the issue. I've had some problems understanding the sky spec.

I'm still very happy with the globe feature.

Please note that the capture in the initial issue body is a heavily tilted view, as shown by this GIF.

Recording 2024-10-21 at 14 57 18

One very easy fix would be to untilt the view at low zoom when the globe projection is set. I'll try to implement that someday.

@birkskyum
Copy link
Member Author

birkskyum commented Oct 21, 2024

@ibesora , actually, since the "sky" simulate the scattering through the atmosphere like you point to, I agree it doesn't make sense to show it at low zoom when the camera isn't beneath the atmosphere.

@birkskyum birkskyum changed the title Sky doesn't adapt to Globe-Mercator projection Sky shouldn't be visible on low zoom in Globe-Mercator projection Oct 21, 2024
@birkskyum birkskyum removed the PR is more than welcomed Extra attention is needed label Oct 30, 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 enhancement New feature or request globe Globe related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants