CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.73k stars 3.45k forks source link

Camera glitches in orthographic projection mode #11743

Open javagl opened 8 months ago

javagl commented 8 months ago

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:

Cesium Projection Camera Glitch

Edit:

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

ggetz commented 8 months ago

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