FUSION · FULL ARTICLE
pCustom
A programmable particle processor that directly recalculates position, velocity, rotation, spin, size, color and other properties, with two dedicated image inputs available to expressions.
Overview
pCustom belongs inside a particle chain between pEmitter/pImageEmitter and pRender. It is not a normal image effect and does not create particles: it evaluates custom expressions and writes new values into properties of particles that already exist.
The important distinction from pCustomForce is the level of intervention. pCustomForce adds calculated force/torque to the simulation, while pCustom can directly rewrite particle state such as position, velocity, rotation, spin, size and color. That makes pCustom more general, but it also makes unstable or non-physical behavior easier to create accidentally.
pCustom has three permanent inputs: orange Particles, green Image 1 and magenta Image 2. Image 1/2 exist specifically for custom image calculations and pixel-read functions. They are real 2D image inputs, not masks and not particle streams.
A fourth input is conditional. Region = Bitmap or Mesh exposes a dynamic Region socket: Bitmap accepts a 2D image/selectable channel and Mesh accepts a 3D mesh. The Resolve 21 reference describes this dynamic socket as teal or white depending on how/when it appears.
The Numbers page exposes eight animatable Number In 1–8 controls. Current values are available to expressions as n1…n8. The Custom expression system also documents time-sampled n#_at(t) access, making Number In controls suitable for art-directable parameters rather than hard-coded constants.
Positions are physically four 3D controls, Position 1–4, with X/Y/Z components. The current Resolve 21 manual has a heading that says Position 1–8, but its own Inspector image and variable table show Position 1–4 and p1x/p1y/p1z … p4x/p4y/p4z. This article follows the observable four-position control set.
Setup 1–8 are intended for calculations that do not depend on a particular particle and can be evaluated once per frame before the rest of the custom math. This is the right place for global coefficients, time-derived values and reusable setup work.
Intermediate 1–8 run after Setup and provide another layer of reusable math before the Particle expressions. Splitting a long expression into staged values is easier to debug than repeating one dense formula in multiple particle channels.
The Resolve 21 reference is internally inconsistent about the result-variable ranges: the Inspector exposes eight Setup and eight Intermediate fields, the prose explicitly describes i1…i8 for Intermediate, while its summary table still shortens some Setup/Intermediate ranges to the first four. Treat the first four as unambiguously documented and live-check higher indices in the target Resolve build before relying on them in a production rig.
The Particle page is the core of pCustom. It exposes particle position px/py/pz, velocity vx/vy/vz, rotation rx/ry/rz and spin sx/sy/sz to the expression system. An expression computes the next property value; for example `vx + n1` reuses current vx and can accumulate its effect across frames.
Additional exposed properties include current size, particle id and r/g/b/a color, along with time, age and lifespan. These values let motion or appearance depend on particle age, identity, current size or composition time.
Image 1/2 also provide aspect-corrected particle coordinates pxi1/pyi1 and pxi2/pyi2 plus image dimensions w1/h1 and w2/h2. The same Custom operators, functions and conditionals are available to pCustom, including documented pixel-read functions such as getr1w(x,y) and getz2b(x,y).
Region information is available to expressions as well as to Conditions. rgnhit reports a hit, rgndist exposes distance from the Region, condscale exposes Region strength at the particle, rgnix/rgniy/rgniz report intersection position, and rgnnx/rgnny/rgnnz report the surface normal.
mass is listed among the exposed particle properties, but the reference explicitly says it is not currently used by anything. Do not build production physics around mass without testing the exact Resolve version.
Conditions run as a filter for the custom operation. Probability is evaluated for each particle on every frame, Start/End Age restricts a normalized fraction of lifespan, and Set Mode plus Set 1–32 filter Sets that were assigned upstream.
Region Mode and Region add a spatial condition. Built-in Bezier, Cube, Line, Rectangle and Sphere regions live inside the node. Bitmap and Mesh create the dynamic Region input. Do not confuse that Region input with permanent Image 1/Image 2: the image inputs feed expression data, while Region determines where the node itself is allowed to act.
You do not need to use every subsystem at once. A simple pCustom rig can be Particles plus one Particle expression. Add Numbers, Positions, Images, Setup/Intermediate, Conditions and Region only when they make the result clearer or more controllable.
Develop pCustom against a small predictable particle stream. Change one channel, keep Probability at 1, and remove spatial restrictions while validating the first expression. Then add inputs and filters one at a time and inspect playback because particle state evolves over time.
Judge the final result after pRender. pCustom itself does not produce an RGBA frame. Image 1 and Image 2 may carry ordinary images into the node, but they are auxiliary data sources for custom calculations rather than the pCustom output.
When to use it
- Recalculate a precise procedural trajectory instead of stacking preset force nodes
- Drive velocity, rotation or spin from custom expressions
- Link motion or appearance to age, lifespan, id, time or current particle state
- Expose formula constants through Number In 1–8 and animate them like normal controls
- Use Position 1–4 as 3D reference points for procedural motion
- Sample Image 1/Image 2 through pixel-read functions and drive particle properties from image content
- React to Region contact through rgnhit, rgndist and intersection/normal variables
- Restrict custom logic by Probability, age, Sets or a spatial Region
Article screenshots
Inputs & outputs
pCustom receives a particle stream plus two image inputs; Region appears separately only for Bitmap/Mesh
pCustom is not a normal image effect. It has three permanent inputs: orange Particles, green Image 1 and magenta Image 2. Image 1/2 feed custom expressions and pixel-read functions. A dynamic Region input appears only for Region = Bitmap or Mesh.
Evaluates custom expressions and directly changes properties of eligible particles while keeping the output as particle data.
Inputs
- Particles
Primary particle stream
Receives: Particle data from pEmitter, pImageEmitter, pMerge or another particle node.
Inside the node: pCustom reads current particle state and writes new property values from expressions.
Typical sources: pEmitter · pImageEmitter · pMerge · pTurbulence · pDirectionalForce
MediaIn and ordinary RGBA images do not belong on this primary particle input.
- Image 1
First 2D image source for expressions
Receives: Any 2D image that custom expressions need to sample.
Inside the node: The source is available through Image 1 coordinates/dimensions and input-index-1 pixel-read functions.
Typical sources: FastNoise · MediaIn · Background
Image 1 does not spatially limit pCustom by itself and is not Bitmap Region.
- Image 2
Second 2D image source for expressions
Receives: A second independent 2D image for custom calculations.
Inside the node: The source is available through Image 2 variables/functions independently from Image 1.
Typical sources: MediaIn · FastNoise · Background
Use the correct image-input index in pixel-read functions; Image 2 has its own variables/index.
- Region (Bitmap/Mesh, dynamic)
External spatial Region
Receives: For Bitmap: a 2D image/selectable channel; for Mesh: a 3D mesh.
Inside the node: This socket appears only for Bitmap/Mesh and defines the spatial area where pCustom may act.
Typical sources: Bitmap image source · Shape3D / Merge3D mesh
This is not Image 1/Image 2 or an ordinary Effect Mask. Built-in Regions need no external cable.
Outputs and destination
Particles
The particle stream after custom expressions have been evaluated for particles that passed Conditions/Region.
Next step: pRender · pCustomForce · pBounce · pFriction · pTurbulence · another particle node
Even with Image 1/Image 2 connected, this is not an RGBA image. Use pRender for visible pixels.
- Particles
- Particle stream after pCustom evaluation. This is not an RGBA image; visible pixels are normally produced downstream by pRender.
Processing order
- Particles brings an existing particle stream.
- Image 1 and Image 2 optionally provide 2D image data to custom/pixel-read expressions.
- Numbers/Positions/Setup/Intermediate provide art-directable inputs and staged math.
- Conditions filters particles by Probability, Age and Sets.
- Region Mode/Region can add a spatial gate; Bitmap/Mesh expose a dynamic Region socket.
- Particle expressions rewrite properties and Particles Output continues to pRender or another particle tool.
Sample Fast Noise through Image 1
pEmitter.Particles → pCustom.Particles → pRender.Particles · FastNoise.Output → pCustom.Image 1 → MediaOut
The particle stream and image branch enter pCustom simultaneously: Image 1 feeds expressions while the output remains particle data.
pCustom has three permanent inputs: Particles, Image 1 and Image 2. Region is a fourth conditional input only for Bitmap/Mesh. Image inputs feed expressions; Region limits spatial action. There is no ordinary blue Effect Mask.
Parameters
pCustom · Inspector reference
Read pCustom in layers: input controls, Setup/Intermediate, Particle state, Region variables, Conditions and spatial Region. Keep the two permanent image inputs separate from the dynamic Bitmap/Mesh Region input; they serve different data paths.
- Flow
- Particles + Image 1 + Image 2 → pCustom → particles
- Controls
- Numbers / Position 1–4
- Math
- Setup → Intermediate → Particle
- State
- px/vx/rx/sx · size · rgba
- Filters
- Conditions → Region
Numbers / Positions · Input controls
Random Seed, Number In and Position controls provide art-directable values without changing particle state by themselves.
- Random Seed
Numbers / Positions > Random SeedSets reproducible randomness for random-dependent custom calculations. Keeping the seed fixed makes expression changes easier to compare.
Check / distinguish: Change only this control from its default state and compare before/after.
- Reseed
Numbers / Positions > ReseedChooses a new Random Seed. Use it after debugging when you want another random realization without changing the formula.
Check / distinguish: Change only this control from its default state and compare before/after.
- Time Lock
Numbers / Positions > Time LockLocks time-related randomness where the expression system uses it. It is not a particle-motion freeze and does not stop expression evaluation.
Check / distinguish: Change only this control from its default state and compare before/after.
- Number In 1–8
Numbers / Positions > Number In 1–8Eight animatable numeric controls for custom expressions. Expose strength, frequency, amplitude, phase, scale and other coefficients here instead of hard-coding them repeatedly.
Check / distinguish: Change only this control from its default state and compare before/after.
- n1…n8 / n#_at(t)
Numbers / Positions > n1…n8 / n#_at(t)Expression variables for Number In controls. n1…n8 read current values; the documented Custom expression system also supports time-sampled Number controls through the n#_at(t) family.
Check / distinguish: Change only this control from its default state and compare before/after.
- Position 1–4
Numbers / Positions > Position 1–4Four animatable 3D position controls for expressions. The Resolve 21 Inspector shows four positions. The manual heading 'Position 1–8' conflicts with its own screenshot and p1…p4 variable table.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- p1x/p1y/p1z … p4x/p4y/p4z
Numbers / Positions > p1x/p1y/p1z … p4x/p4y/p4zPosition 1–4 components exposed to the expression engine. Use them as centers, targets, directions or procedural control points.
Check / distinguish: Change only this control from its default state and compare before/after.
- Three permanent inputs
Flow > pCustom inputsOrange Particles and two image inputs coexist permanently. Image 1/Image 2 are not generated by the Region menu.
Check / distinguish: Connect pEmitter to Particles and two distinct image sources to Image 1/2; output should remain a particle stream.
- Number controls are rig parameters
Numbers > Number In 1–8Number In controls are animatable and exposed as n1…n8. They make a better rig interface than repeating constants inside formulas.
Check / distinguish: Replace one hard-coded constant with n1 and adjust Number In 1 without editing the expression.
- Position 1–4 is the observable set
Positions > Position 1–4Resolve 21's screenshot and p1…p4 variables support four XYZ position controls. Treat the Position 1–8 heading as editorial inconsistency unless a live build proves otherwise.
Check / distinguish: Open Positions and count the physical controls before relying on p5+ in a template.
Setup / Intermediate · Calculation staging
Setup handles shared once-per-frame math; Intermediate breaks later calculations into reusable stages.
- Setup 1–8
Setup / Intermediate > Setup 1–8Up to eight setup expressions evaluated once per frame before the remaining custom calculations. Put math here when it does not need to be repeated independently for every particle.
Check / distinguish: Change only this control from its default state and compare before/after.
- Setup result variables
Setup / Intermediate > Setup result variablesSetup results available to downstream expressions. The Resolve 21 reference explicitly lists s1…s4 despite eight UI fields; higher-index result access should be live-checked in the target build.
Check / distinguish: Change only this control from its default state and compare before/after.
- Intermediate 1–8
Setup / Intermediate > Intermediate 1–8Intermediate expressions evaluated after Setup. Use them to stage vectors, coefficients and other reusable math before Particle channels.
Check / distinguish: Change only this control from its default state and compare before/after.
- Intermediate result variables
Setup / Intermediate > Intermediate result variablesIntermediate results available to Particle expressions. Resolve 21 prose describes i1…i8, while its summary table still lists only the first four in places; treat that as a documentation inconsistency.
Check / distinguish: Change only this control from its default state and compare before/after.
- Setup is once per frame
Setup > Setup 1–8Setup expressions are intended for shared once-per-frame preparation before per-particle evaluation.
Check / distinguish: Move a shared time-based coefficient from two Particle fields into Setup and compare the result.
- Intermediate follows Setup
Intermediate > Intermediate 1–8Intermediate evaluates after Setup and lets a complex formula be decomposed into staged working values.
Check / distinguish: Calculate one coefficient first, then reference it from one Particle channel.
- Manual variable-range inconsistency
Setup / Intermediate > result variablesResolve 21 shows eight UI fields but inconsistent s/i variable ranges across its own text. Do not claim indices 5–8 as guaranteed without a live check.
Check / distinguish: Test each higher-index result variable in the target build before production use.
Particle · Particle properties
Particle expressions read current state and write new position, velocity, rotation, spin, size/color and related values.
- Particle expressions
Particle > Particle expressionsChannel expressions that directly recalculate the current particle's properties. They can use current state, custom inputs, Setup/Intermediate results, time/age and Region variables.
Check / distinguish: Change only this control from its default state and compare before/after.
- Position X / Y / Z — px / py / pz
Particle > Position X / Y / Z — px / py / pzCurrent particle position and expressions for new XYZ coordinates. Direct position rewriting differs from force/velocity and can impose a trajectory without inertia.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Velocity X / Y / Z — vx / vy / vz
Particle > Velocity X / Y / Z — vx / vy / vzCurrent particle velocity and expressions for new velocity components. Expressions such as `vx + n1` reuse current state and can accumulate across frames.
Check / distinguish: Change only this control from its default state and compare before/after.
- Rotation X / Y / Z — rx / ry / rz
Particle > Rotation X / Y / Z — rx / ry / rzParticle orientation components. Whether the change is visually obvious depends on particle style and rendering mode.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Spin X / Y / Z — sx / sy / sz
Particle > Spin X / Y / Z — sx / sy / szParticle spin components. Do not confuse current Rotation with Spin, which drives rotational change over time.
Check / distinguish: Change only this control from its default state and compare before/after.
- Size — size
Particle > Size — sizeCurrent particle size exposed to custom math. Size can be driven from age, speed, image samples or custom controls.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Red / Green / Blue / Alpha — r / g / b / a
Particle > Red / Green / Blue / Alpha — r / g / b / aCurrent particle color and alpha channels exposed to expressions. These can be driven from Image 1/2; final appearance still depends on particle style and pRender.
Check / distinguish: Compare RGB and Alpha separately before and after changing this control.
- Particle ID — id
Particle > Particle ID — idIdentifier of the current particle. Useful for procedural variation, but do not assume a particular numbering scheme without testing.
Check / distinguish: Change only this control from its default state and compare before/after.
- Age / Lifespan — age / lifespan
Particle > Age / Lifespan — age / lifespanCurrent particle age and full lifespan. These are expression variables and are distinct from the normalized Conditions Age range.
Check / distinguish: Change only this control from its default state and compare before/after.
- Time — time
Particle > Time — timeCurrent composition time/frame available to expressions. Useful for periodic or time-dependent math; verify the intended time units in the target comp.
Check / distinguish: Change only this control from its default state and compare before/after.
- Image 1 coordinates — pxi1 / pyi1
Particle > Image 1 coordinates — pxi1 / pyi12D particle position corrected for Image 1 aspect. Designed for sampling Image 1 at the particle's location.
Check / distinguish: Change only this control from its default state and compare before/after.
- Image 2 coordinates — pxi2 / pyi2
Particle > Image 2 coordinates — pxi2 / pyi2Aspect-corrected 2D particle position for Image 2. Use with pixel-read functions targeting the second image input.
Check / distinguish: Change only this control from its default state and compare before/after.
- Image dimensions — w1/h1, w2/h2
Particle > Image dimensions — w1/h1, w2/h2Image 1 and Image 2 dimensions inside expressions. Useful when math depends on the connected source resolution.
Check / distinguish: Change only this control from its default state and compare before/after.
- Pixel-read functions
Particle > Pixel-read functionsCustom-class functions for sampling Image 1/Image 2. Resolve documents the get… family including examples such as getr1w(x,y) and getz2b(x,y); boundary behavior depends on the function suffix.
Check / distinguish: Change only this control from its default state and compare before/after.
- Mass — mass
Particle > Mass — massDocumented particle property named mass. The official reference says it is not currently used by anything; do not treat it as working physical mass without live verification.
Check / distinguish: Change only this control from its default state and compare before/after.
- Direct rewrite is not force
Particle > Position / VelocitypCustom writes a new particle property directly. That differs fundamentally from adding a force that the simulation integrates.
Check / distinguish: Compare pCustom Velocity X against pCustomForce Force X using the same control value.
- State can accumulate
Particle > current-property expressionsAn expression such as vx+n1 reads current vx, so the change can accumulate across frames.
Check / distinguish: Set n1 to 0, then a small positive value and compare velocity over several frames.
- Image 1 sampling
Particle > get…1…(pxi1, pyi1)pxi1/pyi1 are particle coordinates corrected for Image 1 aspect; use them for predictable sampling of the first image input.
Check / distinguish: Feed a simple gradient into Image 1 and verify one RGB channel through a get…1… function.
- Image 2 is independent
Particle > Image 2 variablespxi2/pyi2 and input-2 pixel functions refer only to the second magenta image input.
Check / distinguish: Feed a visibly different source to Image 2 and verify that changing the function input index changes the sampled source.
- mass is not usable physics
Particle > massmass appears in the exposed-property list, but the manual explicitly says it is currently unused.
Check / distinguish: Do not infer physical behavior from mass without a dedicated live test.
- Output remains particles
Flow > pCustom → pRenderEven with Image 1/Image 2 connected, pCustom does not become an image compositor; its output remains a particle stream.
Check / distinguish: Trace the chain to pRender and verify that RGBA is created there.
Region variables · Region variables
rgnhit, distance, condition scale, intersection and normal make Region geometry available directly to custom math.
- Region hit — rgnhit
Region variables > Region hit — rgnhitHit/contact flag for the current particle against the defined Region. The reference describes a value of 1 when the particle hits the Region.
Check / distinguish: Change only this control from its default state and compare before/after.
- Region distance — rgndist
Region variables > Region distance — rgndistDistance from the current particle to the Region. Useful for falloff or procedural behavior near a boundary.
Check / distinguish: Change only this control from its default state and compare before/after.
- Condition scale — condscale
Region variables > Condition scale — condscaleRegion-condition strength at the particle position. Allows the spatial condition to participate directly in custom math.
Check / distinguish: Change only this control from its default state and compare before/after.
- Region intersection — rgnix / rgniy / rgniz
Region variables > Region intersection — rgnix / rgniy / rgnizCoordinates of the particle's Region intersection. Useful for reactions that depend on the exact contact point.
Check / distinguish: Change only this control from its default state and compare before/after.
- Region normal — rgnnx / rgnny / rgnnz
Region variables > Region normal — rgnnx / rgnny / rgnnzRegion surface normal at the particle hit. Useful for direction, reflection or orientation that depends on surface direction.
Check / distinguish: Change only this control from its default state and compare before/after.
- Hit vs distance
Particle > rgnhit / rgndistrgnhit describes contact while rgndist describes distance to Region. They are different signals for event and falloff logic.
Check / distinguish: Use one signal first, then the other, rather than combining both in the initial expression.
- Intersection vs normal
Particle > rgni* / rgnn*rgnix/y/z describe the intersection position; rgnnx/y/z describe the surface-normal direction. Do not substitute one for the other.
Check / distinguish: On a simple Mesh/Line, test a position-dependent and a normal-dependent expression separately.
Conditions · Which particles evaluate
Probability, normalized Age and Sets limit the particle subset before the custom change is applied.
- Probability
Conditions > ProbabilityChance that pCustom applies to an eligible particle on the current frame. It is recalculated for each particle on every frame; 0.6 does not define one permanent 60% subset.
Check / distinguish: Change only this control from its default state and compare before/after.
- Age Start / End
Conditions > Age Start / EndNormalized lifespan range in which pCustom is allowed to act. 0.8–1.0 means the final 20% of particle life, not timeline frames.
Check / distinguish: Change only this control from its default state and compare before/after.
- Set Mode
Conditions > Set ModeControls how Conditions use particle Sets. Ignore Sets, Affect Specified Sets and Ignore Specified Sets filter groups assigned upstream.
Check / distinguish: Change only this control from its default state and compare before/after.
- Set 1–32
Conditions > Set 1–32Sets used by Conditions filtering. pCustom does not create these groups; they are assigned upstream by tools such as pEmitter, pImageEmitter, pChangeStyle or pSpawn.
Check / distinguish: Change only this control from its default state and compare before/after.
- Probability is per frame
Conditions > ProbabilityProbability does not create a permanent random group; the chance is recalculated for each particle on every frame.
Check / distinguish: Debug at 1 first, then try 0.5 and inspect several consecutive frames.
- Age filter vs age variable
Conditions > Age / Particle > ageStart/End Age are normalized lifespan filters. `age`/`lifespan` are values available to expression math.
Check / distinguish: Compare a Conditions Age gate against an explicit age/lifespan expression separately.
Region · Where evaluation applies
Region Mode/Region add a spatial gate. Bitmap/Mesh create a separate dynamic Region input that must not be confused with Image 1/Image 2.
- Region Mode
Region > Region ModeChooses how the custom operation relates to the Region: intersecting, inside/outside, entering/leaving and related conditions. Disable spatial gating while validating the base expression, then add the required event.
Check / distinguish: Change only this control from its default state and compare before/after.
- Region
Region > RegionSelects All, Bezier, Bitmap, Cube, Line, Mesh, Rectangle or Sphere. Built-in shapes are generated inside pCustom; Bitmap/Mesh use an external dynamic Region input.
Check / distinguish: Change only this control from its default state and compare before/after.
- Bitmap Region input
Region > Bitmap Region inputDynamic 2D Region source exposed by Region = Bitmap. This is a selectable image/channel used for spatial restriction, not Image 1/Image 2 and not an ordinary Effect Mask.
Check / distinguish: Change only this control from its default state and compare before/after.
- Mesh Region input
Region > Mesh Region inputDynamic 3D mesh source exposed by Region = Mesh. Accepts external 3D mesh geometry for pCustom's spatial condition.
Check / distinguish: Change only this control from its default state and compare before/after.
- Region socket is dynamic
Flow > Region (Bitmap/Mesh)The Region input appears only after choosing Bitmap or Mesh. Built-in regions do not require an external cable.
Check / distinguish: Switch Line → Bitmap → Mesh and observe the additional socket appear/change type.
- Region is not Image 1
Flow > Image 1 vs RegionA 2D source may participate in different roles, but Image 1 feeds expressions while Bitmap Region limits where pCustom applies.
Check / distinguish: Connect the source only to Image 1, then only to Bitmap Region, and compare behavior.
Before adjusting the node
- pCustom has three permanent inputs: orange Particles, green Image 1 and magenta Image 2.
- The Region socket is absent by default and appears only when Region = Bitmap or Mesh.
- Image 1/Image 2 feed pixel-read math; Bitmap/Mesh Region limits where the node acts. These are different subsystems.
- The Resolve 21 Inspector shows Position 1–4 despite the manual text's inconsistent Position 1–8 heading.
- Setup/Intermediate expose eight UI fields, but the manual is inconsistent about higher-index result variables; indices 5–8 need live verification.
- Probability is evaluated for each particle on every frame; start at 1 for deterministic debugging.
- mass is officially described as currently unused; do not treat it as verified physical mass.
- pCustom output remains particle data; visible RGBA appears after pRender.
Reference documentation
- Blackmagic Design · Fusion Visual Effects
Official Blackmagic learning material for Fusion logic, masks, compositing and core tools.
- Blackmagic Design · DaVinci Resolve support
Current Resolve/Fusion manuals and support material. Exact control names and placement can vary by version.
Examples
Expression-driven velocity with Number In
Understand that pCustom directly recalculates a particle property while Number In acts as an animatable expression control.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; pCustom topology and documented expression variables cross-checked against the Resolve 21 Particle Nodes reference · Free / Studio; exercises use the native particle toolset · Windows target; live Resolve execution not run in this package
1920 × 1080 · 24 fps · 120 frames · Fusion particle simulation; pCustom edits particle state and pRender converts the stream to a 2D image for the exercise output
- DaVinci Resolve 21+
- Native pEmitter, pCustom, pRender and Fast Noise nodes
Nodes and connections
EMIT— pEmitter · pEmitterCUSTOM— pCustom · pCustomRENDER— pRender · pRenderOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
pEmitter (EMIT)Particles | pCustom (CUSTOM)Particles | particles |
pCustom (CUSTOM)Particles | pRender (RENDER)Particles | particles |
pRender (RENDER)Image | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- pCustom (CUSTOM) / Numbers / Number In 1
0.002Expose a small art-directable increment as n1.
- pCustom (CUSTOM) / Particle / Velocity X
"vx + n1"Add the documented Number In variable to the current X velocity instead of hard-coding the constant.
- pCustom (CUSTOM) / Conditions / Probability
1Keep the exercise deterministic while learning expression evaluation.
- pRender (RENDER) / Controls / Output Mode
"2D"Explicitly produce an image for MediaOut; pRender initially defaults to 3D.
- pRender (RENDER) / Controls / View [2D]
"Front"The front view shows X/Y motion without perspective distortion.
- pRender (RENDER) / Controls / Kill Particles That Leave the View
falseLeaving the view must not kill particles and change the force comparison.
- pEmitter (EMIT) / Controls / Random Seed
17A fixed seed preserves the same initial simulation for A/B comparisons.
- pEmitter (EMIT) / Controls / Number
2A small stream keeps individual trajectories readable.
- pEmitter (EMIT) / Controls / Lifespan
120A known lifespan relates normalized Age to measurable frames.
- pEmitter (EMIT) / Controls / Lifespan Variance
0Remove death-time variation for the Age comparison.
- pEmitter (EMIT) / Controls > Velocity / Velocity
0.006Nonzero speed keeps a baseline particle in view into late Age: x=−0.35+0.006×114≈0.334 without forces.
- pEmitter (EMIT) / Controls > Velocity / Velocity Variance
0Exclude random variation in initial speed.
- pEmitter (EMIT) / Controls > Velocity / Angle
0Angle=0 defines the initial direction along X.
- pEmitter (EMIT) / Controls > Velocity / Angle Variance
0All particles start in the same direction.
- pEmitter (EMIT) / Region / Region
"Line"A narrow vertical line creates distinguishable parallel trajectories.
- pEmitter (EMIT) / Region > Line / Start X / Y / Z
[-0.35,-0.1,0]Fix the lower birth-region endpoint in particle coordinates.
- pEmitter (EMIT) / Region > Line / End X / Y / Z
[-0.35,0.1,0]Fix the upper line endpoint and keep depth Z at zero.
- pEmitter (EMIT) / Style / Style
"Blob"A small Blob is visible in 2D and requires no external image.
- pEmitter (EMIT) / Style / Size
0.008The size separates neighboring particles at the working resolution.
- pEmitter (EMIT) / Style > Color / Red / Green / Blue / Alpha
[1,0.35,0.05,1]An opaque warm color establishes the visible source stream.
Reproduce the example
- Before tuning the effect, enter this step's EMIT and pRender settings. View the initial EMIT through pRender, then restore the modifier. After each change press pRender Restart and play from frame 0.
Speed, birth region, style, seed and output mode are explicit, so settings inherited from another composition do not affect the test.
Check: With the modifier bypassed, particles travel right from x=−0.35 and MediaOut receives RGBA. Compare frames 12, 24 and 48; for Age also inspect 78, 96 and 114.
- Build pEmitter → pCustom → pRender → MediaOut.
pCustom accepts and outputs particle data; pRender is required for visible pixels.
Check: The branch remains a particle stream until pRender.
- Set Number In 1 to 0.002 and Probability to 1.
n1 becomes an independent animatable control while Probability adds no random per-frame gate.
Check: Changing Number In 1 should alter the result without editing the expression.
- Enter `vx + n1` in Particle → Velocity X.
vx is the current velocity value and n1 is Number In 1; pCustom rewrites particle state directly rather than creating a separate force field.
Check: In playback the stream gains X motion; setting n1 to 0 restores the original velocity behavior.
Expected result
- MediaOut (OUT) · frame 72
Particles keep normal particle flow while pCustom modifies X velocity from the expression controlled by Number In 1.
Alpha: pCustom does not create RGBA; final-frame alpha is produced after pRender.
When the result differs
- Motion accelerates too aggressively.
Cause: `vx + n1` is repeatedly applied to the current velocity on later frames.
Correction: Reduce n1 or use an absolute time/age-based expression when accumulation is not desired.
- Only some particles change unpredictably.
Cause: Probability is below 1 and is evaluated for each particle on every frame.
Correction: Return Probability to 1 while debugging.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion Flow, Fast Noise and MediaOut fundamentals used by the exercise graphs.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Particle Nodes
Particle Nodes > pCustom and Common Controls: orange particle input, Image 1/2 inputs, custom expressions, pixel-read functions, Conditions and Region behavior.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual
3D Nodes, 3D Light Nodes, Particle Nodes and USD Nodes. The October 21 revision adds explicit initial conditions; native execution remains pending.
Sample Image 1 inside pCustom
Verify pCustom's dedicated image inputs and documented pixel-read functions without confusing them with Region.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; pCustom topology and documented expression variables cross-checked against the Resolve 21 Particle Nodes reference · Free / Studio; exercises use the native particle toolset · Windows target; live Resolve execution not run in this package
1920 × 1080 · 24 fps · 120 frames · Fusion particle simulation; pCustom edits particle state and pRender converts the stream to a 2D image for the exercise output
- DaVinci Resolve 21+
- Native pEmitter, pCustom, pRender and Fast Noise nodes
Nodes and connections
NOISE— Red/yellow/blue diagonal gradient · BackgroundEMIT— pEmitter · pEmitterCUSTOM— pCustom · pCustomRENDER— pRender · pRenderOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Red/yellow/blue diagonal gradient (NOISE)Output | pCustom (CUSTOM)Image1 | image |
pEmitter (EMIT)Particles | pCustom (CUSTOM)Particles | particles |
pCustom (CUSTOM)Particles | pRender (RENDER)Particles | particles |
pRender (RENDER)Image | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- pCustom (CUSTOM) / Particle / Red
"getr1b(pxi1, pyi1)"Read the red channel from Image 1 at the particle position corrected for Image 1 aspect.
- pCustom (CUSTOM) / Particle / Green
"getg1b(pxi1, pyi1)"Read Image 1 green at the same documented particle-relative coordinates.
- pCustom (CUSTOM) / Particle / Blue
"getb1b(pxi1, pyi1)"Read Image 1 blue at the same documented particle-relative coordinates.
- pCustom (CUSTOM) / Conditions / Probability
1Remove random gating while testing image sampling.
- pRender (RENDER) / Controls / Output Mode
"2D"Explicitly produce an image for MediaOut; pRender initially defaults to 3D.
- pRender (RENDER) / Controls / View [2D]
"Front"The front view shows X/Y motion without perspective distortion.
- pRender (RENDER) / Controls / Kill Particles That Leave the View
falseLeaving the view must not kill particles and change the force comparison.
- pEmitter (EMIT) / Controls / Random Seed
17A fixed seed preserves the same initial simulation for A/B comparisons.
- pEmitter (EMIT) / Controls / Number
2A small stream keeps individual trajectories readable.
- pEmitter (EMIT) / Controls / Lifespan
120A known lifespan relates normalized Age to measurable frames.
- pEmitter (EMIT) / Controls / Lifespan Variance
0Remove death-time variation for the Age comparison.
- pEmitter (EMIT) / Controls > Velocity / Velocity
0.006Nonzero speed keeps a baseline particle in view into late Age: x=−0.35+0.006×114≈0.334 without forces.
- pEmitter (EMIT) / Controls > Velocity / Velocity Variance
0Exclude random variation in initial speed.
- pEmitter (EMIT) / Controls > Velocity / Angle
0Angle=0 defines the initial direction along X.
- pEmitter (EMIT) / Controls > Velocity / Angle Variance
0All particles start in the same direction.
- pEmitter (EMIT) / Region / Region
"Line"A narrow vertical line creates distinguishable parallel trajectories.
- pEmitter (EMIT) / Region > Line / Start X / Y / Z
[-0.35,-0.1,0]Fix the lower birth-region endpoint in particle coordinates.
- pEmitter (EMIT) / Region > Line / End X / Y / Z
[-0.35,0.1,0]Fix the upper line endpoint and keep depth Z at zero.
- pEmitter (EMIT) / Style / Style
"Blob"A small Blob is visible in 2D and requires no external image.
- pEmitter (EMIT) / Style / Size
0.008The size separates neighboring particles at the working resolution.
- pEmitter (EMIT) / Style > Color / Red / Green / Blue / Alpha
[1,0.35,0.05,1]An opaque warm color establishes the visible source stream.
- Red/yellow/blue diagonal gradient (NOISE) / Color / Type
"Gradient"A nonuniform pattern makes UV changes visible.
- Red/yellow/blue diagonal gradient (NOISE) / Color > Gradient / Gradient Type
"Linear"Use a simple reproducible gradient type.
- Red/yellow/blue diagonal gradient (NOISE) / Color > Gradient / Start
[0.15,0.2]The diagonal orientation distinguishes movement in U and V.
- Red/yellow/blue diagonal gradient (NOISE) / Color > Gradient / End
[0.85,0.8]Define the opposite pattern endpoint.
- Red/yellow/blue diagonal gradient (NOISE) / Color > Gradient / Gradient stops
"0: RGBA(1,0.02,0.01,1); 0.35: RGBA(1,0.8,0.02,1); 1: RGBA(0.02,0.1,1,1)"Three asymmetric color stops expose reversal, offset and repetition.
- Red/yellow/blue diagonal gradient (NOISE) / Image / Width
512Use a known square texture raster.
- Red/yellow/blue diagonal gradient (NOISE) / Image / Height
512Keep the aspect ratio unchanged between comparisons.
- Red/yellow/blue diagonal gradient (NOISE) / Image / Auto Resolution
falseThe local 512×512 raster does not inherit the composition format.
Reproduce the example
- Before tuning the effect, enter this step's EMIT and pRender settings. View the initial EMIT through pRender, then restore the modifier. After each change press pRender Restart and play from frame 0.
Speed, birth region, style, seed and output mode are explicit, so settings inherited from another composition do not affect the test.
Check: With the modifier bypassed, particles travel right from x=−0.35 and MediaOut receives RGBA. Compare frames 12, 24 and 48; for Age also inspect 78, 96 and 114.
- Connect pEmitter to the orange Particles input and Background with the specified gradient to pCustom's separate green Image 1 input.
Image 1 is a permanent 2D image input for custom calculations; it is neither the particle input nor a Bitmap/Mesh Region.
Check: pCustom simultaneously receives particle and image branches while its output remains a particle stream.
- Use getr1b/getg1b/getb1b with pxi1/pyi1 in the Particle RGB expressions.
Resolve documents Custom pixel-read functions and Image 1 aspect-corrected particle coordinates as available to pCustom.
Check: Rendered particle color should depend on the Fast Noise image at each particle's current position.
- Do not connect Background with the specified gradient as Region and do not enable Bitmap Region for this exercise.
Image 1 supplies data to expressions while Region constrains where the node acts; they are different data paths.
Check: Disconnecting Image 1 breaks the sampling behavior without changing spatial Region logic.
- Create the specified red/yellow/blue Background gradient and feed it to Image 1. Inspect the map RGB separately, then change Start/End with the simulation fixed.
Explicit colors and coordinates remove dependence on incidental Fast Noise settings.
Check: After Restart pCustom transfers map color to particles; pCustomForce uses Red around 0.5 to set the Y-force sign. These are two different uses of an image input.
Expected result
- MediaOut (OUT) · frame 72
Particles receive RGB from Background through Image 1/pixel-read expressions while pCustom remains a particle processor.
Alpha: Alpha is produced by particle style/pRender; this exercise changes only RGB expressions.
When the result differs
- Fast Noise is connected but color does not change.
Cause: The image is not connected to Image 1 or the expression uses Image 2 variables.
Correction: Verify the green Image 1 input and use pxi1/pyi1 with input-index-1 functions.
- The expression works only in part of the space.
Cause: A Region Mode/Region from another test is still active.
Correction: Return Region to an unrestricted state for the baseline test.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion Flow, Fast Noise and MediaOut fundamentals used by the exercise graphs.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Particle Nodes
Particle Nodes > pCustom and Common Controls: orange particle input, Image 1/2 inputs, custom expressions, pixel-read functions, Conditions and Region behavior.
- Blackmagic Design — DaVinci Resolve 21 / Fusion Fast Noise [FN] Generator Reference
Fusion Page Effects > Generator Nodes > Fast Noise, p. 2416: optional Noise Detail Map (black=0 detail, white=configured detail), Noise Brightness Map (field control before Color, can replace noise with Detail=0), and Effect Mask. Noise/Color controls are cross-checked with the article captures; no native render is claimed.
- Blackmagic Design — DaVinci Resolve 21 Reference Manual
3D Nodes, 3D Light Nodes, Particle Nodes and USD Nodes. The October 21 revision adds explicit initial conditions; native execution remains pending.
Other outlines from the article
Art-directed X acceleration
Number In 1 is referenced as n1 by Velocity X so intensity can be adjusted without rewriting the expression.
- pEmitter
- pCustom
- pRender
- MediaOut
Procedural trajectory
Position/Velocity are calculated from time, age and Position 1–4 for a controlled mathematical path.
- pEmitter
- pCustom
- pRender
Color from Image 1
Fast Noise or another 2D source feeds Image 1; pixel-read expressions sample it at pxi1/pyi1 and write particle RGB.
- Fast Noise
- pCustom Image 1
- pCustom
- pRender
Region-aware state change
rgnhit/rgndist/intersection/normal variables and Region Mode let custom math respond to contact or proximity.
- pEmitter
- pCustom (Region)
- pRender
Mistakes
- Showing pCustom as Particles + Region only and omitting the permanent Image 1/Image 2 inputs.
- Drawing a permanent Region socket even though it appears only for Bitmap/Mesh Region.
- Connecting MediaIn to Particles instead of Image 1/Image 2.
- Treating Image 1/Image 2 as masks instead of data sources for custom image calculations.
- Confusing Bitmap Region with Image 1: the first limits where the node acts, while the second supplies pixels to expressions.
- Copying the manual's inconsistent Position 1–8 heading instead of checking the Inspector and p1…p4 variable table.
- Overwriting Position, Velocity, Rotation, Spin and Color at the same time before validating any one channel.
- Using `vx + constant` without accounting for accumulation of current velocity across frames.
- Repeating expensive global math in every Particle field instead of Setup/Intermediate.
- Assuming all eight Setup result variables are equally documented even though the Resolve 21 reference is internally inconsistent about s/i result ranges.
- Treating mass as working physical mass even though the manual marks it currently unused.
- Expecting Probability 0.6 to select one permanent 60% subset; Probability is evaluated every frame.
- Confusing Conditions Age with the expression variables age/lifespan.
- Expecting an image directly from pCustom; the output remains particle data until pRender.
- Treating pCustom and pCustomForce as interchangeable; one rewrites properties while the other is designed around force/torque.
Tips
- Change one Particle channel first and keep an unmodified branch for A/B comparison.
- Use Number In 1–8 as public rig controls rather than burying numeric constants in every expression.
- Put once-per-frame global math in Setup; leave genuinely per-particle work for Intermediate/Particle.
- Break long formulas into named logical stages so sign, range and accumulation problems are easier to isolate.
- For Image 1/Image 2 debugging, begin with a simple monochrome source so wrong coordinates or input index are obvious.
- Use pxi1/pyi1 and pxi2/pyi2 for aspect-aware sampling instead of guessing from particle XY.
- Validate behavior without Region, then with a built-in Region, and only then add Bitmap/Mesh sources.
- For contact effects, inspect rgnhit, intersection and normal separately; they describe different parts of the event.
- If the task is fundamentally physical and should integrate naturally with other forces, compare pCustomForce before choosing a direct pCustom rewrite.
- If the task requires exact procedural geometry or color, pCustom may be cleaner than stacking compensating force nodes.
- Keep Probability at 1 while debugging so random per-frame gating does not hide expression errors.
- Document variable roles and Number/Position controls in the comp; unlabeled n1/i2/p3x logic becomes difficult to maintain.
- Because the reference is inconsistent about higher-index Setup/Intermediate result variables, verify indices 5–8 in the actual target build before shipping a dependent template.
- Do final QA in playback after pRender; a single frame does not reveal state accumulation or temporal behavior.
Workflow order
- Build the smallest predictable chain: pEmitter → pCustom → pRender.
- Verify pEmitter is connected to the orange Particles input, not Image 1 or Image 2.
- Keep Probability at 1, use the full Age range and remove Region restrictions while testing the first expression.
- Choose one Particle property such as Velocity X and leave other channels unchanged.
- Expose a constant through Number In 1 and reference n1 instead of hard-coding the value.
- Use Position 1–4 when the formula needs 3D reference points.
- Move shared once-per-frame math into Setup instead of repeating it in particle channels.
- Split dense calculations through Intermediate values.
- When using Image 1/Image 2, verify the correct input and its aspect-corrected pxi#/pyi# coordinates first.
- Start image sampling with one channel and one simple get… call before expanding to RGB or auxiliary channels.
- For spatial logic, test a built-in Region before adding an external Region source.
- For Bitmap/Mesh, wait for the dynamic Region socket and connect the separate 2D/3D source there.
- Do not confuse Region with Image 1/Image 2; disconnect them one at a time to identify which subsystem is responsible.
- Inspect playback at early, middle and late lifespan because custom state can accumulate over frames.
- Add Sets, Probability, Age and Region filters only after the base formula is stable.
- Judge the final visual result through pRender and document the expression rig in the comp.
