I hope i am posting this in correct forum.
I am preprocessing a DEM to split and will later be loaded into a 3D modeling program. Due to the large size, this all must be done before loading into the program.
I have a series of points in 3D Cartesian coordinates. Each point also has rotation values of the camera. So i know the position in 3D space of the camera and the direction it is pointing.
What I am trying to do is calculate the coordinates of the bounding box corners of the rectangle that is projected onto the surface.
What is proving to be problematic for me is that i only know limited information in the problem.
In the below image(sorry for my terrible artwork) I know the following information
P = (x, y, z)
R = (x, y, 0)
S = simple geometry
Camera Settings: For the purposes of this question we will assume the following
1) Camera Orientation is at a -45 degree angle from the plane point P is on
2) Focal Length is 44mm
3) Field of View is 40 degrees
4) Sensor Size is 32mm
5) Aspect Ratio is 16:9
If it simplifies things. We can assume that point P is the beginning of the rays PA, PB, PC, and PD.
I need to find the coordinates for A, B, C, D.
Note: The cube does not exist. It just helps frame the problem
Picture showing what I am doing
Possible/Not Enough Information. I am continuing to work on filling in more data to hopefully simplify the problem.
Thank you for your help
Update:
I updated the picture with some additional information. The blue triangles are what is shown in this second picture
I am trying to tackle this by finding the center of the projection.
To do so I am using a 45 degree angle of the camera from the Plane containing point P.
The point PW is a ray from the center of the camera to the center of projection.
This gives me the distance to the point from both point R and point P.
Where I am stuck now is visible in the second picture.
On the red triangle, I only know the hypotenuse and point R. I feel like I am overlooking something simple here to get coordinates of point W.