-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The camera jumps hundred of meters up after the terrain has finished loading #5999
Comments
I believe the current/desired behavior is that:
I could be wrong about 3, but we definitely need 1 and 2. If you're seeing camera height being adjusted even when the camera is already above terrain then that might be an bug. We should only adjust the height if the camera would end up under terrain. |
Yes @mramato, 3. is behaving as you describe. I undestand there are cases when the What about allowing applications to activate/desactivate that functionality? I can contribute a pull request to do that. |
With recent versions of Cesium, the camera can jump all of a sudden once the terrain has finished loading.
This new behaviour may have been caused by f401d277b#diff-6298b280e4e0977bedd881b65b769863R352 (see the suspendTerrainAdjustment) from #4105.
(edit: I commented the
suspendTerrainAdjustment
property and the issues are fixed (going under terrain and camera jump).)Contrary to what the commit title suggest, suspending terrain adjustment occurs not only during flights, but also on any action calling Camera.setView (notably screen controls).
Previously, the camera was adjust continuously while the terrain was loading.
Current behaviour is disturbing because it can take a lot of time before all the terrain has finished loading, so the user as already started working on the globe when the globe unexpectingly moves.
Here is a Sandcastle example with an exagerated 3000m minimum zoom distance. Moving close enough to the terrain and waiting exhibits the issue:
For example, here the user was at 860m while the terrain loaded and was jumped to 3000m afterwards:
I also noticed it is now much easier to go under the terrain (with the default minimumZoomDistance of 1m of Cesium and even with a fair margin of 300m). I think it is also related to the change above:
Are this new behaviours: jumping camera and go under terrain expected?
The text was updated successfully, but these errors were encountered: