scene.pick get wrong result at same position
- Dominant language
- JavaScript
- Stars
- 15.7k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
I‘m trying to get entity by scene.pick。 I found that sometimes it get wrong result.
i use code like:
`
setInputAction(function(event) {
console.log(event.position)
let model = viewer.scene.pick(event.position);
if (model && model.id) {
console.log(model.id.id)
}
}, ScreenSpaceEventType.LEFT_DOWN)
`
In the map, i clicked green position three times

then i got three different entity:

Is there something I did wrong?
Contributor guide
Research direction
Start with the reported viewer.scene.pick call inside setInputAction for ScreenSpaceEventType.LEFT_DOWN, using the supplied event-position logging and screenshots as the reproduction basis. Investigate why repeated clicks at the same visible position return different entities, and establish whether the behavior is reproducible and what result should be considered correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100