Skip to content

Undefined terrain picks in 2D/CV mode. #13083

@mzschwartz5

Description

@mzschwartz5

What happened?

In 2D / CV modes, many picks are undefined when they shouldn't be. (See comments below for more info - original issue description misattributed issue as a regression from recent PR).

This comes from the terrain picking performance PR, which now uses an incrementally constructed quadtree to accelerate picks.

1. It does not happen when the quadtree is limited to a single (root) node.
2. The fact that it does not happen in 3D mode tells me the issue is likely related to the computation or use of the 2D transform here.

edit- that... no longer seems to be true. Not sure if I'm doing something different now or then, but even if I set the maximum quadtree level to 0, the issue still occurs now.

Reproduction steps

  1. Sandcastle demo
  2. Open console
  3. Zoom out
  4. Move mouse, observe undefined logged in some regions of the map....

Sandcastle example

No response

Environment

Browser:
CesiumJS Version:
Operating System:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions