Skip to content

Nodes · More

Afterglow

Morev1coreNeeds full input

Overview

Light painting: strokes drawn, followed or generated become light in the shot, with the painter's own timing as the exposure — slow passages burn bright, fast flicks go thin, a pause is a hot dot. The plate is optional: alone it is an element, wired it is the plate plus the light. The stroke list and the drawing tools live in the panel.

Inputs

InputWhat it takes
platethe original plate, for measurement
mattethe alpha that drives this node
vectorsa baked vector field
image—

Outputs

OutputType
outImage

Parameters

ParameterTypeDefaultWhat it does
strokesTextThe painting itself: every stroke with its points, timing, colour, width and brush. Edited by the stroke list and the viewer tools, not by hand.
outputChoiceresultresult: the plate plus the light (light adds, it does not cover). element: the light alone, premultiplied, with a coverage alpha — comp it with plus, or over if you must. resultelement
modeChoiceexposureHow the painting sits in time. exposure: the photograph, all of it from the first frame. draw-on: strokes appear at the speed they were drawn, from the frame each was made on. trail: a comet — only the last trail_length seconds show, fading. exposuredraw-ontrail
trail_lengthFloat1.0In trail mode, seconds a passage stays lit before it has faded. 0 is forever — a light wall.
fpsFloat24.0Frames a second, so a stroke's recorded seconds land on the timeline's frames. Set it to the shot's rate.
exposureFloat0.0Stops over every stroke's own. The whole painting, up or down.
realismFloat1.0How much speed decides brightness, 0 to 1. 1 is physical: brightness is intensity over speed, so the timing IS the look. 0 is the poster — an even line whatever the hand did.
brushChoicepenThe tool the NEXT stroke is drawn with — the tool is the look. pen: a round tube (the fox). blade: a ribbon with bright rims. fibre: a bundle of strands. orb: a light spun on a string. elwire: soft and smoky. laser: hair-thin. pixelstick: the image input emitted along the stroke. penbladefibreorbelwirelaserpixelstick
colorColor[1.0, 0.55, 0.15, 1.0]The next stroke's colour. Each stroke keeps its own, so changing this never repaints what is drawn.
widthFloat6.0The next stroke's emitter width in pixels. Thinner than a pixel is fine: it gets dimmer, never lost.
stopsFloat3.0The next stroke's intensity in stops. Bring it up until the core clips — the colour lives in the falloff.
softnessFloat1.0The diffuser on the next stroke's emitter, 0 to 1. 0 is a bare LED with a hard shoulder, 1 a ping-pong ball.
fillFloat0.3Blade: how much of the light is in the milky interior, 0 to 1. The rest is in the two bright rims.
strandsInt12Fibre: how many strands. Thinner than a pixel is fine — they get dimmer, never lost.
spreadFloat14.0Fibre: how far the strands spread either side of the path, in pixels.
lagFloat0.06Fibre: the last strand lags the first by this many seconds along the path.
spinFloat2.0Orb: turns per second on the string. Fibre: the strands' wave rate.
orbitFloat30.0Orb: the string's radius in pixels.
generatorChoiceharmonographWhich parametric source + Generate adds: harmonograph, Lissajous, spirograph, rose, the Lorenz flow, the Clifford and de Jong maps (drawn as point density), a mandala, or warp streaks (hyperspace: many strokes racing from the centre). harmonographlissajousspirographroselorenzclifforddejongmandalawarp
gen_sizeFloat300.0The generated stroke's size in pixels, about the frame's centre.
gen_secondsFloat4.0How long the generated stroke takes to draw, in seconds — its exposure clock, and how draw-on and trail time it.
gen_pointsInt2000How many points the generator draws. Maps want thousands; a rose wants hundreds.
gen_aFloat3.0The generator's first number — see the generator: harmonograph and Lissajous frequencies, spirograph's big wheel, the rose's petal count, the maps' a.
gen_bFloat2.0The generator's second number: the second frequency, the small wheel, the maps' b, the mandala's repeats.
gen_cFloat0.0The generator's third number: damping (harmonograph), phase (Lissajous), pen offset (spirograph), the maps' c, the mandala's petal depth.
gen_dFloat0.0The generator's fourth number: a phase, the maps' d, the mandala's counter-rotation.
gen_seedInt1Which random start the maps and the Lorenz flow take.
tremorFloat0.0For generated and imported strokes: a small organic wobble in pixels, so a formula reads as a hand. Freehand has its own.
boilInt0For generated strokes with tremor: re-roll the wobble every this many frames, for stop-motion light animation. 0 holds one wobble.
follow_onChoiceoffoff: no follow. point: the follow knob's animation is the emitter. blob: the brightest blob in the plate is — a practical LED wand found in the footage, over follow_window frames. offpointblob
followFloat2[0.0, 0.0]Follow: the emitter's position, animated. Link a Tracker's track into it (⌖ Follow track) or key it by hand; the trail is the path it traces from follow_start, spline-fitted and resampled so fast moves never bead.
follow_startFloat1.0The frame the followed emitter switches on. Its clock starts here.
follow_windowInt48Blob follow: how many frames back the plate is searched for the wand — the trail cannot be longer than this.
blob_thresholdFloat2.0Blob follow: how bright a pixel must be to count as the wand. The emitter is the centroid of everything brighter, each frame.
sparksFloat0.0Sparks thrown off every stroke: how many per pixel of path. In exposure mode each spark's whole flight is on the film; in draw-on and trail each is where it is now. 0 is none.
spark_lifeFloat0.6Seconds a spark burns before it is out.
spark_speedFloat120.0How fast sparks leave the path, in pixels a second (each a little different).
spark_spreadFloat40.0The cone round the path's direction sparks fly into, half-angle in degrees.
spark_gravityFloat400.0Pixels a second squared, down the screen.
spark_stopsFloat-2.0Each spark's brightness in stops relative to the stroke it came off. −2 is a quarter.
follow_predictFloat0.0The tracer: seconds of path predicted past the followed point by a ballistic fit through its last positions — the apex and landing of a ball — drawn 1.5 stops dimmer. 0 is off.
pixelstick_byChoicetimePixelstick: which column of the image input a point of the stroke emits — by the clock (walking speed sets the stretch) or by distance along the path. timedistance
pixelstick_heightFloat60.0Pixelstick: how tall the image stands across the stroke, in pixels.
export_pathTextWhere ⤓ Export USD writes the painting: BasisCurves per stroke (points, widths, colour, the clock) and a light per segment, so Unreal or Houdini can light its CG with the same painting. Empty writes afterglow_<node>.usda beside the project.
placeChoicepaperWhere the NEXT stroke lives. paper: the screen, every frame. surface: pinned to the plate's own ground or object under it (needs a position pass: wire a Fathom), so it rides a moving camera. plane: standing on the ground at plane_base, facing camera, at true scale — the fox. papersurfaceplane
plane_baseTextWhere the stand-up plane stands: Ctrl+click the ground in the viewer with place = plane. Stores the pixel and the ground's metres-per-pixel there; the viewer draws the base line and a 1 m tick from it.
depth_toleranceFloat0.1How much nearer the plate's surface may be than a stroke's anchor before the point counts as hidden behind it, in world units. Raise it if strokes on a rough surface flicker; lower it if they show through things.
glowFloat1.0Bloom around the light: how far and how much the strokes' light blooms, as a camera's lens would.
halationFloat0.3The warm halo a film stock puts around a bright light; 0 = none.
streaksInt0Star streaks from the brightest points: their strength; 0 = none.
streak_lengthFloat120.0How far the streaks reach, in pixels.
streak_angleFloat0.0The streaks' angle in degrees, as a filter on the lens would set it.
chromaticFloat0.0Colour fringing on the light's edges — the lens splitting red and blue; 0 = none.
spillFloat1.0The strokes light the world: each becomes a tube of light standing on the plate, and the plate's ground and objects are lit by it (needs position and normal passes: wire a Fathom or CG passes). This is the gain; 0 is off.
spill_heightFloat0.1How far in front of the surface a stroke drawn on the paper stands, in the plate's world units — a light painting is drawn a hand's breadth off what it is over. Strokes placed on the surface or a plane use their own height.
spill_roughnessFloat0.6The surface's roughness for the spill's specular half, 0 to 1. Low is wet pavement; high is dry cloth.
disabledBoolfalseBypass: the node passes its first input through untouched (D in the graph). The knobs keep their values for when it comes back.
labelTextA note shown under the node in the graph — what this node is FOR. Never affects the render or the cache.
hide_inputBoolfalseDraw the node without its input wire — a tidy graph for a node whose source is obvious (a Dot, a viewer tap).