Skip to content
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

I found a bug maybe? #11043

Closed
worldpeaceenginelabs opened this issue Jan 19, 2023 · 1 comment
Closed

I found a bug maybe? #11043

worldpeaceenginelabs opened this issue Jan 19, 2023 · 1 comment

Comments

@worldpeaceenginelabs
Copy link

Watch this video, please. https://twitter.com/peace_engine/status/1615317374009511937
Notice that when i click on the map, it draws a dot. (normal)
But sometimes, in between, the dot gets rendered somewhere else, instead of the location i clicked.

File: METAVERSE-DAO_CLOUD-ATLAS/Cesium.svelte at master · worldpeaceenginelabs/METAVERSE-DAO_CLOUD-ATLAS · GitHub (well commented, dot and sync function at the end, its JS/Typescript but nothing Svelte specific except the bind:value )

Can you confirm and reproduce maybe?
Is that a known Cesium bug maybe?

@ggetz
Copy link
Contributor

ggetz commented Jan 19, 2023

Based on the video and your app code, it looks like you're seeing an issue with the pickPosition function returning the wrong position, right?

If that's the case, you're likely running into #4368. The workaround for your case would be to use either scene.camera.pickEllipsoid if you don't have terrain or scene.globe.pick if you do have terrain.

I'll close this issue as a duplicate, and add your report to the original issue. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants