Jump to content
  • Advertisement
Sign in to follow this  
Thomas M

Thin-lens CoC

This topic is 2953 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,

i'm trying to do DOF based on the thin lens model:


Based on camera parameters (focal length F, aperture number n, focal plane distance P) the distance between the image plane and the lens is given.

If I want to compute the screen-space CoC, from where should I render the scene?

My first idea was to put the camera behind the image plane and set the near plane as my image plane. D in the figure should be linear eye-space Z - V_p in this case. C (diameter of CoC) can be then computed for every fragment based on D and the camera parameters. Then I would compute the CoC in screen-space coords by dividing C by the near-plane size... I have trouble though figuring out if this is correct.

Thanks~

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!