Hyper-Realistic Sand with WebGL2
A WebGL2-based interactive simulation of hyper-realistic sand and stones that responds to device orientation and touch.
summary is enough The project is a visual toy; the value is in the experience and the discussion of its performance and implementation.
The article could not be read automatically; this analysis is based on the title and discussion.
summary
This project is a browser-based physics simulation using WebGL2 to render various types of sand and stones. It features interactive pouring, touch manipulation, and mobile device orientation support to simulate gravity. While visually impressive to many, users report significant performance issues on older and even some current-generation mobile devices.
key points
- The simulation supports multiple sand types (e.g., beach, desert, volcanic) with varying physical and auditory characteristics.
- Mobile users can tilt their devices to move the sand, though orientation changes can trigger layout resets.
- Performance varies wildly, with some users reporting low frame rates (10 FPS) on modern iPhones and Android devices.
- The project is open source and available on GitHub.
who should read it
Web developers and graphics enthusiasts interested in WebGL2 physics simulations.
discussion positive
consensus
Most users find the simulation joyful and visually impressive, though many criticize the audio quality and the lack of optimization for mobile hardware.
pushback
Some users argue the simulation isn't truly realistic, citing issues with momentum, friction, and particles getting stuck.
I notice that different types of sand sound different - the timbre of the sand falling onto the table and shuffling around is noticeably different between the various types. I was curious if the differences in the sand were being physically modeled to synthesize sound.
It’s a physics-based generation but the simulation model is somewhat limited; essentially a few parameters that vary between the sand types, some randomization, and responsiveness to flow rate. Still, it’s highly effective; something like the fine, silty desert sand is noticeably brighter and sounds more like a hiss as it …
It explains the physics-based nature of the sound generation and how parameters vary between sand types.
Generated by an LLM from the article and thread. Check the sources before relying on it.