logo80lv
Articlesclick_arrow
Research
Talentsclick_arrow
Events
Workshops
Aboutclick_arrow
profile_loginLogIn

Check Out This Real-Time 3D Fluid Simulation Implemented In WebGPU

Works in your browser.

Using the Moving Least Squares Material Point Method (MLS-MPM), which allowed for real-time simulation with around 100,000 particles on integrated graphics and up to 300,000 particles on mid-range GPUs, matsuoka_601 implemented this cool jello-like fluid in WebGPU. Smoothed Particle Hydrodynamics (SPH) is also included, which can be enabled by clicking the SPH button in the top right corner.

Below are the characteristics of this simulation:

  • Moving Least Squares Material Point Method (MLS-MPM);
  • Particle to Grid (P2G) stage implemented with atomicAdd;
  • Smoothed Particle Hydrodynamics (SPH) based on Particle-Based Fluid Simulation for Interactive Applications;
  • For fast neighborhood search on GPU, an algorithm described in NVIDIA's paper is used;
  • Screen-Space Rendering described in another NVIDIA's paper is used for real-time rendering of the fluid.

The developer was inspired by nialltl's article, which explained that a vanilla implementation of MPM isn't ideal for real-time simulation due to inaccuracies in volume estimation, which forces the timestep to be small. To address this issue, the article proposed recalculating the volume at every simulation step. Apparently, this method is highly effective for using larger timesteps and currently requires only 2 simulation steps per frame.

This is still a work in progress, as matsuoka_601 has a to-do list to work through, is actively learning MLS-MPM, and plans to get rid of artifacts while improving the handling of even larger real-time simulations.

Visit the GitHub repository for more information, and try the simulation in your browser by clicking this link.

Also, don't forget to join our 80 Level Talent platform and our new Discord server, follow us on InstagramTwitterLinkedInTelegramTikTok, and Threads, where we share breakdowns, the latest news, awesome artworks, and more.

20 Ropes Curve Brushes all contained within one Multi-mesh brush and Low poly meshes.

Error
(2000-0001)

Join discussion

Comments 0

    You might also like

    A Week After "Basically Announcing" Minecraft 2, Notch Basically Cancels It

    Instead, he and his team will focus on the previously-announced retro-style roguelike.

    Rumor: Possible Release Date for Grand Theft Auto 6 Revealed

    A video game store from Uruguay appears to have disclosed the launch date for the gaming industry's most anticipated title.

    Breaking: Unity Suddenly Lays Off Numerous Developers With a 5 AM Email

    Apparently, the entire Unity Behavior team was cut, alongside many other employees.
    • Desert Eagle MAG50
      by Abderrezek Bouhedda

      This game ready weapon will help you in your game or in your renders, just drag and drop it into your game engine. The weapon is modeled part by part including perfect UV Unwrapping and PBR Textures.

      Error
      (2000-0001)
    • Ultimate River Tool
      by VEA Games

      Ultimate River Tool is powerful and easy to use component for Unreal Engine 4 that allows you to make rivers with automatic flow-map UV warping, cascades and interactions with physical objects (buoyancy). All you need is to make a spline at your map and configure it scales.

      Error
      (2000-0001)

    We need your consent

    We use cookies on this website to make your browsing experience better. By using the site you agree to our use of cookies.Learn more

    ×