# Math goes to the movies

##### April 14, 2010

Whether it's an exploding fireball in "Star Wars: Episode 3", a swirling maelstrom in "Pirates of the Caribbean: At World's End", or beguiling rats turning out gourmet food in "Ratatouille", computer-generated effects have opened a whole new world of enchantment in cinema. All such effects are ultimately grounded in mathematics, which provides a critical translation from the physical world to computer simulations.

The use of mathematics in cinematic special effects is described in the article "Crashing Waves, Awesome Explosions, Turbulent Smoke, and Beyond: Applied Mathematics and Scientific Computing in the Visual Effects Industry", which will appear in the May 2010 issue of the NOTICES OF THE AMS. The article was written by three University of California, Los Angeles, mathematicians who have made significant contributions to research in this area: Aleka McAdams, Stanley Osher, and Joseph Teran.

Mathematics provides the language for expressing and their interactions, often in the form of partial differential equations. These equations are usually too complex to be solved exactly, so mathematicians have developed numerical methods and algorithms that can be implemented on computers to obtain approximate solutions. The kinds of approximations needed to, for example, simulate a firestorm, were in the past computationally intractable. With faster computing equipment and more-efficient architectures, such simulations are feasible today---and they drive many of the most spectacular feats in the visual effects industry.

Another motivation for development in this area of research is the need to provide a high level of controllability in the outcome of a simulation in order to fulfill the artistic vision of scenes. To this end, special effects , while physically based, must be able to be dynamically controlled in an intuitive manner in order to ensure believability and the quality of the effect.

The area of computational fluid dynamics (CFD) provides many of the tools used in simulations of phenomena such as smoke, fire, and water. Before the use of CFD, computer-generated special effects such as explosions were driven by force fields applied to passive unconnected particles, a method that produced rather unrealistic results. Today, a combination of improved hardware and faster algorithms for CFD models have made such special effects much more realistic. CFD has also been used, unsurprisingly, to simulate water-based phenomena; in fact, such water simulation techniques were recognized by an Academy Award for Technical Achievement for the mathematician/computer scientist Ronald Fedkiw of Stanford University.

Mathematics also plays a key role in computer-generated animations of all kinds of solids, from animated characters to cityscapes. Virtually every computer-generated solid has an explicit mathematical representation as a meshed surface or volume. Flesh simulations can endow computer-generated characters with realistically bulging muscles and rippling fat. Hair simulation provides a realistic way to depict the highly complex phenomenon of thousands of hairs interacting and colliding. The article describes recent work by the the first and third authors that provides a new technique for hair simulation.

The effects industry is emerging as an exciting new frontier for mathematicians, one that uniquely combines mathematical insights with the art of moviemaking.

Explore further: UCLA mathematician works to make virtual surgery a reality

## Related Stories

#### UCLA mathematician works to make virtual surgery a reality

November 26, 2007

A surgeon accidently kills a patient, undoes the error and starts over again. Can mathematics make such science fiction a reality?

#### Mathematicians promise animation revolution

March 30, 2005

CSIRO mathematicians are combining art and science to solve one of the last big challenges in animation – fluids. They are aiming to develop techniques for fluid animations that are so realistic audiences will bring umbrellas ...

#### And the Oscar Goes To... a Professor?

February 25, 2008

Daniel Day-Lewis, Tilda Swinton and the Coen brothers weren't the only ones honored at last night's Academy Awards. Ron Fedkiw, an associate professor of computer science at Stanford University also received a coveted gold ...

#### Swedish research can make Super Mario more realistic

March 6, 2009

Computer games are being developed at an ever more rapid pace, and the technical demands are rising, not least regarding graphics boards.  At Mälardalen University in Sweden, researchers have now found a solution to ...

#### Reliable, fast simulations of complex events Virginia Tech mathematician's goal

July 31, 2007

Timely, accurate prediction or control of complex phenomena – such as predicating the path of a hurricane or controlling a jet -- is the goal of Serkan Gugercin’s National Science Foundation Faculty Early Career Development ...

#### Virtual swimmer to speed up athletes

March 30, 2006

CSIRO and the Australian Institute of Sport are using mathematics in a bid to speed up our top swimmers by testing changes to swimming strokes. The research will make use of the same software CSIRO uses for other fluid simulations ...

## Recommended for you

#### Asian countries dominate, science teaching criticised in survey

December 6, 2016

Asian countries dominated the top places in a key survey released Tuesday of high-school skills, but the report criticised science teaching in many countries.

#### Secrets of the paleo diet: Discovery reveals plant-based menu of prehistoric man

December 5, 2016

A tiny grape pip (scale 1mm), left on the ground some 780,000 years ago, is one of more than 9,000 remains of edible plants discovered in an old Stone Age site in Israel on the shoreline of Lake Hula in the northern Jordan ...

#### Geoscientists size-up early dinosaurs, find surprising variation

December 5, 2016

Look out your window, and you may see people of all ages and sizes roaming the street: a 6-foot-5-inch man walking beside a 4-foot-6-inch boy, for example, or a sprouting teen-ager who is much taller than a full-grown adult.

#### Mummified remains identified as Egyptian Queen Nefertari

December 5, 2016

A team of international archaeologists believe a pair of mummified legs on display in an Italian museum may belong to Egyptian Queen Nefertari - the favourite wife of the pharaoh Ramses II.

#### Prehistoric plant remains highlight diverse origins of cereal domestication

December 5, 2016

A study from the University of the Basque Country (UPV-EHU) and the University of Copenhagen shows that the process of cultivation and domestication of cereals occurred at different times across southwest Asia. The analyses ...

#### Researchers find overwhelming evidence of malaria's existence 2,000 years ago

December 5, 2016

An analysis of 2,000-year-old human remains from several regions across the Italian peninsula has confirmed the presence of malaria during the Roman Empire, addressing a longstanding debate about its pervasiveness in this ...