Hyper-Realistic Sand with WebGL2

(av.github.io)

95 points | by everlier 3 hours ago

9 comments

  • alex_duf 1 hour ago
    On a mobile phone it makes a lot more sense. Try shaking it!
    • 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 4 minutes ago
        It helps, if you lock orientation on the phone.

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

      • AndrewSwift 46 minutes 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
    • theowaway213456 38 minutes ago
      I think it responds to tilting, not shaking?
  • amunozo 29 minutes ago
    I am feeling the sand physically at watching at this, good job!
  • wigster 18 minutes ago
    i feel like i'm watching a stop-motion movie as it moves. very nice
  • hamidmohaqeq 30 minutes ago
    This is really cool and give a realistic sense
  • arm32 31 minutes ago
    This is very fun to play with.
  • customguy 19 minutes ago
    Zooming on the desktop makes it more dense looking, which is probably not intended but can look very cool IMO.
  • techpression 47 minutes 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 14 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 44 minutes ago
      What do you mean "stuck in the air?" It's top down.
      • techpression 37 minutes ago
        They don’t move, not even when pressing with your finger, “stuck on the ground” then, it’s the same outcome.
  • nout 23 minutes ago
    This is annoying to clean up exactly like real sand.
  • christkv 1 hour ago