-
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
drillPick doesn't play well with pickPosition on 3D tilesets #5622
Comments
This might be the same issue as #4368. Is it definitely just tilesets having this problem? |
Not 100% sure, but I've only been able to reproduce it with tilesets |
@bagnell to clarify my use case, I have a polyline that follows around the mouse pointer, but I want to click a building in a 3D tileset. Sometimes using |
The problem here is that A workaround would be to explicitly call |
Is there a reason |
We wouldn't want |
@emackey is right, we could track if it is dirty and re-render before other operations but that is still probably not what you want. If you render after a |
Just found this issue after getting stuck for a few hours. Calling viewer.scene.render() after "drillPick" does the trick, but it's just impossible to guess. Click on "use drillPick as well" to see the height of the "pickPosition" change (it gives the height of the ellipsoid instead). |
In the following code example, I keep getting negative heights when picking tileset features. It doesn't happen all of the time, but if you move the camera around a little bit it happens within a few clicks. This does not seem to happen when i use
scene.pick
instead ofpickPosition
. Also, when the camera is more tilted showing the horizon, sometimes picking stops working entirely.The text was updated successfully, but these errors were encountered: