r/GraphicsProgramming • u/Explorioneer • Aug 28 '26
Question What is this sand simulation missing?
Enable HLS to view with audio, or disable this notification
80
Upvotes
r/GraphicsProgramming • u/Explorioneer • Aug 28 '26
Enable HLS to view with audio, or disable this notification
View all comments
Show parent comment
9
u/Le_9k_Redditor Aug 28 '26
You could mimic how many water simulations work for this, just of course with high friction instead of surface tension. Super simple Eulerian fluid simulation is probably best, just use a surface mesh that gets pushed around and folded up. There's definitely going to be lots of existing libraries for it you can make use of
A Lagrangian method (just dropping a lot of sand balls in a pit and visually smoothing), would work, but I imagine it's going to be harder to get good results with reasonable performance in this case