6

What techniques are used for the real-time simulation of fluids such as water, for example in videogames?

In particular, I am looking for a project-idea for an (unfortunately rather short) physics project at Uni, so the simpler the better (if there is any such thing as "simple" in fluid-simulations...)

Ben
  • 15,938
  • 19
  • 92
  • 138
  • See here: http://scholar.google.co.uk/scholar?q=real-time+fluid+simulation&hl=en&btnG=Search&as_sdt=1%2C5&as_sdtp=on – Stuart Golodetz Nov 08 '11 at 00:51
  • (And for what it's worth, I don't mean the Google link facetiously - Google Scholar is exactly where I'd start with this sort of thing.) – Stuart Golodetz Nov 08 '11 at 00:52
  • I usually don't use Google Scholar, simply because many of the papers it links to cost money without even providing a 'look inside' feature. – Ben Nov 08 '11 at 01:12
  • As a tip, find the names using Google Scholar, then search the web for the PDFs - often turns up trumps because the authors will generally upload their papers on their personal websites. – Stuart Golodetz Nov 08 '11 at 01:37
  • 1
    (But yes, I've sometimes found that frustrating since leaving university - I'm very strongly of the opinion that all research journals should be open access. The trouble is how you fund it, of course.) – Stuart Golodetz Nov 08 '11 at 01:38
  • 1
    @Ben There are many similar questions on SO, so have a look. I have answered two that might help [here](http://stackoverflow.com/questions/6716887/how-to-render-ocean-wave-using-opengl-in-3d) and [here](http://stackoverflow.com/questions/6072242/how-do-games-make-fire-and-smoke-effects). And see the "Related" questions in the sidebar for example. – Bart Nov 08 '11 at 03:41
  • Try searching stackoverflow for questions involving "particle animation". – hotpaw2 Nov 08 '11 at 00:51

1 Answers1

4

AFAIK the most popular method to simulate fluids in real-time is the SPH method:

It's implemented in Bullet, PhysX, and Fluids:

Fluids v.3 is a large-scale, open source fluid simulator for the CPU and GPU using the smooth particle hydrodynamics method. Fluids is capable of efficiently simulating up to 8 million particles on the GPU (on 1500 MB of ram).

Some other helpful sources:

Kenny Evitt
  • 9,291
  • 5
  • 65
  • 93
Dmitry Sapelnikov
  • 1,129
  • 8
  • 16
  • Oh, I forget to post another good link about FLUIDS v2 project. I updated my answer. – Dmitry Sapelnikov Nov 08 '11 at 11:05
  • 1
    One thing to note about SPH (which is also mentioned on the FLUIDS site) is that it is very hard to get good parameters in practice, and you also need pretty small time steps. The other popular method next to SPH is grid-based methods, which allow for much larger time steps (see GPU Gems 3: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch30.html). The CUDA SDK also contains a sample of this for simulating smoke. – mrueg Jul 14 '14 at 12:12