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

Orthographic camera projection #11955

Open
askmyselfwhy opened this issue Apr 23, 2024 · 4 comments
Open

Orthographic camera projection #11955

askmyselfwhy opened this issue Apr 23, 2024 · 4 comments

Comments

@askmyselfwhy
Copy link

askmyselfwhy commented Apr 23, 2024

What happened?

Why orthographic projection so much differs from perspective on big distances from the globe (see images)?

Zooming in-out also feels weird. Also no moon or anything else is rendered in orthographic mode.

The orthographic view was previously the same as perspective. And after updating Cesium library (from one of 2020 versions to the latest) we've got this strange behavior.
What was the reason behind it and how can I replicate the same view as in perspective not by digging into the core of the library?

image
image
image
image

Reproduction steps

  1. Go to sandcastle
  2. Zoom in/out, rotate.
  3. Zooming and rotating feel like you are looking through a pinhole at a flat map, but not 3d globe.

Sandcastle example

https://sandcastle.cesium.com/index.html?src=Projection.html

Environment

Everywhere

@ggetz
Copy link
Contributor

ggetz commented Apr 25, 2024

Thanks for the report @askmyselfwhy.

The orthographic view was previously the same as perspective. And after updating Cesium library (from one of 2020 versions to the latest) we've got this strange behavior.

Would you be able to identify the release where this has changed? My guess would be around version 1.97.

@ggetz ggetz added the needs feedback On hold until additional info is supplied label Apr 25, 2024
@askmyselfwhy
Copy link
Author

askmyselfwhy commented Apr 25, 2024

Thanks for the report @askmyselfwhy.

The orthographic view was previously the same as perspective. And after updating Cesium library (from one of 2020 versions to the latest) we've got this strange behavior.

Would you be able to identify the release where this has changed? My guess would be around version 1.97.

I found a release where it's happened https://github.com/CesiumGS/cesium/releases/tag/1.93

Previous releases work fine, like this https://github.com/CesiumGS/cesium/releases/tag/1.92

@askmyselfwhy
Copy link
Author

Thanks for the report @askmyselfwhy.

The orthographic view was previously the same as perspective. And after updating Cesium library (from one of 2020 versions to the latest) we've got this strange behavior.

Would you be able to identify the release where this has changed? My guess would be around version 1.97.

I found a release when it's happened https://github.com/CesiumGS/cesium/releases/tag/1.93

Previous releases work fine, like this https://github.com/CesiumGS/cesium/releases/tag/1.92

Probably one of the changes here:
#10063

@ggetz ggetz added category - graphics and removed needs feedback On hold until additional info is supplied needs triage labels Apr 26, 2024
@ggetz
Copy link
Contributor

ggetz commented Apr 26, 2024

Thanks so much @askmyselfwhy!

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

No branches or pull requests

2 participants