You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cesium version 1.48, Win 10 Professional, Intel HD Graphics 520 driver v23.20.16.5018. Reproduces locally on Chrome 68.0.3440.106, Firefox Quantum 61.0.2, Edge. IE not supported (Picking from the depth buffer is not supported. Check pickPositionSupported.) Also reproduced on a different computer using Firefox 61.0.2.
Cesium 1.47 and 1.44 also appear to be affected.
Problem:
When initializing the Viewer, providing false for baseLayerPicker can cause Scene.pickPosition to return an incorrect value for the provided screen x & y coordinates. If true is provided or not specified, Scene.pickPosition correctly returns the position.
My guess is that it's somehow height related, since CLAMP_TO_GROUND is also specified.
Hello @mlptownsend, thanks for submitting this issue! The problem is actually that BaseLayerPickerViewModel is secretly setting scene.globe.depthTestAgainstTerrain = true; if you pass in a terrain provider to Viewer. You can set viewer.scene.globe.depthTestAgainstTerrain = true; yourself to fix the problem.
I'm going to open up an issue to discuss whether BaseLayerPicker should be setting depthTestAgainstTerrain. I don't think that it should.
And we have an issue open here about using pickPosition without depthTestAgainstTerrain#4368
Cesium version 1.48, Win 10 Professional, Intel HD Graphics 520 driver v23.20.16.5018. Reproduces locally on Chrome 68.0.3440.106, Firefox Quantum 61.0.2, Edge. IE not supported (Picking from the depth buffer is not supported. Check pickPositionSupported.) Also reproduced on a different computer using Firefox 61.0.2.
Cesium 1.47 and 1.44 also appear to be affected.
Problem:
When initializing the Viewer, providing false for baseLayerPicker can cause Scene.pickPosition to return an incorrect value for the provided screen x & y coordinates. If true is provided or not specified, Scene.pickPosition correctly returns the position.
My guess is that it's somehow height related, since CLAMP_TO_GROUND is also specified.
Sandcastle examples:
An entity is created and its position is updated via a mouse move event handler.
Expected behavior: baseLayerPicker true
Broken: baseLayerPicker false
Broken: Drawing on Terrain sample with baseLayerPicker false
Screenshot. Mouse was moved across the Great Lakes.
The text was updated successfully, but these errors were encountered: