A scene from the animated film, "Frozen," demonstrates what UCLA mathematicians achieved when they worked with Disney software engineers to simulate how snow behaves. On Sunday, "Frozen" won the Oscar for best animated feature.

A reindeer pulls a sleigh with Princess Anna and Kristoff, two main characters in Disney’s much-applauded animated movie, “Frozen,” as hungry wolves chase them through a snowy forest. Kristoff falls off the sled, and the wolves nip at his feet, leaving a trail of snow behind him.

That’s just one of the bone-chilling scenes in the smash hit that captured the Oscar for best animated feature about a queen who’s struggling to control her magical powers. She makes snow and ice and inadvertently freezes her kingdom.

Far away from the frozen north in sunny Southern California, a UCLA mathematician and a postdoctoral scholar helped create what are arguably the most realistic, animated snow scenes in any film. Millions of moviegoers have seen what resulted from research led by associate mathematics professor Joseph Teran.  

As consultants, Teran and Craig Schroeder, a UCLA postdoctoral math scholar, joined a team of three Disney software engineers — Alexey Stomakhin, Andrew Selle and Lawrence Chai — to develop an algorithm based on the material point method to create simulations of how snow behaves.

Nicknamed the “Matterhorn” at Disney, the algorithm was used in about 43 scenes where characters are interacting with snow. Engineering principles were used to produce a large variety of different kinds of snow, including chunky and powdery forms of the white stuff, as well as to simulate how snow reacts in different situations.   

“Snow is an important character in the movie,” said Stomakhin, who received his M.A. in 2011 and his Ph.D. in 2013 from UCLA. “We really wanted people to believe it’s real snow.”

In order to do that, Teran and the team did some research and found that a good model to create snow in computer graphics just didn’t exist. But the researchers thought that the material point method could be adapted to recreate snow. So they developed a paper and video on the method and presented it last year at Siggraph, a computer graphics conference.

Snow reacts differently than other materials,” said Teran, who’s been a Disney consultant since 2007. “If you squish snow, it’s going to get harder. But if you stretch it, it gets weaker and breaks apart. We took all that into consideration for the model.”

Initially, “Matterhorn” was used to simulate snow in only a couple of scenes, Stomakhin said. But the algorithm created such realistic snow that Disney artists ended up using it in many scenes. They even used it to simulate dirt.

“I’ve seen a lot of snow in my life,” said Stomakhin, a native of Moscow, Russia, where it snows six months out of the year. “The thing that impressed me the most was how we were able to reproduce a snowball rolling down a hill and how more and more snow sticks to it.”