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?
[ Parent
| on HN ]
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