Classes | |
class | Camera |
The basis class for camera models. More... | |
class | Camera |
The basis class for camera models. More... | |
Functions | |
virtual bool | Camera::initialize (vec3 &position, vec3 &target, vec3 &vertical, float iar)=0 |
virtual void | Camera::eval (vec2 &uv, ray &r)=0 |
virtual void | Camera::evaln (int n, vec2 *uvs, ray *rays)=0 |
Camera describes the projection type of the view. Usual projection are planar, perspective and fish-eye. If you want to render an image taken with an EOS 100, you have to create a corresponding Camera.
virtual void Camera::eval | ( | vec2 & | uv, | |
ray & | r | |||
) | [pure virtual, inherited] |
Creates a ray from uv coordinates.
uv | the parameter for ray parametrization | |
r | the resulting ray |
virtual void Camera::evaln | ( | int | n, | |
vec2 * | uvs, | |||
ray * | rays | |||
) | [pure virtual, inherited] |
Creates n rays from uv coordinates.
n | the number of elements | |
uvs | the parameter array for ray parametrization | |
rays | the resulting rays array |
virtual bool Camera::initialize | ( | vec3 & | position, | |
vec3 & | target, | |||
vec3 & | vertical, | |||
float | iar | |||
) | [pure virtual, inherited] |
Intilialize the Camera given the view point informations.
pos | the view position | |
tri | the trihedron of the view |