Hyper-Realistic Sand with WebGL2
- ID
- 45683
- Status
- summarized
- Published
- 11 Nov 2026, 9:39 PM
- Fetched
- 12 Nov 2026, 8:44 AM
- Provider
- Hacker News
- Category
- dev-community
- Original URL
- https://av.github.io/safe-sand/
- Source URL
- https://hnrss.org/best
Summary
- Score
- 4.0
- Created
- 12 Nov 2026, 8:45 AM
- Tags
- Audience
- developersvibe_coders
What happened
A browser-based sand simulator built with WebGL2 and JavaScript, playable on phones, tablets and desktops, with touch pouring, tilt-to-slide via device motion, shake-to-scatter, plus sound and haptics toggles. The page itself is a bare demo with almost no explanatory text — no code repo, no write-up on the particle approach. It drew 293 points and 62 comments on Hacker News.
Why it matters
Nothing here forces a change to what you ship, and there's no source or technical explanation to learn the technique from — the only concrete takeaway is that the demo wires together WebGL2 particles, touch input, device orientation and the vibration API in one mobile-friendly page, so it's worth opening on a phone to feel how those sensor APIs behave together before you try the same combination in your own interactive canvas work.
Discussion angle
The page has no copy, no signup and no repo, yet pulled 293 points — worth debating whether instant tactile demos like this are a better distribution channel for a builder's side project than a launch post or README, and what you'd have to publish alongside it (source, perf numbers) to convert the attention into anything useful.