Sintel, the Durian Open Movie Project » Blog Archive » “Wing Simulation” or “Gaaaaaah…”


“Wing Simulation” or “Gaaaaaah…”

on July 5th, 2010, by nathan

On Big Buck Bunny we did the wings of both the flying squirrel and the bird with hand animation. In the case of the bird, that went really well. But for the flying squirrel it imposed a lot of limitations on us and made things just generally a huge pain for both animation and rigging.

So for Durian I decided to use cloth simulation for the membrane of the dragon wings. This has led us down a long, winding, extremely annoying road. I thought it was going to be easy. Little did I know…


The early tests of the dragon wings went quite well, as you can see in the video below. The wings were simulated in a separate mesh, and then mesh-deform was used to transfer those deformations to the dragon mesh.


This worked okay, although there were intersection issues within the wing membrane itself since the geometry was double-layered:

Here is a crappy diagram of a cross-section of the arm/wing geometry, and what happens when the wing membrane gets deformed:

There were also intersections of the wing membrane with the body.

For the final setup I added a body collision object so that the wings wouldn’t intersect with the body, and I also added a displacement modifier to “puff” the wings out to resolve membrane self-intersections:

This sometimes looks weird, but it seems we’re able to get away with it in most shots.

We also used an awesome new feature of Blender’s cloth sim that lets you specify a shape key as the “rest” shape of the cloth. This, for example, lets me make the wing membrane taut (in the initial tests above it was too loose) even in the default pose of the model simply by making a shape key where the membrane is shrunk and assigning that as the rest shape. It also helped me tweak other simulation issues, where the wing membrane would sometimes bend in ways that looked weird.

Here are some silly tests of the feature. The first shows a cube whose base shape is quite small, but I’ve set its rest shape to be quite large. So when the simulation begins, it explodes.


The second shows the opposite. The base shape is large, but the rest shape is small. This causes the cloth to shrink-wrap over the monkey head when the simulation starts.



After all of this I figured it would be clear sailing! But not so. Doing simulations in the actual scenes turned out to be a hair-pulling exercise.

First we had to make wing sim work with linked models. Fortunately this turned out not to be quite so bad. But we had to set things up with Python. You can only modify linked properties through python, and even then they don’t get saved to disk and will revert upon reloading the file. So what Campbell did was he created some scripts that run every time the blend file is loaded that set the appropriate properties to the appropriate values. It works like a charm, although it’s quite production-specific. At this point Campbell has made scripts that even go through and bake all of the wing sim in a batch process. It’s pretty sweet. But, again, very techie and production-specific.

It would be nice to find a more general and user-friendly solution to all of this in the future.

Anyway, once we got that working our problems weren’t over. Managing collisions for cloth sim is extremely tedious, and requires making sure that there are no intersections at the beginning of the simulation, and that no forced intersections happen during the simulation.

A simulation can easily start with intersections. We have very basic rigging on the wings that just gets them in roughly the right position as a starting point for the simulation. Often this basic rig causes the wings to intersect with the body or themselves depending on the dragon’s starting pose.


To combat this we’ve been going into every animation file with the dragon and–before the start of the animation–creating a 30-ish frame transition between the default pose (guaranteed no intersections) and the start pose of the animation. And then we include those frames in the simulation. This is pains-taking and annoying, and it makes our simulations take longer. But it usually gets the job done.

The other problem that can happen is forced intersections. This can happen a lot, since animators cheat a lot. And animators should be able to cheat. But unfortunately they can’t in this case. What can happen is, say, the rigid hand-animated parts of the wings might penetrate the dragon’s body, and the cloth sim has no way to deal with the properly. It literally forces the wing membrane to intersect.


(Yeah, this is contrived, but it shows the problem more clearly than the actual production examples.)

And once that intersection happens, it gets stuck. It can’t get free without quite a bit of force. It “snags” on the dragon.

To combat this problem we do the simulations once, see if anything snags, and then go try to fix the forced intersections in the animation. This is also really pains-taking and annoying.

And part of the problem with these two issues is that no matter how correct or accurate the collision detection in Blender is, these two issues will persist.

A shout-out to the Blender devs: if anyone is interested, there is a cool paper from Pixar and a related paper from Stanford that address precisely these issues. If we could get that sort of functionality into Blender, it would go a huge way towards making Blender cloth really production-ready. Far more so than having more “correct” or “accurate” collision detection in the traditional sense. Forced intersections and starting intersections are a fact of life in production, and really need to be addressed directly. I will be forever indebted to anyone that takes this on.

But even with all of that taken care of we still have lots of problems. Like the wings disappearing or exploding.


And in those cases I’ve just been running the exact same simulation over and over again. It gives different results somehow. And I just wait until I get one that doesn’t explode or disappear. It would be cool to get this fixed as well. πŸ˜‰

In the end, I think it’s been worth it. We’ve identified some important areas of cloth sim that need to be improved, and this will be helpful to developers in the future. And with a bit of hair-pulling we’ve managed to get some pretty good results:



59 Responses to ““Wing Simulation” or “Gaaaaaah…””

  1. kopi Says:

    I hope there will be a decent tutorial on all this exciting stuff!

  2. Stephen Says:

    Had a quick play with the soft body for wings during me dinner break, took about 30 mins:

    Kopi, I’d say the best way to learn the cloth and soft body is set up a test rig, and change the values one at a time, its a shame that the soft body doesn’t have a preset like the cloth… been working on my jiggle physics πŸ˜€

  3. jirms Says:

    Thank you Nathan! Sounds like my plan of building an AI that uses weight painting to control cloths was a fairly dumb idea. From a programming standpoint it sounded fun though.

    If I understand the problem correctly now we are talking about polymorphism / decoupling Object Oriented concept issues. If you want to see programmers cry tell them this should be easy …

  4. wo262 Says:

    hey. i found some secrets. this is AWWEESSSSSOOMMMMMA’H
    post MOAR please

  5. D Says:


  6. jay Says:

    off the top of my head, this would be a nice use-case scenario for the use of bones with dynamic constraints. One could rig the wing membranes with bones, animate it, bake the animation, then simply tweak the bad parts. Might be something more feasible for the mechanical-minded among us. If anyone is interested in this concept I can make up a mock up.

  7. Cedal Says:

    first thing to be said is that you all are doing a great job there in Amsterdam(n).
    second thing is in the screenshots it appears to be some rain in Sintel… will we be able to animate rain easier than now? Because the reactor particle system is gone now in 2.5 I don’t really see how you guys do that.
    greats cedal

  8. Stephen Says:

    Tried using cloth, it was a real pain, any reason you diddn’t use soft bodies? it was quite easy to do this batwing, and diddnt have the intersection issues:

  9. shashu Says:

    Nice technique