News for hackers. Stuff that matters.
Re:HTML5 Fluid Simulation in WebGL by sokrates on Friday October 24, 2014 @10:57AM (#8503974)
As a complete physics noob, can I mod this to work in 3D? I.e. model a concave rigid body shape, and have the fluid flow around it?
Re:HTML5 Fluid Simulation in WebGL by haxiomic on Friday October 24, 2014 @11:10AM (#8504057)
The mathematics generalizes to 3D quite easily, but the way the webgl pipeline is used in this case doesn't. It'd be easier I think to start from scratch. I recommend reading through the GPU Gem's article on the topic with code samples

http://http.developer.nvidia.com/GPUGems3/gpugems3_ch30.html

although the physics is discussed, you don't need to follow it deeply to implement it