Skip to content

There is a problem with drillPickFromRayMostDetailed #13360

@DoubleYellowEgg

Description

@DoubleYellowEgg

What happened?

When I load a 3dtileset using a new PrimitiveCollection, I can't pick the coordinates on the 3dtileset using drillPickFromRayMostDetailed. However, when I load the 3dtileset directly using the viewer.scene.primitives.add() method, I can pick the coordinates.

The following method fails to pick the coordinates.

const collection = new Cesium.PrimitiveCollection();
scene.primitives.add(collection);  // Add collection
const tileset = await Cesium.Cesium3DTileset.fromUrl(
   "http://localhost:8002/tilesets/Seattle/tileset.json"
);
 collection .add(tileset);

scene.drillPickFromRayMostDetailed(ray)  => no Cesium3dtileset

Adding the 3dtileset directly using viewer.scene.primitives.add works.

const tileset = await Cesium.Cesium3DTileset.fromUrl(
   "http://localhost:8002/tilesets/Seattle/tileset.json"
);
scene.primitives.add(tileset );

scene.drillPickFromRayMostDetailed(ray)  => yes Cesium3dtileset

Reproduction steps

...

Sandcastle example

No response

Environment

Browser:
CesiumJS Version:
Operating System:

AI acknowledgment

  • I used AI to generate this issue report.
  • (If the above is checked) I have reviewed the AI-generated content before submitting.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions