• Advertisement
Sign in to follow this  

Outer bounds from camera height

This topic is 4176 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, If I have a camera at 0,0,-80 looking at 0,0,0 is there some quick and dirty formula that I can use to work out the visible outer edges of the x/y plane at 0,0,0? I realise that this should be an extension of perspective projection but for the life of me the actual code to do this eludes me at the moment :(

Share this post


Link to post
Share on other sites
Advertisement
horizontal_width = 80 * tan( horizontal_fov/2) * 2
vertical_width = 80 * tan( vertical_fov/2 ) * 2

(assuming the fov is measured from side to side)

If you have an aspect ratio, then you compute one width from the fov, and the other using the aspect ratio.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement