ThinLensCamera.cpp File Reference
Thin lens camera approximation supporting common camera inputs and allowing for depth of field. More...
#include "ThinLensCamera.h"
#include <ResourceManager.h>
#include <Material.h>
#include <Viewport.h>
#include <Scene.h>
#include <algebra.h>
#include <QtCore>
Go to the source code of this file.
Detailed Description
Thin lens camera approximation supporting common camera inputs and allowing for depth of field.
- Date:
- January 2008
- Parameters:
-
aperture - diameter of the aperature of the lens in mm (eg. 35mm, 50mm) fstop - (aka F number), is defined as the unitless ratio of the focal length to the diameter of the aperture of the lens focalDistance - the distance in meters between the lens and the focal plane (objects lying on the focal plane will be in perfect focus) focalPoint - (optional) user may specify a focalPoint in NDC on the film-plane instead of specifying a focalDistance to "auto-focus" the object intersected by a ray traced through the corresponding pixel, whose distance away from the lens will be used as the focalDistance.
- Note:
- focalPoint is expressed as a vector2 in the unit square [0,1]^2, where [0,0] is the lower left corner of the image, and [1,1] is the upper-right corner
Definition in file ThinLensCamera.cpp.
Generated on 28 Feb 2009 for Milton by
1.5.6