POV-Ray : Newsgroups : povray.text.tutorials : Using the sin fuction to move the camera : Re: Using the sin fuction to move the camera Server Time
1 May 2024 18:25:00 EDT (-0400)
  Re: Using the sin fuction to move the camera  
From: Chris Huff
Date: 26 Oct 1999 19:17:59
Message: <38163737.390A40E2@yahoo.com>
#declare frequency = 3;
#declare amplitude = 1;
#declare distance = 10;
#declare height = 1;

camera {
    location < sin(radians(clock*360*frequency)), height, clock*distance
- distance>
...other camera stuff...
}

Note that if you want the point the camera looks at to move, you would
have to modify it too. Actually, it would be better to use translate in
that case.
camera {
    location blahblah
    look_at blahblah
...other camera stuff...
    translate < sin(radians(clock*360*frequency)), height,
clock*distance - distance>
}


Post a reply to this message

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