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
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.
Adding the 3dtileset directly using
viewer.scene.primitives.addworks.Reproduction steps
...
Sandcastle example
No response
Environment
Browser:
CesiumJS Version:
Operating System:
AI acknowledgment