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

Camera glitches in orthographic projection mode #11743

Open
javagl opened this issue Jan 5, 2024 · 1 comment
Open

Camera glitches in orthographic projection mode #11743

javagl opened this issue Jan 5, 2024 · 1 comment

Comments

@javagl
Copy link
Contributor

javagl commented Jan 5, 2024

The "Projection" example sandcastle at https://sandcastle.cesium.com/index.html?src=Projection.html behaves strangely when zooming, both when using the mouse wheel as well as using right mouse drags:

  • When zooming out from the initial view, the camera jumps far away from the model
  • When zooming in, the camera orientation suddenly glitches out and moves the camera at some random position (slightly below the globe surface)

Cesium Projection Camera Glitch

Edit:

This only happens in the orthographic view, which is initially enabled as of
viewer.projectionPicker.viewModel.switchToOrthographic();

@javagl javagl changed the title Camera glitches in "Projection" Sandcastle Jan 5, 2024
@ggetz
Copy link
Contributor

ggetz commented Jan 5, 2024

My guess is that the picking code is returning incorrect values, making the cameraController jump around.

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