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 is rotating without user interaction #11877

Open
javagl opened this issue Mar 11, 2024 · 0 comments
Open

Camera is rotating without user interaction #11877

javagl opened this issue Mar 11, 2024 · 0 comments

Comments

@javagl
Copy link
Contributor

javagl commented Mar 11, 2024

What happened?

When loading a model (e.g. a GLB) at the origin and looking at it, then the camera moves/rotates without any user interaction.

It does not happen when globe:false is set.

It does happen when manually setting the camera with camera.lookAt (unless the target is (0,0,0)), and it also happens when setting viewer.trackedEntity = entity;.

The movement seems to be a bit ... unsteady and "random". In fact, with the sandcastle below, the camera is slowly rotating, and after ~30 seconds, it screws up the orientation in a way so that the model is no longer visible...

Reproduction steps

Do nothing 😁

(After opening the sandcastle below...)

Sandcastle example

https://sandcastle.cesium.com/index.html#c=fVJRa8IwEP4roU8tlEQZe6mdTNzeBmMIewqMtD1dME0kSRU3/O+7JtbplL2Uu8t93333XWujnSdbCTuw5IFo2JE5ONm19D3UUp7UIZ8b7YXUYHmSk2+uCWFspUwFBVkK5YDrQzbhmus6MHZWIR1PKGUL0W4UPAkvWGsaUI7FCTNpj9EHhnSlKp5MBvzGOOml0Zea5sJ6jIS+S0d0lJPhk51wxkpAodfQt054sBrrl9CcjCN+YEC49HsER1NoyCU4KpomDYtr0eLWuGHeZ4PS4hSF8pmQ4jwJj8GHItpIkEn+0h3yk5NHATWOs4IqY9YznwYBtx3BfXCbLCf/9tz3fVmcwNhxhreiXkPzPOweTcCeJE9K5/cKplErIY+y3RgbLpzidT3gddFax6oOKTytnevJ+9aSnUPLRm6JbB5u/FGkVsI5fFl2Si3kF/BkWjLsv4IqIxqpV69bsErs+7bP8fQlFimlJcP0NtIboyph/zD/AA

Environment

Browser: Firefox/Chrome
CesiumJS Version: 1.115

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