POV-Ray : Newsgroups : povray.general : Moving a camera in a circle : Re: Moving a camera in a circle Server Time
12 Aug 2024 19:34:58 EDT (-0400)
  Re: Moving a camera in a circle  
From: Ken
Date: 13 Jan 1999 12:53:26
Message: <369CDD1B.4F18B380@pacbell.net>
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] nacstockacuk

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] pacbellnet


Post a reply to this message

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