jpummill

04-07-2002, 12:31 PM

Hi All,

I am trying to figure out the math used to calculate the number of pixels seen given a specific camera position, and field of view.

For example, First my camera is at 0,0,-5 and I am looking at 0,0,0 and Y is up. Second, my FOV is 80 degrees. Third, all objects/pixels are drawn on the x,y plane at a Z depth of 0. Fouth, my screen resolution is 1024*768 (not sure this is important).

How would I calculate the X position where an object would enter my FOV and the X position where it would leave my FOV. Then calculate the same for Y?

Any help is appreciated!

jpummill

I am trying to figure out the math used to calculate the number of pixels seen given a specific camera position, and field of view.

For example, First my camera is at 0,0,-5 and I am looking at 0,0,0 and Y is up. Second, my FOV is 80 degrees. Third, all objects/pixels are drawn on the x,y plane at a Z depth of 0. Fouth, my screen resolution is 1024*768 (not sure this is important).

How would I calculate the X position where an object would enter my FOV and the X position where it would leave my FOV. Then calculate the same for Y?

Any help is appreciated!

jpummill