POV-Ray : Newsgroups : povray.animations : Moving the camera in a circle : Re: Moving the camera in a circle Server Time
27 Sep 2024 18:24:17 EDT (-0400)
  Re: Moving the camera in a circle  
From: Manawydan
Date: 24 Jun 2004 20:02:12
Message: <dTGyE5Gzt22AFwIG@dont.spam.me>
Hi Warp, you wrote:

>Manawydan <pov### [at] webeyefreeservecouk> wrote:
>> All I want to do is move a camera in a circle, starting at 0, 0, -13, to
>> -12, 0, 0, to 0, 0, 13, to 12, 0, 0 then back to the beginning
>
>  That isn't a circle, is it? ;)

Aye, it's just slightly out. :)

>  I won't try to explain the theoretical background behind the sin() and
>cos() functions, but I'm sure you'll figure out how they work with this
>example:
>
>// This assumes 'clock' gets values between 0 and 1 (as is the default):
>#declare Angle = clock*2*pi;
>#declare CameraLocation = <-12*sin(Angle), 0, -13*cos(Angle)>;

Thanks for the code!
-- 
Manawydan


Post a reply to this message

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