thinlens Element Reference

Thin lens camera approximation supporting common camera inputs and allowing for depth of field. More...

Inheritance diagram for thinlens:

camera

List of all members.

Attributes

vector3 eye
 Camera location (position of eye).
vector3 focus
 Point where the camera should point towards (implicitly specifying look vector).
vector3 look
 Camera look direction.
vector3 up
 Camera up direction (orients camera).
real_t heightAngle
 Vertical height angle of camera frustum.
real_t aspectRatio
 Aspect ratio of camera frustum.
real_t near
 Near clipping plane for OpenGL preview.
real_t far
 Far clipping plane for OpenGL preview.
ureal_t aperture
 diameter of the aperature of the lens in mm (eg. 35mm, 50mm)
ureal_t fstop
 (aka F number), is defined as the unitless ratio of the focal length to the diameter of the aperture of the lens
ureal_t focalDistance
 the distance in meters between the lens and the focal plane (objects lying on the focal plane will be in perfect focus)
vector2 focalPoint
 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.


Detailed Description

Thin lens camera approximation supporting common camera inputs and allowing for depth of field.

Note:
thinlens corresponds to the underlying Milton class 'ThinLensCamera.'

Example usage:

"camera" : {
"type" : "thinlens",
"eye" : [ 2, 2, 1 ],
"up" : [ 0, 1, 0 ],

"aperture" : 35,
"fstop" : 18,
},

Attribute Documentation

vector3 thinlens::eye

Camera location (position of eye).

typevector3
optionaltrue
default2,2,1

vector3 thinlens::focus

Point where the camera should point towards (implicitly specifying look vector).

typevector3
optionaltrue
defaultorigin

vector3 thinlens::look

Camera look direction.

Note:
If "focus" is specified, it will override the value of "look"
typevector3
optionaltrue
defaulttowards origin

vector3 thinlens::up

Camera up direction (orients camera).

typevector3
optionaltrue
default0,1,0
restrictionsMust not be collinear to look vector

Vertical height angle of camera frustum.

typereal scalar
optionaltrue
default45
unitsdegrees

Aspect ratio of camera frustum.

typereal scalar
optionaltrue
default1

Near clipping plane for OpenGL preview.

typereal scalar
optionaltrue
default1

real_t thinlens::far

Far clipping plane for OpenGL preview.

typereal scalar
optionaltrue
default100

diameter of the aperature of the lens in mm (eg. 35mm, 50mm)

typepositive real scalar
optionaltrue
default35
unitsmm

ureal_t thinlens::fstop

(aka F number), is defined as the unitless ratio of the focal length to the diameter of the aperture of the lens

typepositive real scalar
optionaltrue
default14
unitsunitless

the distance in meters between the lens and the focal plane (objects lying on the focal plane will be in perfect focus)

Note:
if a valid focalPoint is specified, it will override focalDistance; focalPoint will often be easier to specify if you're trying to focus on a particular object in the scene
typepositive real scalar
optionaltrue
unitsmeters

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 upper left corner of the image, and [1,1] is the lower right corner,if a valid focalPoint is specified, it will override focalDistance
typevector2
optionaltrue
default0.5,0.5
unitsunitless


Generated on 28 Feb 2009 for MiltonScenefileFormat by doxygen 1.5.6