How to check if an object (point 3) is within camera's FOV?
I want to check if the object is visible through a given camera.
Preferably if I could manually set a new FOV angle just for the test.
I found a way by doing a semi rendering from the viewport converting point3 data to x,y coordinates in view space, but this requires the camera to use the actual viewport :(
I'm also thinking of building a cone that would mimic the camera cone and check ray intersections with it, but I have to give the cone a height and make sure it encompases the entire scene :(
Does anyone know of a simpler way?