ITUR

Scene Lighting

Lights the particles with the lights of the Blender scene and shadows them with its objects; the dust can then be darker than what is behind it.

What it is for

Turns glowing points into a material: dust, sand, smoke, black powder, snow, glitter. Use it when the particles must belong to a lit scene, hide what is behind them, receive shadows, shadow themselves like a volume or cast a shadow on the objects. Muted, the system goes back to the additive glow look.

How it works

The add-on takes up to 4 lights of the scene (point, spot, area, sun): the ones that matter most at the position of the system's object, visible, and allowed by Blender's light linking. For each particle it adds the light of each of them: Diffuse (the lit side, strongest with the light behind the camera), Backlight (light passing through the dust, strongest when you look towards the light) and Sparkle (each particle is a tiny mirror flake with its own slowly turning direction). Ambient adds the colour of the World, Emission the particle's own colour, and Brightness scales the result. Each particle also carries an opacity: summed per pixel, it becomes the coverage of the cloud, which is how the dust hides the scene. Shadows of the scene objects come from shadow maps drawn by the add-on for the first 2 lights that cast shadows. Cloud Shadows use grids seen from those 2 lights that count the particles between each point and the light: Self Shadow dims the particles deep in the cloud and lets its front show, Shadow on Scene darkens the surfaces behind the cloud.

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. It needs at least one light in the scene; add Scene Depth so the dust also passes behind the objects.

Settings

SettingWhat it doesDefault
Imageconnection
OpacityHow much each particle covers what is behind it. Low values give a thin, translucent veil; high values give a dense material that hides the scene. It also makes the Cloud Shadows denser.1
BrightnessMultiplies all the light of the dust (lights, Ambient and Emission). Use it like an exposure for the lit system.1
ColorColour of the material itself, as a surface colour: light grey for dust, near black for powder, warm yellow for gold.0.8, 0.8, 0.8, 1
Particle ColorFrom 0 to 1: how much the colour of each particle (ramp, emitter colours) tints the material. 0 = Color alone; 1 = Color multiplied by the particle colour.0
DiffuseLight sent back towards the light: the cloud is brightest when the light is behind the camera, like a matte surface.1
Tube ShadingStreaks are lit like tubes instead of flat flakes of dust: across each streak, the side facing a light is lit and the other side stays dark, so the trails get volume. 0 = flat dust (as before), 1 = tubes. Each light keeps all of its light (the tube only moves it from one side of the streak to the other). Only stretched particles (Streak, Motion Blur) change, from about 2.5 times longer than wide; round particles stay dust. It shows on streaks a few pixels wide or more; in a dense cloud of thin streaks it hardly changes the picture. Works with Fast Draw (no cost measured) and with quads (a little slower). 1 on a new node, 0 on a node from an older scene.1
BacklightLight that crosses the dust: the cloud lights up when you look towards the light, with the light behind it. High values suit smoke and haze.1
Backlight FocusFrom 0 to 0.95: how tightly the backlight gathers around the direction of the light. 0 = the same in every direction; high values give a tight, intense halo around the light and less elsewhere.0.6
SparkleStrength of the glints: flakes flash when they face the light and the camera. 0 = no glint. The flakes turn at the pace of Twinkle Speed on the Appearance node.0
Sparkle SizeFrom 0 to 1. Low = rare, tiny, sharp flashes (glitter); high = wider, softer glints on many particles at once.0.3
Sparkle TintColour of the glints, from 0 to 1: 0 = the colour of the light, 1 = the colour of the particle material.0.7
AmbientAmount of World colour that lights the dust evenly, shadows included. With a black World it does nothing; with an image as World, a rough grey average is used.0.5
EmissionLight of the particle's own colour, added whatever the lights and shadows: embers or glowing dust inside a lit cloud.0
ShadowsFrom 0 to 1: strength of the shadows that the objects of the scene cast on the particles. 0 = no shadow (and no shadow maps to compute).1
Shadow SoftnessFrom 0 to 1: softness of the edges of the shadows on the particles. It also softens the Cloud Shadows.0.3
Self ShadowFrom 0 to 1: the cloud shadows itself. The side facing the light stays bright, the core and the far side go dark, and the front of the cloud shows over what is behind: folds and hollows appear. 0 = off.0.8
Cloud DensityHow opaque the cloud is to light for Self Shadow and Shadow on Scene. High = dense, dark core and strong shadow; low = light passes through. The result does not depend on the particle count.1
Shadow on SceneFrom 0 to 1: the cloud casts a soft shadow on the objects of the scene. 0 = off. The background is not darkened.0.6
MaterialPreset that fills in the inputs. Dust: light grey, lit from the front and glowing against the light. Black Powder: dark and dense, hides what is behind, rim lit. Gold Dust: warm metallic dust with glints. Sand: opaque matte grains. Glitter: mirror flakes that flash. Smoke / Haze: thin, translucent, very bright against the light. Snow: white flakes. Custom: keeps the current values. Choosing a preset overwrites the values of the inputs (Backlight Focus and Sparkle Tint are left as they are).
  • Dust - Light grey dust, lit from the front and glowing against the light
  • Black Powder - Dark, dense powder: hides what is behind, rim lit by back lights
  • Gold Dust - Warm metallic dust with glints
  • Sand - Opaque grains, matte
  • Glitter - Mirror flakes that flash when they face the light
  • Smoke / Haze - Thin, translucent, very bright against the light
  • Snow - White flakes
  • Custom - Keep the values below
Shadow ResolutionShown as Shadows. Size of the shadow maps: 1024 = fast, 2048 = balanced, 4096 = sharper shadows, more GPU memory.
  • 1024 - Fast
  • 2048 - Balanced
  • 4096 - Sharp shadows (more GPU memory)

Outputs

Image

Tips

See also

Scene DepthLight ObjectsFogExposure