A 2D fluid simulation using the hybrid grid/particle approach with APIC (Affine Particle-in-Cell) transfer.
Description
A 2D fluid simulation using the hybrid grid/particle approach with APIC (Affine Particle-in-Cell) transfer.
Download
Magnum example page with more description
Code (github) from Magnum repository
Windows binary
WebGL Demo
Thanks Vladimír Vondruš for building the awesome WebGL application. This is part of Magnum graphics engine showcase. Note that this WebGL demo requires WebAssembly-capable browser with WebGL enabled.
Usage:
* Mouse drag
rotates the camera
* E
emits more particles
* H
shows/hides the overlaid menu
* R
resets the simulation
* Space
pauses/resumes the simulation
Initialization...
Gallery