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

Thin-lens CoC

This topic is 3031 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!