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 11:15:14 EDT (-0400)
  Re: Using the sin fuction to move the camera  
From: TigerHawk
Date: 5 Nov 1999 19:56:54
Message: <38237D01.FB52F3EA@stic.net>
Thanks a bunch for the help - it still looks rather foreign to me, but it
looks fairly easy to work with. I am assuming then it'd be easy to move the
camera in a circle as well?  (one wouldn't use a sin function for that,
though, heh).

Happy tracing (to all who responded),
Tim Soderstrom
TigerHawk

Chris Huff wrote:

> #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.