top of page

Sand Simulation

A simulation of sand I created for my DMD Senior Design class (CIS 497) in C++ and OpenGL using position based dynamics, smoothed particle hydrodynamics (SPH), friction and cohesion forces, and discrete particle forces. The particle position data was then exported into text files, imported into Maya with MEL, and rendered with V-Ray. To simulate the friction and cohesion forces, I used Iván Alduán and Miguel A. Otaduy's paper "SPH Granular Flow with Friction and Cohesion". For the discrete particle forces, I followed the method described in Nathan Bell, Yizhou Yu, and Peter J. Mucha's paper "Particle-Based Simulation of Granular Materials". To simulate the water interacting with the sand, I used the particle based method described in Miles Macklin and Matthias Muller's paper "Position Based Fluids" for the general fluid behavior and Witawat Rungjiratananon, Zoltan Szego, Yoshihiro Kanamori, and Tomoyuki Nishita's paper "Real-time Animation of Sand-Water Interaction" for interactions between the two materials. For my full project write up, you may click the link below.
bottom of page