Create an Animated Flag

Discover how to use the cloth simulator to create a “bloody good” flag animation.

Length:
19 minutes
Software:
Blender 2.54
Difficulty:
Beginner
Rate:
VN:F [1.9.11_1134]
Rating: 4.8/5 (29 votes cast)

In this tutorial you will discover how to:

  • Create your first cloth simulation
  • Tweak cloth settings to produce realistic results
  • ‘Pin’ a portion of cloth
  • UV unwrap an image onto cloth
  • Setup a wind object with randomized patterns

Many years ago, if you mentioned the word ‘fabric’ to a 3d artist you would have seen visible signs of nervousness. Just the thought of all that moving mesh was enough to make anyone’s stomach churn. But in 2006 the cloth simulator was born, allowing even the most amateur artist to create realistic cloth physics at the press of a button.

Like me! In 2009 I used this very feature to create the final shot in my short film The Ballad of the M4 Carbine. I’ve since received countless emails from people asking me how I did this so I thought I’d finally get around to creating a tutorial ;)

The finished result:

Hear that? That’s raw patriotism right there…

In this tutorial I’ll be walking you through the basics of cloth simulation and how to use it to create an animated waving flag. If you’re a freelancer this type of job is bound to crop up from one time or another, so it’s a good trick to have under your belt.

What creative uses can you think of for the cloth simulator? Leave a comment below :)

Download finished .blend Create an Animated Flag, 4.8 out of 5 based on 29 ratings

About Andrew Price

I like long walks on the beach and yelling out during movies. My cat's name is dog, and my dog's name is cat. I am hilarious. I like Blender.

