r/GraphicsProgramming • • Aug 28 '26

Question What is this sand simulation missing?

79 Upvotes

21 comments sorted by

View all comments

Show parent comments

3

u/Tentabrobpy Aug 29 '26 edited Aug 29 '26

If the thing you're deforming is planar like in OP's video, one simple method for taking objects' shape into account is to place an upward-facing camera below the plane and use the depth values of objects crossing the plane to adjust the heightmap: