3 ms·
Another fun application of Perlin noise is fake fluid dynamics. If you take the curl of a Perlin noise field, you get a nice turbulence function that has no div
by dahart 10y ago
Another fun application of Perlin noise is fake fluid dynamics. If you take the curl of a Perlin noise field, you get a nice turbulence function that has no divergence. Fluids are usually approximated as being incompressible, and that's part of what makes fluids look fluid. Curl of Perlin can give you a nice fluid-looking turbulence. Curl of any noise is divergence-free, of course, but Perlin works well and looks better than others.
Perlin noise is actually more expensive to evaluate than a real fluid simulation. The fun/important part is that Perlin is static, so there's no simulation and you can render your frames out of order and in parallel. With a fluid simulation, each sim frame depends on the previous one. Fake curly noise is also easier to set up and tune than a fluid sim.
I and others have used this technique on lots of films for quick turbulent smoke, fog, and particulate effects.
- lifeisstillgood 10y agoThank you for your replies - I will try writing my own perlin generator for something. I am taking a break from HN for a few weeks, and would not have replied but I just wanted to say the ability to ask a question and get back "yeah I used this technique on that movie you saw" is something no other forums provide. It's awesome. I will smile as I take my screen break. Cheers