Researchers crack the code for simulating mud in computer graphics

Whether you're wandering a lush landscape in a videogame or are engrossed in a movie with realistic CG effects, it can be easy to take the underlying technology for granted. Of course, there is a lot going on from a technical standpoint and while developers and animators have gotten pretty good at simulating water and sand, combing the two into mud has been especially challenging. That might be about to change.

Researchers from UCLA, DreamWorks Animation, Jixie Effects, and the University of Pennsylvania will be presenting a paper at the Siggraph 2017 conference this July outlining their research into altering the properties of simulated sand when simulated liquid is introduced.

This is no small feat. Simulating the simple task of flipping over an hourglass filled with sand sets in motion a complex chain reaction as millions of particles bump into one another and eventually pour into the bottom. There are millions of calculations taking place every second.

YouTube YouTube
Watch On

Adding water obviously changes things, and it's difficult to simulate with computer graphics what happens when water and sand mix. Or more accurately, it's difficult to realistically simulate the transformation into mud.

"The novel aspect of this new work is the modeling of detailed physical interactions between water and sand," assistant professor Chenfanfu Jiang of the Computer and Information Science Departments at the University of Pennsylvania told Gizmodo. "Technically, we use particles to represent individual grains of sand and water droplets. In each simulation time step, individual material responses as well as the interaction force between sand and water are computed."

The process is aided by a voxel grid, basically a 3D bitmap. Jiang says the combination of particles and grids "allows elegant modeling of material interactions, which was very challenging with many other methods."

It remains to be seen if this fancy new mud tech will eventually make its way into videogames, but it's certainly fun to think about. As hardware gets more and more powerful, games are becoming increasingly able to simulate real-world physics and behavior instead of merely creating the gamey simulacra that we're used to. 

There is plenty more to sink into in the paper (PDF).

Paul Lilly

Paul has been playing PC games and raking his knuckles on computer hardware since the Commodore 64. He does not have any tattoos, but thinks it would be cool to get one that reads LOAD"*",8,1. In his off time, he rides motorcycles and wrestles alligators (only one of those is true).

Latest in Hardware
A woman wearing a VR headset with dramatic, colourful lighting across the background
'World’s smallest LEDs' could lead to accurately lit screens with 127,000 pixels per inch and much more immersive VR
The NES themed 8BitDo Retro mechanical gaming keyboard on a blue background
I love the 8BitDo Retro C64 keyboard but I'd pick its cheaper NES-themed model near its lowest price ever during Amazon's Big Spring Sale
The snazzy red and black HyperX Cloud Alpha wireless headphones float in a teal void. The microphone is attached to the headset.
The best wireless gaming headset is now even better in the Amazon Big Spring Sale, boasting a more than $50 discount
A chip being held up in an Intel fab
Intel is reportedly 'working to finalize commitments from Nvidia' as a foundry partner, suggesting gaming potential for the 18A node
Amazon box
Don't panic! The 'Do Not Send Voice Recordings' option Amazon just removed was only used by 0.03% of customers and they can still have it
Digital generated image of people surrounded by interactive transparent and glowing panels with data. Visualising smart technology, blockchain and artificial intelligence
Now I shall demand the cookies! Proposed new browsing agreement turns the tables and lets users dictate terms to websites
Latest in News
An Enshrouded player in a recreation of Erebor from The Lord of the Rings
Kings under the Mountain! 33 Enshrouded players spent 10,000 hours to recreate this iconic location from The Lord of the Rings
A mech awakens.
Mecha Break developer is considering unlocking all mechs following open beta feedback
Lara Croft Unified Art
Tomb Raider developer Crystal Dynamics lays off 17 employees 'to better align our current business needs and the studio's future success'
A long bendy arm stealing money from people in a subway car
'You're a very long arm. You steal things. It's a comedy game,' explains developer of comedy game where you steal things with a very long arm
The heroes are attacked by monsters
Pillars of Eternity is getting turn-based combat to mark its 10th anniversary, and that means PC Gamer editors will soon be arguing about combat mechanics again
Image of Ronaldo from Fatal Fury: City of the Wolves trailer
It doesn't really make sense that soccer star Ronaldo is now a Fatal Fury character, but if you follow the money you can see how it happened