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.
Flag waving in the wind
Moderators: Víctor Paredes, Belgarath, slowtiger
- Lost Marble
- Site Admin
- Posts: 2347
- Joined: Tue Aug 03, 2004 6:02 pm
- Location: Scotts Valley, California, USA
- Contact:
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
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