POV-Ray : Newsgroups : povray.animations : A sign rotating back and forth. : Re: A sign rotating back and forth. Server Time
1 Jun 2024 09:21:56 EDT (-0400)
  Re: A sign rotating back and forth.  
From: Stephen
Date: 4 May 2006 10:15:00
Message: <web.445a0baa24781bb4c6b359800@news.povray.org>
"RusHHouR" <gee### [at] mailnu> wrote:
> Hi!
>
> I'm making a simple animation with camera sweeping over the scene.
> As usual.
>
> But I wanna go further, and make a sign (see image link below) flap
> as if winds were blowing on it.
>
> http://img223.imageshack.us/img223/9836/taggtrad9rh.jpg
>
> Image shows "skylt" rotated at x-10
>
> object {skylt
> rotate <-10,0,0>
> translate <0.2,3.9,0>}
>
> How would one do to make it flap from rotate x 5 to x -10 continously
> through the animation?
> Can this be achieved?
>


this.

object {skylt
rotate < 5 - (15*clock),0,0>
translate <0.2,3.9,0>}


If your clock goes from 0.0 to 1.0 this will rotate skylt from +5 degrees to
-10 degrees once during the animation. From there you can build on it. You
can use sin and cos functions with the clock variable.

Stephen


Post a reply to this message

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