-
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
Fix pickPosition called after sampleHeight #7113
Conversation
Thanks for the pull request @lilleyse!
Reviewers, don't forget to make sure that:
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
0f17afe
to
b30ed2e
Compare
Updated. @bagnell could you review? |
Also @ggetz can you test this in the demo where you first ran into this problem? |
I'm still having problems picking when zoomed in close to the entity in this example When the camera is close to the entity, it doesn't work at all. At a medium zoom level, it works at positions that are far enough from the camera. It works fine when the camera is zoomed out far enough. Could it be a picking frustum issue? |
That might be a different problem related to the label offsets. I see it too when |
@lilleyse Got it. I'm not running into any other picking problems here, and this also resolves the issue with the original tileset I saw. Thanks! |
Merged in master. @bagnell could you review? |
Fixes #7111
If the previous pass was a
sampleHeight
call the state would be wrong for thepickPosition
call. This resetsframeState
anduniformState
inpickPosition
.Specifically
SceneTransforms.drawingBufferToWgs84Coordinates
requires log depth and inverse view projection to be correct.Slightly modified demo as #711 I used for testing: localhost:8080 link
pickTranslucentDepth
really requires a manualscene.render
call. It should be able to do something similar to this I think.CHANGES.md