POV-Ray : Newsgroups : povray.animations : Moving the camera in a circle : Re: Moving the camera in a circle Server Time
27 Sep 2024 18:18:50 EDT (-0400)
  Re: Moving the camera in a circle  
From: Warp
Date: 21 Jun 2004 13:56:23
Message: <40d72147@news.povray.org>
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? ;)

  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)>;

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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