[Media] FerroLiquid - my port of the LiquidSketch fluid simulation to Rust
![[Media] FerroLiquid - my port of the LiquidSketch fluid simulation to Rust](https://i.redd.it/ist94jukxh5h1.gif)
Hi everyone!
I want to show FerroLiquid here, a port of the LiquidSketch fluid simulation and color mixing engine to Rust. LiquidSketch is a fluid simulation puzzle game I developed originally for the iPad 2 in C++ (free on iOS Appstore, Android Appstore). The port only has sandbox play, no puzzles. The simulation and rendering itself are quite close to the original code, with some cleanup. The interface uses egui which is absolutely fantastic!
I posted on r/rust_gamedev a while ago here, since then I worked on more flexible boundary conditions. Instead of placing solid blocks on a grid you can now draw arbitrary solid areas. Simulation boundary conditions are then computed using a signed distance field.
Features:
- FLIP fluid simulation with conjugate gradient pressure solver
- Liquid surface rendering and color advection with OpenGL
- Placeable inflows and forces
- Flexible boundary conditions using a signed distance field
- Runs in the browser using WASM
AI usage: None except for the demos menu