Hyper-Realistic Sand with WebGL2

everlier 343 points 67 comments November 11, 2026
av.github.io · View on Hacker News

Discussion Highlights (20 comments)

alex_duf

On a mobile phone it makes a lot more sense. Try shaking it!

christkv

Reminds me of this demo game https://store.steampowered.com/app/3216520/Sandcastle/

techpression

I wouldn’t call it realistic, sand gets stuck in the air, stones don’t rotate, and there’s quite an uncanny valley effect based on angles. Still a cool demo of what is possible, even though I get 10fps or something on a iPhone 15 Pro

arm32

This is very fun to play with.

hamidmohaqeq

This is really cool and give a realistic sense

amunozo

I am feeling the sand physically at watching at this, good job!

nout

This is annoying to clean up exactly like real sand.

customguy

Zooming on the desktop makes it more dense looking, which is probably not intended but can look very cool IMO.

wigster

i feel like i'm watching a stop-motion movie as it moves. very nice

smusamashah

oh wow, the stones even have some water around them. This looks and feels real. And if you manage to collect a lot in one place, the sand from the pile does fall like real sand. This is amazing. The sound is not good though.

cheapcheerful

Wow man, very cool.

smusamashah

Found source repo here https://github.com/av/safe-sand

kccqzy

It didn’t look realistic to me until I added `?sand=beach` to the URL. Maybe I only associate sand from the beach as sand. Others I call silt perhaps incorrectly.

Razengan

Naturally the first instinct of man is to draw a penis.

emilfihlman

I think it's lacking momentum, the sand stops way too abruptly, and the audio also has too harsh cutoff. It also falls too fast. Otherwise really amazing!

tgtweak

This one does much better at retaining volume than the smudge demo last week :)

samiv

Cue the whines about not using WebGPU.

asaddhamani

I just spent 15 mins playing with this on my phone, it was a lot of fun!

mashally

It was a lot of fun. I wrote I love you phrase to my gf and she liked it.

lloydatkinson

Runs like crap on iPhone 14. I know it’s not the current generation of phone but is there really that meaningful of a difference between that and a current one?

Semantic search powered by Rivestack pgvector
12,324 stories · 116,709 chunks indexed