fx notes

Search

Search IconIcon to open search

Velocity Fields

Last updated Oct 18, 2023 Edit Source

# Noise

# Curl Noise

Curl noise is especially useful because it is a divergence free noise, which means that particles cannot converge to sink points where they get stuck.

The easiest way to set this up is through VOPs:

# Advanced Velocity Fields

# Calculate Potential Flow with VDBs

You can use the VDB Potential Flow node to predict how air would move around an object. You can set the direction the ‘wind’ is coming from with the Background Velocity parameter on the node. To make the velocities converge behind the object you can use two cross product operations to cross the velocity field with the gradient of the sdf twice!

//content of: doublecross_with_gradient - Volume VOP Check out Mats video on the topic: Houdini Tutorial: Advanced Velocity Fields / Part One - Mats

# Strange Attractors

might be useful for some magic FX.

I put them on their own page here.

# Magnetic Fields

// volume wrangle

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
int numCharges = npoints(1);
vector direction = set(0,0,0);

for( int i = 0; i < numCharges; i++ )
{
    vector chargePosition = point(1, "P", i);
    float chargeValue = point(1, "charge", i);
    
    vector chargeinfluence = (( chargePosition - v@P ) * chargeValue ) / pow(length(chargePosition - v@P), chf("power")); // set power to 3 as default
    direction += chargeinfluence;
}

direction = direction / numCharges;

v@vel = direction;

sources / further reading:


Interactive Graph