Wavelet Turbulence for Fluid Simulation

Smoke | Thursday 26 March 2009 2:03 am

This is a new and interesting way to add more detail to simulated fluids like smoke. Even if it’s far from realtime, some idea´s might be useful in games too.

Smoke Simulation

 The link to the paper:

http://www.cs.cornell.edu/~tedkim/WTURB/wavelet_turbulence.pdf

Random point in circle

Math | Thursday 26 March 2009 1:52 am

The best algorithm to generate a point in a circle is to generate a point in a square with the same width as the circle diameter and then rerun the algorithm until this random point is inside the circle. This algorithm might need to run a couple of times before finding a suitable point but will be faster than a more algorithmic solutions.

Pseudo code:

  1. Randomize a point in the square
  2. If this point is outside the circle then jump to 1
  3. Done