Hyper-Realistic Sand with WebGL2

(av.github.io)

118 points | by everlier 3 hours ago

12 comments

  • smusamashah 9 minutes ago

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

    • smusamashah 15 minutes ago

      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 12 minutes ago

        Wow man, very cool.

        • alex_duf 1 hour ago

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

          • mattlondon 20 minutes ago

            Nothing happens on my android phone

            • leobuskin 1 hour ago

              It doesn’t in my case, I see some weird animation, everything disappears, “pour” button again. Shaking or any other movement doesn’t help. Latest chrome on iOS

              • ChrisMarshallNY 34 minutes ago

                It helps, if you lock orientation on the phone.

                Whenever the phone detects an orientation change, it resets the layout.

                • AndrewSwift 1 hour ago

                  Works for me in Safari — iPhone 17 Pro, all up to date

                  • dylanowen 1 hour ago

                    The sand is pouring onto the phone screen so if your phone is tilted or upside down it looks illogical

                  • I think it responds to tilting, not shaking?

                  • amunozo 59 minutes ago

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

                    • hamidmohaqeq 1 hour ago

                      This is really cool and give a realistic sense

                      • wigster 48 minutes ago

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

                        • arm32 1 hour ago

                          This is very fun to play with.

                          • techpression 1 hour ago

                            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

                            • vfosnar 43 minutes ago

                              didnt encounter the stucking issue but agree with the overerall point, the sand gets a sort of 'build-up pressure and bounce back' effect which breaks the immersiveness for me, otherwise cool

                              • zamalek 1 hour ago

                                What do you mean "stuck in the air?" It's top down.

                                • techpression 1 hour ago

                                  They don’t move, not even when pressing with your finger, “stuck on the ground” then, it’s the same outcome.

                              • customguy 49 minutes ago

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

                                • christkv 1 hour ago
                                  • nout 53 minutes ago

                                    This is annoying to clean up exactly like real sand.