The particles attract each other: the cloud pulls itself into clusters, webs, strands and swarms.
What it is for
Organic structures that build themselves: living webs and membranes, clusters that orbit and merge, schools and murmurations. Reach for it when the shape should come from the particles themselves and not from a field you place.
How it works
Before each simulation step, about 400,000 particles of the system are counted into a 3D grid that covers the Area, so the cost does not grow with the particle count. Two blurred copies of this grid are made: a fine one (about one cell) and a wide one (the width of Reach). Each particle is then moved towards the denser parts of the wide copy (Strength), pushed back where the fine copy is crowded (Repulsion), and can take the average motion of its neighbours (Swarm). Spin adds a sideways motion across the pull; Inertia turns the whole into a pull with momentum, like gravity. Particles outside the Area feel nothing. Only one Particle Attraction acts per Particle System: if two feed the same system, only one of them acts and the Diagnostic names the one that is ignored.
Connections
Connect Flow to the Flows input of a Particle System, with or without other forces. The Density output (0 to 1) goes to the system's Attribute input; set the colour of Appearance to Attribute to colour the cores of the clusters apart from the loose particles.
Settings
| Setting | What it does | Default |
|---|---|---|
| Strength | Pull towards the denser parts of the cloud: the speed of the gathering, which never exceeds Strength. Higher = the clusters and strands form faster and hold tighter. | 1 |
| Reach | How far the pull is felt, in units. Small = fine webs and many small clusters; large = a few big masses. The grid limits the detail: one cell is Area divided by Grid, and a Reach under about two cells gives nothing finer. | 1.5 |
| Repulsion | A pressure that grows with crowding, at the scale of one grid cell: the clusters keep a body instead of collapsing into points. More = looser, wider clusters; 0 = the particles pile up. | 0.5 |
| Swarm | The particles take on the average motion of their neighbours within Reach (0 to 0.95): the cloud moves as a school or a murmuration instead of each particle going its own way. | 0 |
| Inertia | 0 to 0.98. Turns that share of the attraction into an acceleration: the particles fall towards the clusters, overshoot and orbit; clusters circle each other and merge. It also weakens the system's Response by the same share, so every other force of the system acts more slowly too. 0 = plain velocities. | 0 |
| Spin | Sideways motion across the pull, in proportion to it. The spin axis changes slowly through space, so neighbouring clusters turn different ways. With Inertia it is what turns falls into orbits. Negative = the other way. | 0 |
| Area | Size of the cube in which the particles attract each other. Particles outside it feel nothing. A compact Area that fits the cloud gives finer detail, since the grid is spread over it. | |
| Center | Centre of the Area, in the system's space. Shown and used only when Follow the Cloud is off. | |
| Follow the Cloud | On: the Area glides after the middle of the cloud, so a cloud emitted away from the origin or a swarm on the move never leaves it. With Inertia, the overall drift of the cloud is also taken off, so it stays in frame. Off: the Area stays at Center. | |
| Grid | Cells per side of the grid: 32 (fastest, broad clusters), 48 (default) or 64 (finer clusters, a little heavier).
| |
| Keep Inside | On: near the edges of the Area the particles are turned back towards the middle, along a sphere inside the cube, so a swarm turns round instead of leaving. Off: the edges are open and the particles that leave are no longer attracted. |
Outputs
Flow, Density
Tips
- Select the node to see its Area in the 3D view: the cube, and the sphere where Keep Inside turns the particles back.
- Living webs (Organic Swarm preset): Strength 1.4, Reach 1.5, Repulsion 0.5, Area 16, with a slow Turbulence. A fast-changing noise tears the webs apart before they form.
- Orbiting clusters: Strength 1.4 to 2, Reach 0.5 to 0.6, Repulsion 0.1 to 0.2, Inertia 0.9, Spin 0.3 to 0.45, and little or no noise: a calm cloud breaks up into clusters, a stirred one does not.
- Reach is read once per step for the whole cloud, even when a node is linked to it; the other inputs can vary from particle to particle.