-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Picking near Earth sphere border returns pickIds equal to 255, 65535 which is being misinterpreted as object pick #4783
Comments
Setting |
I added debug logging to Context.getObjectByPickColor and see that with SkyAtmosphere enabled points near Earth sphere edge returns color 255, closer to center color 65535. This also explains behavior in #4784 bug: hiding of mispicked item doesn't do anything and Cesium in infinite loop tries to hide object with pickId 255 and repick. |
Take a look at the following example:
It displays points in [0, 10]x[0, 10] degrees square and on mouse move tries to pick entity under mouse cursor --- if there is any, outputs mouse coordinates in the log.
Since all points in [0, 10]x[0, 10] degrees square it is expected that points will be picked only in it, which is not the case --- if I move mouse near Earth sphere border I get some points selected:
(notice that last two columns in the log are selected point coordinates, and they are far outside [0, 10]x[0, 10] degrees square).
Same issue with polylines entities picking (and probably other entities types).
If I reduce number of entities to 253 or less I can't reproduce this issue.
Tested in CesiumJS 1.28 in Firefox Developer Edition 52.0a2 and Chromium 55.0.2883.87 on Ubuntu 16.04 with NVidia GTX 980 with NVidia proprietary drivers 367.57.
The text was updated successfully, but these errors were encountered: