Hyper-realistic sand with WebGL2
Points and comments are a snapshot, not live.
A hyper-realistic sand simulator built with WebGL2 for browsers on phones, tablets, and desktops.
The page presents a browser-based sand simulator using WebGL2 and JavaScript. Users can pour, tilt, shake, and draw to interact with sand grains. It works on phones, tablets, and desktops, responding to touch and device orientation. The sand behaves physically, sliding and scattering. A "Pour" button and controls for lay flat, tilt, shake, and draw are provided. The source repository is available on GitHub.
What commenters are saying
Many commenters enjoyed the simulation, calling it fun and realistic, with some noting it brought a childlike sense of play. Performance was a major issue: users on various iPhones, iPads, and budget Android phones reported choppy frame rates or slideshow-like behavior. Mobile use requires the phone to be flat or held correctly; tilting or shaking works for some but not all. Commenters shared tips: lock screen orientation to avoid resets, disable "shake to undo" on iOS, and try different sand types via URL parameters. Some critiqued the physics (sand stopping too abruptly, stones lacking rotation) and sound quality, suggesting defaults should be muted.