Next: Ray Casting algorithm
Up: Ray Caster
Previous: Ray Caster
Camera Model
The Camera model is defined as follows:
The camera is by default looking down positive z, at the image plane
at
The distance from the image plane to the camera is
the focal length f. The far plane can be placed at any
To Transform points from quaternion coordinates to camera coordinates, the following
transformation is applied:
- pc
- The point in camera coordinates.
- Rc
- The camera rotation matrix. This matrix rotates the camera. It
is applied after the camera has been translated to the origin so that rotation
is about the projection point.
- Rq
- The quaternion fractal rotation matrix. It is applied when the
julia set is centered at the origin.
- Sq
- The fractal scaling matrix. It is also applied when the julia
set is centered at the origin.
- pq
- Quaternion point. The point
defines a quaternion
- Tq
- The quaternion translation vector. This is applied after rotating
and scaling pq.
- Tc
- Camera translation vector.
This is used to rotate the camera by translating the projection center to the
origin.
-
Next: Ray Casting algorithm
Up: Ray Caster
Previous: Ray Caster
brian martin
1999-06-23