Previous:Up and Right Vectors   Main Index   Next:Types of Projection



Transforming the Camera

The various transformations such as translate and rotate modifiers can re-position the camera once you've defined it. For example:

 camera {

  location < 0, 0, 0>

  direction < 0, 0, 1>

  up    < 0, 1, 0>

  right   < 1, 0, 0>

  rotate  <30, 60, 30>

  translate < 5, 3, 4>

 }

In this example, the camera is created, then rotated by 30 degrees about the x-axis, 60 degrees about the y-axis and 30 degrees about the z-axis, then translated to another point in space.



Previous:Up and Right Vectors   Main Index   Next:Types of Projection