|
|
Josh English wrote:
> <snip>
> #declare frac_clock = clock - int(clock); // The wave works between 0 and 1,
> but not between 1 and 2
> #declare wing_angle = center_angle + cos(pow(frac_clock,0.8))*amplitude;
Oops. This should be:
#declare wing_angle = center_angle + cos(2*pi*pow(frac_clock,0.8))*amplitude;
This of course gives you the rotation value you're looking for. Without that
2*pi bit you get a really strange motion.
Another thing I could add is that this gives one flap per second, if you want
more flaps per second change the frac_clock definition to:
#declare frac_clock = (clock*2) - int(clock*2); // Two Flaps per second
--
Josh English
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/
Post a reply to this message
|
|