Is there a way to check if a coordinate is visible by the camera?

1. A concise explanation of the problem you’re experiencing.

I am trying to check if a coordinate is visible by the camera.

I tried using the viewer.camera.computeViewRectangle. That works only when the camera is directly pointed down. It doesn’t work correctly the camera is at an angle (e.g it’s hard to fit a bounding box to a scene in the attached image).

I also tried using the EllipsoidalOccluder. But that also fails when there is a pitch. It basically only tells if a point is below the horizon, but in every direction. It doesn’t take the direction of the camera into account. So it still shows coordinates as being visible if they are behind the camera but not below the horizon.

I know it gets tricky when the camera has a pitch. But is there another way of checking if a point is visible from the camera?

Thanks,

Sam

4. The Cesium version you’re using, your operating system and browser.

Cesium 1.50.0, Windows 10, Chrome