|
|
In article <d-m### [at] netplexaussieorg>,
Dawn McKnight <d-m### [at] coxnet> wrote:
> camera {
> location <-6, 3, -100>
> translate 200*clock*z
> look_at 0
> }
>
> But, instead of the camera twisting to look at the origin as it goes, it
> keeps pointing along the same vector. Why is it doing that?
Camera transformations are taken into account after the rest of the
camera statements, to avoid ambiguities in the camera specification, so
what you are doing is translating the entire camera, the same as:
camera {
location <-6, 3, -100>
look_at 0
translate 200*clock*z
}
You want to translate the location point instead.
camera {
location <-6, 3, -100> + 200*clock*z
look_at 0
}
If you want to use a more complex transformation, look at the
vtransform() macro in transforms.inc.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|
|