-
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
Camera Controller can go underground #5837
Comments
@mramato If this is intended behavior, I'm fine with closing this. |
Please feel free to re-open if there is some additional context I'm missing. You might also want to follow up on the forum post. Thanks. |
Congratulations on closing the issue! I found these Cesium forum links in the comments above: https://groups.google.com/forum/#!topic/cesium-dev/50CK4haCIiw If this issue affects any of these threads, please post a comment like the following:
I am a bot who helps you make Cesium awesome! Thanks again. |
#5603 absolutely caused a change in behavior. I commented in #5603 but I'll copy it here:
|
Any update on this issue? |
@ZacBrownBand, no additional updates. If you could contribute a fix, or continue to narrow down what the problem is, it would help move things along and we would greatly appreciate it! |
@ZacBrownBand, I created #6012 which also fixes this. |
Reported on the forum: https://groups.google.com/forum/#!topic/cesium-dev/cPbtbShkSOQ |
Reported on the forum: https://groups.google.com/forum/#!topic/cesium-dev/Sn5R5FzOr1k |
Reported on the forum: https://groups.google.com/forum/#!topic/cesium-dev/TDMwlbT0xBE |
Also reported by @miniergouzi in #6856 |
Reported in this forum thread with a video and how to recreate. |
Came up again in the context of navigating around a point cloud and ending up underground accidentally. I'm curious if anyone knows of any workarounds for this. |
@lilleyse the problem is pretty nuanced, You can modify the end of Camera.update to always set |
We also tweaked this behavior in master to be better, so I would try that out if you aren't already. |
Yeah I can see some of the tradeoffs. That workaround is good for the case I'm describing. It would be nice if the camera could apply terrain adjustment if being acted upon by the user but otherwise not. The details may be more complicated than that though. |
I think the adjustment for terrain would be better if it were invoked by the ScreenSpaceCameraController instead of the camera itself. When programmatically controlling the camera, you don't want the camera doing things you didn't tell it explicitly to do. So the responsibility is ill-placed, it should be with the user control of the camera. Meanwhile this can fixed like so: var viewer = new Cesium.Viewer('cesiumContainer'); viewer.camera.changed.addEventListener( |
This problem occurs when the mouse pulley is indented. |
@miniergouzi my fix should help, but is not a complete solution. You can still go under the terrain, it just recovers much faster. One thing I did was to also limit the pitch, which is fine for my particular application. You could also add a min zoom distance, if that is acceptable in your application. I can't see the full stack trace and I have not seen that problem. What browser/version are you using? Can you provide the complete stack trace? |
That's work great! it fix the problem. |
I'm still able to get the camera to go under the terrain in Cesium v1.55. Is the fix mentioned by @bmr74 going to be permanent? Seems incorrect to use 'private' class members. |
I still have this problem with the latest version. In the default exemple, just press the center button on a mouse, drag the mouse around, and release, you will have such a wierd view that was not at all what is intended to be. |
@bmr74 your answer does work,Strong! |
Congratulations on closing the issue! I found these Cesium forum links in the comments above: https://groups.google.com/forum/#!topic/cesium-dev/50CK4haCIiw If this issue affects any of these threads, please post a comment like the following:
|
Move the camera while terrain is still loading in:
Appeared after #5603
Reported on the forum: https://groups.google.com/forum/#!topic/cesium-dev/50CK4haCIiw
The text was updated successfully, but these errors were encountered: