Page 1 of 1

Create waving flag with flagpole

Posted: 2007-03-25T14:39:18-07:00
by StevenW
Hi!

I'm trying to create a waving flag with a flag pole. I have two gif files (flag + flagpole).
But it didn't really work.

Does someone has got an idea? Or an example?

Thanks!

Steven

Re: Create waving flag with flagpole

Posted: 2007-03-25T18:17:38-07:00
by anthony
As a start point look at...
IM Examples, distortion anaimtions
http://www.imagemagick.org/Usage/distorts/#animations

I have a simple waving image and a link to the script that generates it.
The script needs some work to figure out the vertical offset for each frame
so the left edge does not move.

Adding a little highlight and shadow to the wave image could also make it look more realistic too.

It could go further with a diagonal wave, though how you would join that to a flag pole could be a bigger problem, as flags don't use a linear wave but one that curves.

If you come up with something please let me, the forum, know and hopefully contribute your result back.

Re: Create waving flag with flagpole

Posted: 2007-03-26T09:50:17-07:00
by StevenW
Thanks.
I know that example.
And you are right, I have got the problems with the flag pole. I will try further...