-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
viewer.scene.globe.pick do not pick Cesium3DTileset's tile #6806
Comments
Hi @dminor112, this isn't working because In the future, please ask questions like this on the forum: https://groups.google.com/forum/?hl=en#!forum/cesium-dev |
Sorry, I was wondering if this is bug. |
@dminor112 we are currently working on that exact feature. Stay tuned! #6080 will add support for picking from a ray. |
Which release will support this feature? We are very looking forward to it. Thank you. |
It's probably too soon for 1.48, but I would guess around 1.49. |
var handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
handler.setInputAction((movement) => {
// var pickedPrimitive = viewer.scene.pick(movement.position);
var ray = viewer.scene.camera.getPickRay(movement.position);
var cartesian = viewer.scene.globe.pick(ray, viewer.scene);
if (cartesian) {
viewer.entities.add({
id: nombre.toFixed(2),
position: cartesian,
point : {
pixelSize : 10,
color : Cesium.Color.YELLOW
}
});
} else {
alert('Globe was not picked');
}
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
I want to use the code to get the intersection of a ray and a Cesium3DTileset. But get the intersection of the ray and the background tarrein. How can i get what i want?
The text was updated successfully, but these errors were encountered: