New Default Camera Behavior - Call for Feedback

Hey everyone,

Something that I’ve personally struggled with in CesiumJS in the past is losing a model while I was inspecting it. I’d accidentally click on the horizon/behind the model and I’d pan far away like in the GIF below, and then have a hard time getting back.

camera_old.gif

We know this is something people have expressed frustration with before, so we’d love to hear your thoughts on ways to improve this! Currently, this proposed PR causes the camera to no longer pan in the direction it’s facing when below a certain height:

So if I accidentally click on the horizon, it just pans up/down/left/right as you can see below.

camera_new_optimized.gif

The catch now is to move forward you would have to zoom.

Here’s an example of the original behavior:

And here’s that same example with the new camera:

http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/camera-close-to-tileset/Apps/Sandcastle/?src=3D%20Tiles%20BIM.html

Is this better or worse? It would be great to hear how this feels in your projects and applications. You can try any example on that second Sandcastle link, or try it with your own code, to see how it feels.

Here are some examples to try as well:

If the GIFs aren’t playing, here they are, current vs new: