-
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
scene.pickPosition
cannot accurately pick the correct position in underground mode.
#12268
Comments
scene.pickPosition
cannot accurately pick the correct location in underground mode.scene.pickPosition
cannot accurately pick the correct position in underground mode.
Hi @wumanho, what are you attempting to pick in this example? The terrain or the pipes beneath it? What values are you expecting see? |
Hi @ggetz , sorry, I didn't explain it clearly before. I am trying to pick the latitude, longitude, and height of the terrain. When I set the alpha value of the right panel to 1, I can get the expected terrain position, and the console logs numbers around 200, representing the terrain height. However, if the alpha value is less than 1, the position I get is not what I expect, and the console shows height values like -10000. The other problem I got is enabling Thank you very much for your help. |
Thanks for the explanation! Ah yes, you will need to set It seems that I am not able to reproduce the crash on my end. I have ensured @wumanho Would you be able to:
|
What happened?
When I try to enable underground mode based on a Sandcastle example, I find that using
pickPosition
in events such asCesium.ScreenSpaceEventType.MOUSE_MOVE
andCesium.ScreenSpaceEventType.LEFT_CLICK
does not return the correct latitude and longitude coordinates.And if set the option
viewer.scene.pickTranslucentDepth = true
, pickPosition seems to work correctly, but rotating the camera view results in a render error.Please refer to the Sandcastle example I provide below for the reproduction. Thank you.
Reproduction steps
scene.globe.translucency.enabled = true
Cesium.ScreenSpaceEventType.MOUSE_MOVE
Sandcastle example
https://sandcastle.cesium.com/index.html#c=tVj7c9vGEf5XWPUHUzPU6XAP3B2tOLVlpfbUsjyR4kym6nRAAhIxBgEOAEpmM/7f++3hQRJU0jhN/BgC99j3fruLeZFX9eghTR6TcvTNKE8eR+dJla6X7KNfG98ezf37eZHXUZon5e3RZPTzbT4a1UlZYmXaXbhp3tldWSx/LMosbhfGx5Pb/Mvx89v8Nj89bXmxap7kCVul8083ZZRX2Rrv9etkVS8gRl2uk9t87mVbRHmcDYW7npdJkl+vonly8YCLb5pD4z3i8yh/iK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7PiM0wAYIxOZije3XLTixwUtR0FWopDxlgof4MS38Gfo9lmFLdF4U9RYFB3/ijZr6nYPPji4vn+KbLvF7A/THZfr3+XwAiGe9gQWZ7jDchGz9FnPAf+uaqTld8IBio9UD/Q1vjJyL/94CvxdPTMc3h2oN2Qd518rokFkhNv+lcYfLWh8LqXd3jfSczdbP4v
Environment
Browser: Chrome 120.0.6099.200 & Edge 118.0.2088.76
CesiumJS Version: 1.95.0 & 1.122.0
Operating System: Windows 11
The text was updated successfully, but these errors were encountered: