Skip to Content

Making Animated Fluids Look More Realistic

By retooling physical equations, researchers are allowing computer-animated fluids to flow more naturally.
January 31, 2007

Behind the scenes of most movie special effects are computers crunching intense mathematical equations. And some of the most complex types of animation equations describe fluid motion: anything from lava flow to an explosion to the rise and disappearance of smoke rings. But many times, the equations available to animators aren’t good enough to accurately represent and control fluids, says Mathieu Desbrun, professor of computer science at the California Institute of Technology, in Pasadena. In order to make fluid animation look good enough, he says, some animators opt to draw it by hand–a time-consuming process.

The spinning liquid in this snow globe obeys new equations for computer simulations developed at Caltech. The researchers claim that these equations render liquid motion that’s more realistic than what is possible with today’s computer animation software.

But Desbrun’s research could make fluids flow more nicely on screen. He and his team are developing an entirely new approach to fluid motion, based on new mathematics called discrete differential geometry, that use equations designed specifically to be solved by computers rather than people. Ultimately, he says, they have the potential to cut the cost and time of making a piece of animation. “Now that we’re using computers, it’s a whole new ball game,” he says.

Multimedia

  • Watch smoke obey the new fluid-dynamics equations

  • Watch a liquefying character obey the new fluid-dynamics equations

Before computers, Desbrun explains, mathematicians and physicists developed equations for the motion of objects such as solids and fluids, and many of them were solvable by hand. Over the past few decades, it became clear that computers could be used to solve many of the more difficult equations, so computer scientists and mathematicians took the known set of equations and tried to modify them for the task. They reworked the equations explaining the physical rules, effectively breaking them into hundreds of numerous chunks so that the digital brain of a computer, which is good at working on a lot of these chunks at one time, could solve them.

While much successful work has been done using this approach, says Desbrun, these equations still only approximate motion, and they tend to produce unnaturally flowing liquids. For instance, in the case of a whirlpool, over time the traditional approach introduces errors into the motion, producing artificial viscosity: the visual result is a swirling whirlpool that slows down for no obvious reason. An animator must step in to modify the frames to make sure that the liquid keeps moving the right way.

Desbrun’s approach is to write new equations that are based on physical properties that aren’t expressed in the traditional equations. For instance, traditional equations include information about the velocity of a liquid, and this is used to approximate, or provide an inexact description of, a liquid’s motion if it starts to swirl around. But Desbrun’s equations bypass simple velocity and instead describe the swirling motion exactly, and in a way that computers can easily crunch. “Instead of just approximating them, we can capture the dynamics faithfully,” he says. “And we show it pays off visually.”

In a paper published this month in the journal Transactions on Graphics, Desbrun and his team describe the approach they take to model swirling fluids around and within solid objects such as a snow globe. The traditional approach would approximate the velocity of the liquid at various points in space and time and use this to approximate its motion along a circular path. But Desbrun’s equations model the actual circulation of the liquid, as if it were a property as fundamental as velocity.

To simulate the circulation of liquid, the researchers must capture the fundamental property of that circulation, called flux. Flux, or the amount of liquid that moves through a space at any given time, is captured by breaking the whirlpool into tiny pieces and determining the flow at each piece. These values are folded into the motion equation, allowing the liquid to flow more accurately.

So far, says Desbrun, the results are promising. This approach “has been shown to provide good statistical predictability … ensuring high visual quality.”

The research could be significant for the computer-graphics community, says Eva Kanso, professor of aerospace and mechanical engineering at the University of Southern California, in Los Angeles, who models fluids computationally. “Traditionally,” she says, “the trend was to use fast computation that is similar to reality but not based on real physics. It’s a big step for the computer-graphics community to look at physical laws and try to simulate them, especially now with a big demand on more-realistic animation.”

James O’Brien, professor of computer science at the University of California, Berkeley, says that if the traditional computational method and Desbrun’s method were to go head-to-head, there wouldn’t be much difference in the amount of time it takes to render an animation. However, he says, “the real point is getting better-looking results for the same amount of effort.”

Right now, says Desbrun, his new computation approach isn’t ready for prime time in the software found at animation studios, but colleagues at Columbia University are exploring the option. “We haven’t pushed our research to the point where we could help movie companies to add more control over the way fluid flows,” he says. But, he adds, if the equations are used in software, artists could, with the click of a button, easily modify special effects and animation far more accurately than they can today.

Keep Reading

Most Popular

Conceptual illustration showing a file folder with the China flag and various papers flying out of it
Conceptual illustration showing a file folder with the China flag and various papers flying out of it

The US crackdown on Chinese economic espionage is a mess. We have the data to show it.

The US government’s China Initiative sought to protect national security. In the most comprehensive analysis of cases to date, MIT Technology Review reveals how far it has strayed from its goals.

Image of workers inspecting solar panels at a renewable energy plant
Image of workers inspecting solar panels at a renewable energy plant

Renewables are set to soar

The world will likely witness a wind and solar boom over the next five years, as costs decline and nations raise their climate ambitions.

light and shadow on floor
light and shadow on floor

How Facebook and Google fund global misinformation

The tech giants are paying millions of dollars to the operators of clickbait pages, bankrolling the deterioration of information ecosystems around the world.

travelers walk through Ronald Reagan Washington National Airport
travelers walk through Ronald Reagan Washington National Airport

We won’t know how bad omicron is for another month

Gene sequencing gave an early alert about the latest covid variant. But we'll only know if omicron is a problem by watching it spread.

Stay connected

Illustration by Rose WongIllustration by Rose Wong

Get the latest updates from
MIT Technology Review

Discover special offers, top stories, upcoming events, and more.

Thank you for submitting your email!

Explore more newsletters

It looks like something went wrong.

We’re having trouble saving your preferences. Try refreshing this page and updating them one more time. If you continue to get this message, reach out to us at customer-service@technologyreview.com with a list of newsletters you’d like to receive.