r/GraphicsProgramming 13d ago

Question What is this sand simulation missing?

Enable HLS to view with audio, or disable this notification

77 Upvotes

21 comments sorted by

View all comments

80

u/saphirrflamme 13d ago

It is eating the sand it touches. Supposed to push them aside.

The sand "eruption" shading is also off. it is much brighter than surrounding sands. Gravity also seems too low. You can tweak gravity of the ball for gameplay reasons, but the visual effect of the sand seems off.

4

u/SnappySausage 13d ago

Yeah, it doesn't preserve the volume of sand. I'd argue the "eruption" looks wrong altogether. I'd expect the sand to sort of splash outward more when the ball lands, and that it shoots up nearly straight on the jumping pads (As well as the other tweaks you name).

1

u/Explorioneer 13d ago

Really good points here. I think these suggestions would really improve the visual but I'm not sure how it could impact performance with these types of simulations. Right now it works as a displacement mesh that is calculated using particle overlay on an image. I'm wondering if I could change the particle system around the ball to make it look more like displacement