Geometry Nodes – Generic Particle System

On:

|

|

You ever need to use Geometry Nodes for an effect that doesn’t work well with the basic particle system?

You ever get tired of building the same god damn particle system in Geometry Nodes any time you want to emit points and then instance objects on those points?

SAY NO MORE!

Instances following direction of velocity.
Instances pivoting around a chosen axis with random initial rotation.
Instances colliding, avoiding, and attracting towards objects.
Particles bouncing off of surfaces.
Particles sticking to surfaces.
Mesh to SDF -> SDF to Mesh conversion, allowing instances to merge into each other.
Particles attracting and colliding with themselves.
Particles avoiding one another.
Particles colliding with themselves and another object.
Particles converted to curves with a profile.
Curves rotating on a chosen axis while using the curvefactor attribute for shading.
Particles inheriting the momentum of an object as it spins in place.

I created an alternate version of the base particle system that features:

  • Points on surface and conversion of mesh to volume.
  • Point generation with seed, density and lifetime controls.
  • Choice of various primitives, curves, as well as individual objects and collections as instances.
  • The ability to assign a material to the instances.
  • The ability to realize instances, as well as make them merge into one another by converting them into an SDF Grid. This is the same principle as my globules effect.
  • General movement controls, as well as position noise, velocity variation and loss over time, rotation over time, and instance rotation towards vector of travel.
  • Gravity.
  • Collision, repulsion, and attraction forces with object and collection options, as well as radius and strength controls. Collisions also have bounciness and stickiness controls.
  • Collision, repulsion, and attraction with itself, allowing particles to react to other particles.
  • Instance rotation, as well as random rotation and angular velocity. Also allows rotation of instances to always face camera, which is handy for billboard effects.
  • Several named attributes that can be used for shaders:
    • age: how old the particle is
    • lifetime: how long the particle can live for
    • collision: whether the particle is currently colliding with an object
    • selfcollision: whether the particle is currently colliding with another particle
    • hitnormal: the normal of a collision
    • hitdistance: the distance between the raycast and the collision hit
    • id: index of particle
    • parsize: how big the particle is
    • velocity: vector and speed of particle travel
    • randomvalue: a random value between 0 and 1 per particle
    • UVMap: a UV map that gets updated depending on which instanced object is being used.
    • curvefactor: the factor of each curve, with 0 at the tail and 1 at the tip (curves automatically realize instances, so use Geometry for Attribute nodes)

*When using the Attribute node in Shader Nodes, make sure you pay attention to its type. Use “Geometry” for when you realize instances, and use “Instancer” when you are keeping the particles as instances. You can only access attributes on instances if the Attribute node is configured this way.

User Interface

Here’s a quick look at what the user interface looks like. I tried to make it as user friendly as I could, so it’s all labeled, almost everything has a tooltip, and it’s all plugged into the Group Input so you never have to enter the Geometry Nodes window.

It’s not perfect, but it performs fairly well thus far. I think there are lots of effects where the basic particle system works better, like when you need to make use of Blender’s built-in forces. This is generally better for more complex geometry instances, or when you want your instances to merge into each other through a mesh-SDF-mesh conversion process. This also has the ability to convert the particles into curves with trails.

If you wish to bake the results, go into the Physics tab and under Simulation Nodes, click Bake.

*Note: For Blender 5.3 and on! Make sure you update your Blender before using.

Posted by

in

Leave a Reply

Your email address will not be published. Required fields are marked *