|
![](/i/fill.gif) |
Mike Varley wrote:
> Hi Folks
>
> I'm doing some basic animation with povray (3.1) and I want to move the
> camera in a circle. Any ideas on the best way to do this using the clock
> variable. Can you use trig functions in Povray? I'm sure there's a
> better way to do it.
>
> Mike Varley
> mik### [at] nacstock ac uk
The simplest method of animating a clock in a circle is by first
positioning it in a place away from the origin and then applying
a rotation command to it.
example:
camera{
location <0,0,-10>
look_at 0
rotate 360*y*clock
}
This will rotate the camera around the y axis keeping the camera pointed at xyz = 0
If you wanted to have your camera to stay located at -z but rotate in
a circle about the z axis still looking at xyz = 0 (point your arm straight
out and inscribe a circle in the air) you could try something like this:
camera{
location <-10,0,0>
look_at 0
rotate 360*z*clock
translate z*-10
}
Might look a little dizzying but it show the possibilities.
These are the simple methods to achieve what you asked. But since
you are also interested in possible trig functions I will bow out at this
point and let some of the math heads that frequent this group have
their say.
My approach may be simple but it does work.
Theirs will be complicated but will achieve the same results.
Its' your choice.
--
Ken Tyler
tyl### [at] pacbell net
Post a reply to this message
|
![](/i/fill.gif) |