POV-Ray : Newsgroups : povray.binaries.animations : flapping butterfly : Re: flapping butterfly Server Time
19 Jul 2024 00:57:27 EDT (-0400)
  Re: flapping butterfly  
From: andrel
Date: 5 Feb 2004 15:54:30
Message: <4022AD41.9000401@hotmail.com>
Andrew Wilcox wrote:
> Next you should try making a looping animation with some acceleration and
> deceleration near the end points.
> 
> #macro animSin(C)          sin(2*pi*C)
> #macro animSin01(C)  (animSin(C-0.25)+1)/2
That is an interesting way to make a cosine ;)

> I assume you have some place in your code that does:
> 
>     rotate <0, 0, 90*clock>

No, I have not (see source in pbs-f)
I am afraid it was a lot more work than that.

> try:
> 
>     rotate <0, 0, 90*animSin01(clock)>
No:

  Atalanta(animSin01(clock))

It looks reasonable. I am sure the wings do not
move like a sinusoid, but my brain does not
object to this movement as unrealistic.
I probably would have tried something more
complicated then a pure sinusoid myself, so
thanks for preventing another level of complexity.

> oh, and double your frame count, if you do this.

No to make it even remotely behaving like a butterfly
I have increase the framerate and then at 32 frames
30 frames per second it still is in slow motion.

Thanks for your comment.

     Andrel


Post a reply to this message

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