Hyper-Realistic Sand with WebGL2

(av.github.io)

118 points | by everlier 4 hours ago ago

21 comments

  • smusamashah 3 minutes ago ago

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

  • smusamashah 9 minutes ago 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 6 minutes ago ago

    Wow man, very cool.

  • alex_duf 2 hours ago ago

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

    • mattlondon 15 minutes ago ago

      Nothing happens on my android phone

    • leobuskin 2 hours ago 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 28 minutes ago ago

        It helps, if you lock orientation on the phone.

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

      • AndrewSwift an hour ago ago

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

      • dylanowen 2 hours ago ago

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

    • theowaway213456 an hour ago ago

      I think it responds to tilting, not shaking?

  • amunozo an hour ago ago

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

  • hamidmohaqeq an hour ago ago

    This is really cool and give a realistic sense

  • wigster 42 minutes ago ago

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

  • arm32 an hour ago ago

    This is very fun to play with.

  • techpression an hour ago 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 37 minutes ago 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 an hour ago ago

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

      • techpression an hour ago ago

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

  • customguy 43 minutes ago ago

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

  • christkv 2 hours ago ago
  • nout an hour ago ago

    This is annoying to clean up exactly like real sand.