A simple Eulerian Fluid Simulation written in good old-fashioned C/C++!
A simple Eulerian Fluid Simulation written in good old-fashioned C/C++!
I built an Eulerian fluid simulator in C++! Getting the web build to work with shaders was a challenge, but I am pretty happy with the current build considering it is still running on the CPU.
Iāve finally finished the web build! The simulation still runs on the CPU for now, but Iām happy enough with it as it is currently. Hereās the link to the GitHub pages hosting:
https://colouredcat.github.io/Fluid_Sim/web/sim.html
Instructions:
Place the mouse at the edge of the canvas and press A and D to apply force
Press R to reset
Log in to leave a comment
After a bit of struggle, Iāve managed to optimize the code a little to fit more particles on the screen as well as writing a simple fragment shader! However, to get any more particles I am going to need to write a compute shader, a task I am not looking forward to :(
Log in to leave a comment
Iāve decided to recycle an old project to build a Eulerian Fluid Simulation! The bulk of the difficult physics is already done, but the look of the current simulation is very bare bones, and there are a number of things I want to add:
Log in to leave a comment