POV-Ray : Newsgroups : povray.animations : Moving the camera in a circle : Re: Moving the camera in a circle Server Time
27 Sep 2024 18:14:23 EDT (-0400)
  Re: Moving the camera in a circle  
From: Rune
Date: 22 Jun 2004 10:37:34
Message: <40d8442e@news.povray.org>
Warp wrote:
> Manawydan 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

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

An alternative method:

#declare CameraLocation = vrotate(-z,360*y*clock)*<12,0,13>;

Rune
--
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com **updated Apr 27**
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

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