231 Responses to “Create an Animated Flag”

  1. TRex June 12, 2011 at 3:15 pm #

    Thank you again. Here is my version of a classic,
    http://youtu.be/zvV8v3JLbGE

  2. Jamil Ahmad June 13, 2011 at 9:11 am #

    Hi all

    can any body tell me how to download this flag source codes into my site that I am preparing? I have downloaded the Blender but don’t know how to copy this flag and use some other flag.

    I am not a web expert

    Please email me also if you don’t mind
    Thank you

    Jamil Ahmad
    jamil7811@hotmail.com

  3. wreckless June 30, 2011 at 5:23 am #

    I am a first time blender user found this by chance and spent some time reading the manual before attempting the tutorial
    here is my first ever attempt at doing the tutorial sadly i could not find how to put a flagpole on or make the background move
    http://www.youtube.com/watch?v=tlIq29sWAFo

    so in the end i messed with the finished blend to make what i was trying to get although it was not the correct thing to do and i will read more tutorials and the wiki manuals i have found until i can make my own,
    i would also like to attempt to put music on it if i can find a tutorial for that
    here is the moded download blend hope you dont mind me using it Andrew
    http://www.youtube.com/watch?v=4zcCV0b71p4

  4. Kartal July 5, 2011 at 3:23 am #

    Andrew would like to ask you something: You told the flag, but how you follow that line would not show it, Is it possible to continue?

  5. Wreckless July 5, 2011 at 6:35 am #

    after attempting the tutorial and managing to m,ake a flag i tried to get background on it and a flagpole with no success
    so i downloaded andrews finished blend
    opened it in blender changed the flag image to the one i had made changed the background to the one i wanted then went in to the lines and the animation settings to make the flagpole reflect the background and look like it was on fire took some time to get what i wanted there i also changed the lighting color in all 3 lamps to match what i wanted
    hope that is what you where asking

  6. Leon July 8, 2011 at 5:31 am #

    http://www.youtube.com/watch?v=DsfL7z_Inzo Finnaly madi it Pls Thumbs Up :D

  7. Brandon July 13, 2011 at 5:52 pm #

    Hey Andrew,

    I was just wanting to know how to make proper clothing like say, a Shirt or Pants. How would you go about doing that?

    Please if you have anytime that would be muchly appreciated
    Thanks

  8. aXel August 8, 2011 at 7:27 pm #

    Issue here,
    If I increase the frames, cloth animation is not working for increased frames. I reapply the cloth simulation but still i got the same problem. It works only for 240 frames, please help.

    • Dontwalk January 21, 2012 at 5:51 pm #

      I had this same issue. After hours of searching I found that you need to select your “cloth” and in the change the to the length you’d like your animation to be.

  9. Connor August 12, 2011 at 4:40 am #

    quick question: my flag doesnt drop when I hit alt a, but this happened before where my plane slides through the collision cube then folds up like a taco. I’ve had experience with the cloth sim and I’m on 2.48…any tips?

  10. Gary September 1, 2011 at 3:12 am #

    You don’t know what you’ve unleashed.
    hehe

  11. Gary September 1, 2011 at 3:25 pm #

    http://www.youtube.com/user/Onesideofyams?feature=mhee#p/a/u/0/3o8KOuAxHuo

    This is it.
    hehe

  12. Lolz September 10, 2011 at 9:35 pm #

    Funny. I heard it was a typo when you typed in “Flag”

  13. Lewis September 12, 2011 at 7:48 pm #

    When i try to render it just shows up as a flat flag no matter what frame im on. everything is subdivided as well. any suggestions please?

    • Hernan September 16, 2011 at 4:04 pm #

      I have the same matter, i dont know why :( when i render it looks just like the normal plane but in 3D view everything works OK, i want to know how fix it

  14. Whitehat September 24, 2011 at 8:25 pm #

    Here’s my flag…

    http://www.youtube.com/watch?v=caTgmEqOoU0

    –Whitehat

  15. DeGa October 9, 2011 at 8:53 am #

    Thanks a lot for all your tutorials, really helpful.
    I’m a hobbyist 3D modeller for games and will use this for generating an animated texture.

    Is there a way to loop the animation for texture generation purpose?

  16. Digir November 2, 2011 at 3:58 pm #

    I’m a beginner with this software but no luck so far. I tried using the finished blender and modifying it but the flag goes into itself and goes weird.
    btw, great tutorial

  17. Johnstein December 10, 2011 at 5:11 pm #

    I made a Blood Raven Banner

    http://www.youtube.com/watch?v=qw3ffOvG8Ic&feature=youtu.be

    Thanks a lot!

  18. Casey Jones December 11, 2011 at 3:36 am #

    LOL dude you get a drink in all of your videos haha

  19. Mut December 12, 2011 at 10:39 am #

    Here’s mine: http://www.youtube.com/watch?v=nzDwD5vDoGQ

  20. SGTHoward January 15, 2012 at 7:13 am #

    Here are my results from this tutorial. I think I need to work on it a little more but I am impressed with the results so far. These tutorials are great

    http://www.youtube.com/watch?v=EmfGvx-sju0&feature=youtu.be

  21. Matt February 6, 2012 at 5:49 pm #

    Awesome! You don’t need to UV unwrap the flag. Just give it an image texture. That simplifies things a lot.

    PS
    After the tut I googled australian fag!

Trackbacks/Pingbacks

  1. Teste de animação de tecido | CG Total - September 16, 2010

    [...] teste foi inspirado por esse ótimo tutorial. Galeria   animação, Blender, dinâmica, física, Photoshop, tecido, textura, vento [...]

  2. Varal (WIP) | CG Total - September 17, 2010

    [...] A cena foi renderizada em OpenEXR a 854 × 480 px. Cada frame está levando 1 minuto e 30 segundos para ser gerado, o que dificulta um pouco a avaliação dos ajustes finos. O gramado foi feito com base neste tutorial, e o tecido neste outro. [...]

  3. 7 Great Blender Tutorials « I Design Crap - October 18, 2010

    [...] 2. http://www.blenderguru.com/create-an-animated-flag/ [...]

  4. june 1st « jdtech12 - June 2, 2011

    [...] a lot stuff you can look at that interest you. The thing that that cought my interest is how to Create an Animated Flag; which i’m going to start maybe tomorrow or friday. Comments RSS feed LikeBe the [...]

Leave a Reply