Flag waving in the wind

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
jorgy
Posts: 779
Joined: Sun Sep 05, 2004 8:01 pm
Location: Colorado, USA

Flag waving in the wind

Post by jorgy »

Hello,

I have been trying to get the effect of a flag waving in the wind. I'm pretty sure that to do this, I will need bones. :-)

I have been experimenting with different numbers of bones and different sizes, but I still can't seem to get it right.


Here is an example:
http://65.98.71.13/moho/flagtest.moho


What happens is this: when I move a bone, the flag doesn't curl - it just takes the "shortest" path to the end. Is it just the right combination of bone sizes, numbers, and bone strength?

Any help would be greatly appreciated.
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

What's happening is that curves can only flex where there are control points. Your flag is made of simple rectangles with only four points - one at each corner. As the corner points move, the edges will still be connected in straight lines. You need to add more points along the edges of the rectangles.

Also, I think you're using waaayyyy too many bones. Take a look at the modified file below:

http://www.lostmarble.com/misc/flagtest.moho

You may need to add even more intermediate points if you want the flag to make big motions - for more subtle waving, the points I added should be fine. By the way, an easy way to add more points is by using the Split Curves tool described at the bottom of this post:

http://www.lostmarble.com/forum/viewtopic.php?t=1068
User avatar
jorgy
Posts: 779
Joined: Sun Sep 05, 2004 8:01 pm
Location: Colorado, USA

Post by jorgy »

Lost Marble wrote:What's happening is that curves can only flex where there are control points.
Thank you so much! That's exactly what I needed!
Post Reply