Hides the particles that are behind the objects of the scene and fades them where they meet a surface.
What it is for
Makes the particles sit inside the 3D scene instead of floating over it: dust passes behind a statue, a stream disappears into a wall. Use it whenever the particles share the frame with objects.
How it works
The add-on draws the visible geometry of the scene itself, from the same view, into a depth image: meshes, curves, surfaces, text and metaballs. For every pixel of a particle it compares the depth of the particle with the depth of the scene. A particle behind a surface is hidden; within the Softness distance in front of the surface it fades progressively, which avoids a hard cut. Occlusion mixes between no hiding and full hiding. The depth image is rebuilt only when the view, the frame or the geometry changes, and the viewport and the render use the same code, so they match. Objects shown as Wire or Bounds, hidden objects (hidden from render, in a render) and objects whose material is a volume only do not hide anything; a transparent material still hides the particles.
Connections
Single node: plug the Render output of a Particle System (or the Image output of the previous effect) into its Image input, and its Image output into the next effect or into the Systems input of the Render node. It only sets numbers, so its place in the chain does not matter. The same effect exists as a section of the Effects node, with its own on/off checkbox. Muting it turns the occlusion off.
Settings
| Setting | What it does | Default |
|---|---|---|
| Image | connection | |
| Occlusion | How much the objects hide the particles, from 0 to 1. 1 = fully hidden behind objects; 0 = the particles show through everything; values in between leave them partly visible, like an x-ray. | 1 |
| Softness | Distance in front of a surface, in scene units, over which a particle fades before it touches it. 0 = hard cut at the surface. Raise it to remove the sharp line where a cloud crosses an object. | 0.1 |
Outputs
Image
Tips
- Keep Softness small compared to the scene (a few centimetres to a few tenths of a unit): large values also fade particles that are clearly in front of the objects.
- Volumes, hair and transparency are not taken into account: a glass object hides the particles like an opaque one.
- The lines of Line Trails are not hidden by the objects.
- Scene Lighting and Light Objects use the same scene geometry for their shadows and their fill light.