POV-Ray : Newsgroups : povray.newusers : animation camera problem : Re: animation camera problem Server Time
4 Nov 2024 17:34:41 EST (-0500)
  Re: animation camera problem  
From: Christopher James Huff
Date: 24 Jul 2003 12:57:21
Message: <cjameshuff-7DC62F.11572324072003@netplex.aussie.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.