POV-Ray : Newsgroups : povray.general : Flapping wings? : Re: Flapping wings? Server Time
20 Nov 2024 06:24:14 EST (-0500)
  Re: Flapping wings?  
From: Trevor Quayle
Date: 12 Oct 2001 09:28:19
Message: <3bc6eff3$1@news.povray.org>
Of course, if you leave the clock setting as is, it runs from 0 to 1 so if
you render a movie with 100 frames and then again with 200 frames, the
flapping speed in the second movie will be half that of the first, perhaps
it's better to use frame_number, to keep it consistent no matter what the
length of the animation. But it really depends on the situation.

-tgq


"Bill DeWitt" <bde### [at] cflrrcom> wrote in message
news:3bc6edd0@news.povray.org...
> // more like this
> ////////////// Camera //////////////////////
> camera {                                  //
>         right      < -1.333, 0.0, 0.0 >   //
>         up         <  0.0, 1.0, 0.0 >     //
>         direction  <  0.0, 0.0, 1.0 >     //
>         location   <  5.0, 5.0, 20.0 >   //
>         look_at    <  0.0, 0.0, 0.0 >     //
>        }                                  //
> ////////////// end Camera //////////////////
>
>
> ///////////////  Light  ////////////////
> light_source { < -100.0, 100.0, 100.0 >
> color rgb < 1.0, 1.0, 1.0 > }
> ///////////////////////////////////////
> ///////////////  Light  ////////////////
> light_source { <  100.0, 100.0, 100.0 >
> color rgb < 1.0, 1.0, 1.0 > }
> ///////////////////////////////////////
>
> #declare Ydimension = 30.0;
> #declare zdimension = 60.5;
>  #declare flapSpeed=12;
>
> cylinder {
>   -3*x,  3*x,  0.5  pigment { rgb 2 }
>   translate 3*x
>       rotate <
>               0,
>               cos((clock*flapSpeed)*(2*pi))*Ydimension,
>               sin((clock*flapSpeed)*(2*pi))*zdimension >
>               }
>
>


Post a reply to this message

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