During my 3rd year at uni I played with webgl1 to create a fake fluid simulation, my demo looks crap nowadays http://jspdown.github.io/mod1/
WebGL Fluid Simulation
71–80 of 106 posts
Re: WebGL Fluid Simulation
#72Re: WebGL Fluid Simulation
#73Re: everyone impressed by how fluid it is with multitouch: The number of touch points doesn't affect the performance of a grid simulation. Using 10 fingers just sets high values at more places in the initial grid. The effort to solve each time step is the same after that. The computational effort scales with the resolution, not the boundary conditions/input.
Re: WebGL Fluid Simulation
#74Re: everyone impressed by how fluid it is with multitouch: The number of touch points doesn't affect the performance of a grid simulation. Using 10 fingers just sets high values at more places in the initial grid. The effort to solve each time step is the same after that. The computational effort scales with the resolution, not the boundary conditions/input.
I'm impressed it handles multitouch without scrolling or zooming the page. Many similar demos I've tried suffer from such issues.
Re: WebGL Fluid Simulation
#75Re: WebGL Fluid Simulation
#76Impressive demo! WebGL is an awesome piece of tech that only now starts to be largely adopted. I mean, it gives you access to 100s of cores to compute, run, display stuff :). Too bad Apple doesn't move forward with WebGL2 and Google splits the community in 2 with webgpu.
It's not splitting the community. They needed a new modern API like what people behind Vulkan did.
Re: WebGL Fluid Simulation
#77Re: WebGL Fluid Simulation
#78Here is the "main loop" for the simulation: https://github.com/PavelDoGreat/WebGL-Fluid-Simulation/blob/... I don't know enough about fluid dynamics to be the judge, but it seems like the engine is using genuine (2D) physics and it's not just "toy physics." Could someone who knows fluid mechanics comment on this?
[1] https://en.wikipedia.org/wiki/Projection_method_(fluid_dynam...
Re: WebGL Fluid Simulation
#79Re: WebGL Fluid Simulation
#80Does not seem to work on Firefox 66.0.5