camera's position jump to the opposite side of the Earth when zooming in

Hi everyone

I update my Cesium to 1.28, but every time when I zoom in, the camera will jump to the other side of the globe.

I don’t know if it is a bug of Cesium itself.

Does any one have the same problem?

Thanks

Chris

For reference, zooming is OK in Firefox, but not in Chrome (55.0.2883.87 m).

在 2016年12月13日星期二 UTC+8下午7:55:52,Chris Wang写道:

Hi Chris,

I haven’t seen this problem. Have you tried clearing your cache/cookies? Sometimes that has weird side effects when switching between version of Cesium.

If that doesn’t fix the problem, can you tell me what OS you are using? Also, are you zooming using the right mouse button or the scroll wheel?

Thanks,

Hannah

Hi Hannah

I clear the cookies but the problem still exists.
I use Win10 and the problem appears when I use zooming

Thanks.

在 2016年12月14日星期三 UTC+8上午1:17:07,Hannah Pinkos写道:

I have the same issue on Windows 10 and OSX in Chrome 54 & 55 using the scroll wheel. The camera randomly jumps to the other side of the planet.

Do you have instructions for consistently reproducing this problem? That would make it a lot easier for us to figure out what is happening. I still haven’t been able to reproduce this.

Thanks,

Hannah

Hi Hannah,

For me it happens over 90% of the time that I zoom in on the corridor on the clamp to ground example, however I cannot get it to happen on Windows.

When I zoom into terrain in Chrome on a Windows machine the zoom speed slows as I get closer to the earth. If I do it on my Mac it does not slow as you get closer and ends up shooting straight through the earth.

  1. Go to the following link in Chrome on an OS X machine:

http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Ground%20Clamping.html&label=Showcases

  1. Select ‘Draw corridor’

  2. Change the camera angle to be looking straight down (90 degrees) at the corridor and zoom as quickly as you can into the corridor using a laptop trackpad, or mouse with smooth scroll (ie logitech mouse with free-spinning mode). I can get the issue to occur occasionally with a standard scroll wheel, but more like 10% of the time.

Almost every time I do this it will go through the earth to the other side, and occasionally another weird bug seems to happen after glitching through the earth where zoom will now scroll the view sideways instead of zoom in and out, even if the camera is nowhere near the earth.

Note that this also seems to happen with the polygon/rectangle examples.

I**'ve recorded a video to show what I mean**: https://www.youtube.com/watch?v=92_hFjYItLc&feature=youtu.be&hd=1

Thanks for your time.

Thanks for all of the information! That video should be helpful.
I’ve created an issue on our github here so someone on our team with a Mac can look into it: https://github.com/AnalyticalGraphicsInc/cesium/issues/4855

Best,

Hannah

I’ve seen this as well. I think this was introduced in 26 or 27 though. Hope this helps! I thought we were doing something strange to the camera to change the state of the camera.

Hanna,

I can reproduce this issue every time in Windows 7 with Chrome. It never happens in Firefox, so I thought it was a Chrome issue. The version of Chrome I’m using is 55.0.2883.87.

Alberto

Thanks Scott, Alberto. I’ve added a note to the issue saying a number of other users have seen this problem.

-Hannah