FUSION · FULL ARTICLE
pCustomForce
A programmable particle-force processor: expressions calculate Force X/Y/Z and Torque X/Y/Z while Number/Position controls, two image inputs, Conditions and Region provide art-directable data and filtering.
Overview
pCustomForce belongs inside a particle chain between pEmitter/pImageEmitter and pRender. It does not create particles and it does not output a finished image: an existing particle stream enters the node, expressions calculate an influence, and the result remains particle data until pRender.
The critical distinction from pCustom is how the change is applied. pCustom directly rewrites particle properties such as Position or Velocity. pCustomForce calculates Force and Torque that participate in the simulation of motion and rotation. When the task is fundamentally a physical influence or field, pCustomForce is usually cleaner than repeatedly rewriting state with pCustom.
pCustomForce has three permanent inputs: orange Particles, green Image 1 and magenta Image 2. Image 1/2 are dedicated to custom image calculations and pixel-read functions. They are real 2D image inputs, not masks and not particle streams.
The current Resolve 21 prose contains an editorial inconsistency: the pCustomForce introduction mentions 'three image inputs', but its Inputs section immediately describes three inputs total as Particles plus Image 1 and Image 2. This article follows the concrete Inputs inventory: one particle input and two image inputs.
A fourth input is conditional. Selecting Region = Bitmap or Mesh exposes a dynamic Region socket. Bitmap accepts a 2D image/selectable channel and Mesh accepts a 3D mesh. The reference describes this socket as teal or white depending on how and when it appears.
The pCustomForce Inspector follows the same overall structure as pCustom: Numbers, Positions, Setup, Intermediate and a dedicated Force layer, followed by the common Conditions and Region controls. It is useful to treat the node as a small program with input controls, staged calculations and final force/torque expressions.
Numbers expose eight animatable Number In 1–8 controls available to expressions as n1…n8. They are the preferred place for amplitude, frequency, falloff, attraction strength or torque coefficients that should remain adjustable without editing the expression text.
Positions expose four point controls, Position 1–4, for targets, attractors, axes and other reference points. The pCustomForce introduction calls these four XY position values while the related pCustom control family documents XYZ components, so production rigs that depend on Z should be verified once in the exact target Resolve build.
Setup 1–8 are intended for shared preparation before per-particle force math. Intermediate 1–8 provide a second staging layer so long formulas can be decomposed into reusable steps before Force/Torque expressions are evaluated.
Resolve 21 is internally inconsistent about the complete range of Setup/Intermediate result variables: the UI is described as eight Setup and eight Intermediate fields, while different passages enumerate s# and i# ranges differently. Use the clearly documented lower indices as the safe baseline and live-test higher result variables before shipping a dependent template.
The Force layer contains independent expressions for Force X, Force Y and Force Z. These values are not a new Position and they do not directly replace Velocity. They describe a force contribution, so even a small constant value can produce a progressively larger trajectory change across playback.
Torque X/Y/Z are the rotational counterpart of custom force. Torque affects rotational motion and is easiest to evaluate with a particle style whose orientation is visibly asymmetric; a symmetric point can make real torque appear visually absent.
Because pCustomForce uses the Custom-style expression model, force expressions can read the current particle state and utility variables used by the shared system: position/velocity/rotation/spin, time, age/lifespan, Number/Position controls, image coordinates and Region variables. Reading those values is not the same as directly writing them; pCustomForce returns force/torque values.
Image 1/2 support image-driven fields. Aspect-aware coordinates pxi1/pyi1 and pxi2/pyi2 let expressions sample the attached images at a particle's position, while w1/h1 and w2/h2 expose input dimensions. Custom-family pixel-read functions can therefore convert map brightness or color into force.
Region variables provide spatial context to the expression: rgnhit represents contact, rgndist represents distance, condscale represents region-condition strength, rgnix/rgniy/rgniz describe the intersection position, and rgnnx/rgnny/rgnnz describe the surface normal. These signals support custom falloff, repulsion and surface-relative force logic.
Conditions filter which particles receive the custom force. Probability is evaluated for each particle on each frame; Start/End Age define a normalized fraction of particle lifespan; Set Mode and Set 1–32 filter Sets assigned by upstream particle tools.
Region Mode adds a spatial gate. Built-in All, Bezier, Cube, Line, Rectangle and Sphere regions are configured inside the Inspector and require no external cable. Only Bitmap/Mesh expose the dynamic Region input, which must not be confused with permanent Image 1/Image 2.
For debugging, begin with pEmitter → pCustomForce → pRender, Probability = 1 and one very small Force component. Add a second axis, Torque, image sampling, Conditions and Region one at a time. This makes expression errors easier to distinguish from particle-topology problems.
Evaluate force across time rather than from one still frame. An early frame can look almost identical to baseline because force changes subsequent motion. Compare several playback frames against a branch without pCustomForce, and avoid large unbounded values that can destabilize the simulation.
Image 1/Image 2 and Region can be used simultaneously but solve different problems: image inputs feed data into expressions while Region limits where or when the node applies. Even with all inputs connected, pCustomForce output remains a particle stream and visible RGBA appears only after pRender.
When to use it
- Create a physically integrated force field that built-in particle forces do not provide
- Build custom attraction or repulsion around Position 1–4
- Create procedural oscillation or wind from time, age and Number In controls
- Control rotational motion with Torque X/Y/Z
- Drive force magnitude or direction from Image 1/Image 2 pixel samples
- Build Region-aware force from distance, intersection or surface normal
- Expose expression coefficients through Number In 1–8 for animation
- Restrict force by Probability, age, Sets or spatial Region
Article screenshots
- pCustomForce — Numbers: Random Seed, Time Lock and Number In 1–8
- pCustomForce — Positions: Position 1–4 point controls
- pCustomForce — Setup expression fields
- pCustomForce — Intermediate expression fields
- pCustomForce — Force X/Y/Z and Torque X/Y/Z expressions
- pCustomForce — Conditions: Probability, Age and Sets
- pCustomForce — Region controls
Inputs & outputs
pCustomForce receives a particle stream plus two image inputs; Region appears separately only for Bitmap/Mesh
pCustomForce 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/pixel-read expressions. A dynamic Region input appears only for Region = Bitmap or Mesh.
Evaluates custom Force/Torque expressions for 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: pCustomForce reads current particle state and calculates force/torque for subsequent motion/rotation simulation.
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 force/torque expressions need to sample as a map or data source.
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 pCustomForce by itself and is not Bitmap Region.
- Image 2
Second 2D image source for expressions
Receives: A second independent 2D image for custom force 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 coordinates/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 pCustomForce may apply force.
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 force/torque has been evaluated for particles that passed Conditions/Region.
Next step: pRender · pCustom · 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 custom force/torque calculations. This is not an RGBA image; pRender normally creates the visible result downstream.
Processing order
- Particles brings an existing particle stream.
- Image 1 and Image 2 optionally provide 2D image data to custom/pixel-read force 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.
- Force/Torque expressions calculate the influence and Particles Output continues to pRender or another particle tool.
Modulate Force Y from Fast Noise
pEmitter.Particles → pCustomForce.Particles → pRender.Particles · FastNoise.Output → pCustomForce.Image 1 → MediaOut
The particle stream and image branch enter pCustomForce simultaneously: Image 1 feeds the expression while output remains particle data.
pCustomForce 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
pCustomForce · Inspector reference
Read pCustomForce in layers: input controls, Setup/Intermediate, Force/Torque, current particle state, Region variables, Conditions and spatial Region. Keep the two permanent image inputs separate from the dynamic Bitmap/Mesh Region input.
- Flow
- Particles + Image 1 + Image 2 → pCustomForce → particles
- Controls
- Numbers / Position 1–4
- Math
- Setup → Intermediate → Force/Torque
- State
- px/vx/rx/sx · images · time/age
- Filters
- Conditions → Region
Numbers / Positions · Input controls
Random Seed, Number In and Position controls provide art-directable values without creating force by themselves.
- Random Seed
Numbers / Positions > Random SeedSeeds random-dependent custom calculations. Matching seeds help reproduce results while comparing formulas.
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 a new random variation is desired without changing the expression.
Check / distinguish: Change only this control from its default state and compare before/after.
- Time Lock
Numbers / Positions > Time LockLocks time-related procedural randomness where applicable. This is not a particle-simulation freeze and does not disable Force/Torque 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 expressions. Use them as public controls for amplitude, frequency, falloff, force scale and torque.
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)Number In variables used by Custom-style expressions. Current controls are read as n1…n8; time-sampled forms from the Custom expression family are useful for art-directable time-varying coefficients.
Check / distinguish: Change only this control from its default state and compare before/after.
- Position 1–4
Numbers / Positions > Position 1–4Four point controls used as expression references. Useful as attractor centers, targets or axes. The pCustomForce prose calls them four XY values while related pCustom controls document XYZ components, so Z-dependent rigs should be live-verified.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- p1…p4 components
Numbers / Positions > p1…p4 componentsPosition 1–4 components available to expressions. Compare them with current particle position to build attraction, repulsion or directed fields.
Check / distinguish: Change only this control from its default state and compare before/after.
- Three permanent inputs
Flow > pCustomForce inputsOrange Particles and two image inputs exist 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.
- Manual input wording conflict
Reference > pCustomForce InputsResolve 21's introduction says 'three image inputs', but the Inputs section lists Particles + Image 1 + Image 2. Use the concrete Inputs inventory for topology.
Check / distinguish: Check the physical Flow sockets before wiring inputs; the example does not require an assumed third permanent image input.
- Number controls are rig parameters
Numbers > Number In 1–8Number In controls are animatable and exposed to expressions as n1…n8. They are better rig controls than hard-coded constants in Force/Torque.
Check / distinguish: Replace a Force X constant with n1 and adjust Number In 1 without editing the expression.
- Position wording needs target-build awareness
Positions > Position 1–4The pCustomForce reference calls them four XY values while related pCustom documentation describes XYZ components. Verify the actual control set before shipping a Z-dependent rig.
Check / distinguish: Open Positions in the target build and verify the physical X/Y/Z controls before relying on Z in production.
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–8Setup expressions evaluated before per-particle force math. Store shared time-based coefficients and reusable calculations here.
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 later expression stages. Resolve 21 is inconsistent about higher-index s# variables; verify indices 5–8 live before production use.
Check / distinguish: Change only this control from its default state and compare before/after.
- Intermediate 1–8
Setup / Intermediate > Intermediate 1–8Eight staged expressions evaluated after Setup. Break complex force math into smaller steps instead of repeating one long expression.
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 Force/Torque expressions. The manual is inconsistent about the full i# range in different passages; verify higher indices in the target build.
Check / distinguish: Change only this control from its default state and compare before/after.
- Setup is shared preparation
Setup > Setup 1–8Setup stages shared per-frame math before per-particle Force/Torque evaluation.
Check / distinguish: Move a shared time-based coefficient from two Force fields into Setup and compare the result.
- Intermediate follows Setup
Intermediate > Intermediate 1–8Intermediate follows Setup and lets complex force math be decomposed into readable stages.
Check / distinguish: Calculate one intermediate coefficient first, then reference it only from Force X.
- Manual variable-range inconsistency
Setup / Intermediate > result variablesResolve 21 describes eight UI fields but enumerates s/i result variables inconsistently. Do not make indices 5–8 a hard dependency without a live test.
Check / distinguish: Test every higher-index result variable used by the rig in the target build before release.
Force · Force, torque and particle state
Force X/Y/Z and Torque X/Y/Z return the influence while current position/velocity/rotation/spin, image data and time/age provide expression context.
- Force X
Force > Force XExpression for linear force along X. Returns a force component rather than a replacement Position or Velocity value. Start with a small magnitude.
Check / distinguish: Change only this control from its default state and compare before/after.
- Force Y
Force > Force YExpression for linear force along Y. Useful for custom gravity/lift or the Y component of a more complex field.
Check / distinguish: Change only this control from its default state and compare before/after.
- Force Z
Force > Force ZExpression for linear force along Z. Use when the particle setup genuinely includes depth/Z motion.
Check / distinguish: Change only this control from its default state and compare before/after.
- Torque X
Force > Torque XCustom torque around X. Evaluate it using a particle style with visibly readable orientation.
Check / distinguish: Change only this control from its default state and compare before/after.
- Torque Y
Force > Torque YCustom torque around Y. Debug one torque axis at a time before combining rotational components.
Check / distinguish: Change only this control from its default state and compare before/after.
- Torque Z
Force > Torque ZCustom torque around Z. Useful for controlled bitmap/line rotation and more complex 3D particle rigs.
Check / distinguish: Change only this control from its default state and compare before/after.
- Position state — px / py / pz
Force > Position state — px / py / pzCurrent particle position that force expressions can read. Compare against Position controls for attraction/repulsion. pCustomForce does not directly rewrite px.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Velocity state — vx / vy / vz
Force > Velocity state — vx / vy / vzCurrent particle velocity available as force-expression context. Useful for drag/damping logic; the Force expression is not itself velocity.
Check / distinguish: Change only this control from its default state and compare before/after.
- Rotation state — rx / ry / rz
Force > Rotation state — rx / ry / rzCurrent particle orientation available to calculations. Do not confuse rotation state with Torque output.
Check / distinguish: Change only this geometry control and compare position, scale and result bounds.
- Spin state — sx / sy / sz
Force > Spin state — sx / sy / szCurrent particle spin available to Torque calculations. Torque changes rotational motion while sx/sy/sz describe the current spin state.
Check / distinguish: Change only this control from its default state and compare before/after.
- Image 1 coordinates — pxi1 / pyi1
Force > Image 1 coordinates — pxi1 / pyi1Aspect-aware particle coordinates for Image 1. Use with input-index-1 pixel-read functions.
Check / distinguish: Change only this control from its default state and compare before/after.
- Image 2 coordinates — pxi2 / pyi2
Force > Image 2 coordinates — pxi2 / pyi2Aspect-aware particle coordinates for Image 2. Use them to sample the second image source independently.
Check / distinguish: Change only this control from its default state and compare before/after.
- Image dimensions — w1/h1, w2/h2
Force > Image dimensions — w1/h1, w2/h2Dimensions of connected Image 1/Image 2 sources in the expression model. Useful for coordinate normalization and resolution-aware math.
Check / distinguish: Change only this control from its default state and compare before/after.
- Pixel-read functions
Force > Pixel-read functionsCustom-family functions for reading channels from Image 1/Image 2. Convert map brightness or color into force/torque; debug one channel and one input first.
Check / distinguish: Change only this control from its default state and compare before/after.
- Particle identity / appearance state
Force > Particle identity / appearance stateCurrent id, size and color/alpha data available as expression context. Use these as calculation inputs; pCustomForce is intended for Force/Torque rather than direct restyling.
Check / distinguish: Change only this control from its default state and compare before/after.
- Time / Age / Lifespan
Force > Time / Age / LifespanComposition time plus current particle age and lifespan. Useful for oscillation, phase, temporal falloff and age-driven force.
Check / distinguish: Change only this control from its default state and compare before/after.
- Force is not a direct state rewrite
Force > Force X/Y/ZA Force component contributes an influence to the simulation; it is not a new absolute Position or Velocity value.
Check / distinguish: Compare pCustomForce Force X = n1 against pCustom Velocity X = vx+n1 on the same baseline; their temporal behavior should be fundamentally different.
- Small constant force accumulates
Force > Force XEven a small constant force changes subsequent velocity/trajectory, so the effect must be evaluated across several frames.
Check / distinguish: Start with a very small n1 and compare frames 1/24/48/72 against a branch without pCustomForce.
- Torque needs visible orientation
Force > Torque X/Y/ZTorque may be mathematically active yet visually hidden on a symmetric Point particle. Test with a style whose orientation is readable.
Check / distinguish: Use an asymmetric Bitmap/Line and enable one Torque axis at a time.
- Current velocity is expression context
Force > vx / vy / vzVelocity variables describe current state and can drive damping/feedback, but the Force field still returns force rather than velocity.
Check / distinguish: Build a one-axis damping test and compare the Force sign against vx.
- Image 1 sampling
Force > get…1…(pxi1, pyi1)Image 1 is the permanent green image input. Aspect-aware pxi1/pyi1 let local pixels drive a force coefficient.
Check / distinguish: Feed a simple gradient into Image 1 and use one channel in Force Y.
- Image 2 is independent
Force > Image 2 variablespxi2/pyi2 and input-2 pixel functions refer only to the second magenta image input.
Check / distinguish: Feed a visibly different source into Image 2 and verify that changing the input index changes the force map.
- Output remains particles
Flow > pCustomForce → pRenderEven with Image 1/Image 2 connected, pCustomForce does not become an image compositor; output remains a particle stream.
Check / distinguish: Trace the Flow to pRender and verify that RGBA appears there.
Region variables · Region variables
rgnhit, distance, condition scale, intersection and normal let expressions build spatially aware force directly.
- Region hit — rgnhit
Region variables > Region hit — rgnhitContact signal for the selected Region. Use it as event-like expression input and keep it distinct from distance.
Check / distinguish: Change only this control from its default state and compare before/after.
- Region distance — rgndist
Region variables > Region distance — rgndistDistance from the particle to the Region. Useful for custom attraction/repulsion falloff.
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. Can scale force smoothly when the Region provides a weighted condition.
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 Region intersection point. Useful for force that depends on the actual contact location.
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 / rgnnzSurface normal at the Region contact point. Lets expressions push along or against the surface direction.
Check / distinguish: Change only this control from its default state and compare before/after.
- Hit vs distance
Force > rgnhit / rgndistrgnhit describes contact while rgndist describes distance to Region. They are different signals for event and falloff logic.
Check / distinguish: Use rgnhit alone first, then rgndist alone in a separate test.
- Intersection vs normal
Force > rgni* / rgnn*rgnix/y/z describe intersection position while rgnnx/y/z describe the surface-normal direction. They are not interchangeable.
Check / distinguish: On a simple Region, test force toward the contact point separately from force along the normal.
Conditions · Which particles receive force
Probability, normalized Age and Sets filter the particle subset before custom force is applied.
- Probability
Conditions > ProbabilityProbability that pCustomForce applies to a particle on the current frame. This is a per-particle/per-frame gate, not a permanent random group for the whole lifespan.
Check / distinguish: Change only this control from its default state and compare before/after.
- Age Start / End
Conditions > Age Start / EndNormalized lifespan interval in which force is allowed. 0.0–1.0 maps birth to death of each particle rather than absolute timeline frames.
Check / distinguish: Change only this control from its default state and compare before/after.
- Set Mode
Conditions > Set ModeControls how Conditions filters particle Sets. Use Ignore Sets, include selected Sets or exclude selected Sets according to the desired subset.
Check / distinguish: Change only this control from its default state and compare before/after.
- Set 1–32
Conditions > Set 1–32Particle Sets used by the Conditions filter. pCustomForce does not have to create these groups; they are typically assigned upstream.
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 evaluated for every particle on every frame.
Check / distinguish: Debug at 1 first, then try 0.5 and inspect a frame sequence rather than one still.
Region · Where force 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 ModeControls when force is applied relative to the Region. Supports ignore/intersection/inside/outside/enter/leave behavior through common particle controls.
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 configured internally; 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 input exposed by Region = Bitmap. Accepts an image/selectable channel and spatially gates force. It is not Image 1 or Image 2.
Check / distinguish: Change only this control from its default state and compare before/after.
- Mesh Region input
Region > Mesh Region inputDynamic 3D mesh input exposed by Region = Mesh. Uses external mesh geometry as the spatial condition for custom force.
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 Bitmap or Mesh is selected. 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 RegionImage 1 feeds Force/Torque expressions while Bitmap Region spatially limits pCustomForce. The same source may technically feed both roles, but the ports have different semantics.
Check / distinguish: Connect the source only to Image 1, then only to Bitmap Region, and compare behavior.
Before adjusting the node
- pCustomForce has three permanent inputs: orange Particles, green Image 1 and magenta Image 2.
- The manual's 'three image inputs' phrase conflicts with its own Inputs section; the concrete inventory is one particle input plus two image inputs.
- The Region socket is absent by default and appears only when Region = Bitmap or Mesh.
- Image 1/Image 2 feed pixels to expressions; Bitmap/Mesh Region limits where the node acts. These are different subsystems.
- Force/Torque do not directly rewrite Position/Velocity/Rotation. Their effect is integrated by the particle simulation and develops over time.
- Probability is evaluated for each particle on every frame; start at 1 for deterministic debugging.
- Higher Setup/Intermediate result variables and Z-dependent Position details should be live-verified in the target Resolve build because the reference text is inconsistent.
- pCustomForce 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
Drive Force X with Number In
See the difference between custom force and direct velocity rewriting: pCustomForce contributes an effect that develops over time.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; pCustomForce topology and shared Custom-style controls 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; pCustomForce contributes force/torque and pRender converts the particle stream to a 2D image for exercise output
- DaVinci Resolve 21+
- Native pEmitter, pCustomForce, pRender and Fast Noise nodes
Nodes and connections
EMIT— pEmitter · pEmitterFORCE— pCustomForce · pCustomForceRENDER— pRender · pRenderOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
pEmitter (EMIT)Particles | pCustomForce (FORCE)Particles | particles |
pCustomForce (FORCE)Particles | pRender (RENDER)Particles | particles |
pRender (RENDER)Image | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- pCustomForce (FORCE) / Numbers / Number In 1
0.001Expose a deliberately small force coefficient as n1.
- pCustomForce (FORCE) / Force / Force X
"n1"Use the Number In control as the X-force expression rather than rewriting velocity.
- pCustomForce (FORCE) / Conditions / Probability
1Keep the force deterministic while learning the node.
- 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 → pCustomForce → pRender → MediaOut.
pCustomForce accepts and outputs particle data; pRender is what converts the stream into visible pixels.
Check: The branch remains particle data until pRender.
- Set Number In 1 to 0.001 and Probability to 1.
n1 becomes a small independent force control while Probability adds no random per-frame gate.
Check: At n1 = 0 the branch should return to the baseline without this X force.
- Enter `n1` in Force → Force X and inspect several playback frames.
Force X defines an influence rather than an absolute Position X/Velocity X, so the result must be evaluated over time.
Check: The trajectory progressively shifts toward +X versus the baseline; a single early frame may show only a small difference.
Expected result
- MediaOut (OUT) · frame 72
Particles receive a small constant X force controlled by Number In 1 while pCustomForce output remains a particle stream.
Alpha: pCustomForce does not create RGBA; final-frame alpha is produced downstream by pRender.
When the result differs
- Particles immediately fly out of frame.
Cause: The force coefficient is too large and its effect accumulates over time.
Correction: Return n1 to a very small value and increase it gradually while comparing several frames.
- Only part of the stream responds inconsistently.
Cause: Probability is below 1 or Conditions/Region from another test are still active.
Correction: For the baseline, return Probability to 1 and disable spatial filtering.
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 > pCustomForce, pCustom and Common Controls: particle input, Image 1/2 inputs, Custom-style expressions, 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.
Use Image 1 as a custom force map
Verify that Image 1 is a separate permanent 2D expression input rather than Bitmap Region, and use its brightness to drive Force Y.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; pCustomForce topology and shared Custom-style controls 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; pCustomForce contributes force/torque and pRender converts the particle stream to a 2D image for exercise output
- DaVinci Resolve 21+
- Native pEmitter, pCustomForce, pRender and Fast Noise nodes
Nodes and connections
NOISE— Red/yellow/blue diagonal gradient · BackgroundEMIT— pEmitter · pEmitterFORCE— pCustomForce · pCustomForceRENDER— pRender · pRenderOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Red/yellow/blue diagonal gradient (NOISE)Output | pCustomForce (FORCE)Image1 | image |
pEmitter (EMIT)Particles | pCustomForce (FORCE)Particles | particles |
pCustomForce (FORCE)Particles | pRender (RENDER)Particles | particles |
pRender (RENDER)Image | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- pCustomForce (FORCE) / Numbers / Number In 1
0.004Scale the sampled image value with an art-directable control.
- pCustomForce (FORCE) / Force / Force Y
"(getr1b(pxi1, pyi1) - 0.5) * n1"Convert Image 1 red around a neutral 0.5 midpoint into signed Y force.
- pCustomForce (FORCE) / Conditions / Probability
1Remove random gating while verifying 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 pCustomForce's separate green Image 1 input.
Image 1 is dedicated to custom image calculations and exists independently of the Region menu.
Check: The node simultaneously receives particle and image branches while the output is still Particles.
- Set Number In 1 to 0.004 and use `(getr1b(pxi1, pyi1) - 0.5) * n1` for Force Y.
Image 1 aspect-aware coordinates sample the local pixel, 0.5 provides a neutral midpoint, and n1 scales the signed force.
Check: Different map areas should push particles along Y with different sign/magnitude; at n1=0 the image branch stops affecting motion.
- Do not enable Bitmap Region or connect Background with the specified gradient to Region in this exercise.
Image 1 feeds expression data while Bitmap Region spatially gates the node itself; those roles must remain separate.
Check: Disconnecting Image 1 breaks the image-driven force without changing Region topology.
- 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
Background through Image 1 modulates Force Y at each particle position while Region stays unused and the output remains particle data.
Alpha: Image 1 influences force math rather than replacing visual output; pRender creates RGBA/alpha.
When the result differs
- Fast Noise is connected but trajectory does not follow the map.
Cause: The source is not on Image 1, the expression uses the wrong input index, or n1 is zero.
Correction: Verify the green Image 1 input, pxi1/pyi1, an input-index-1 function and a non-zero n1.
- The effect acts only inside an unexpected area.
Cause: Region Mode or a dynamic Bitmap/Mesh Region from another test is still active.
Correction: For this exercise return Region to an unrestricted state and use Fast Noise only as Image 1.
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 > pCustomForce, pCustom and Common Controls: particle input, Image 1/2 inputs, Custom-style expressions, 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 acceleration
Number In 1 controls amplitude while Force X = n1 creates a small persistent X influence without rewriting velocity directly.
- pEmitter
- pCustomForce
- pRender
- MediaOut
Image-driven field
Fast Noise feeds Image 1 and a pixel-read expression converts local map brightness into signed Force Y.
- Fast Noise
- pCustomForce Image 1
- pCustomForce
- pRender
Procedural attractor
Position 1 acts as the target while the difference between it and current px/py/pz defines force direction.
- pEmitter
- pCustomForce
- pRender
Region-normal force
Region normal supplies a surface-relative direction while Region Mode limits when the force is active.
- pEmitter
- pCustomForce (Region)
- pRender
Mistakes
- Showing pCustomForce as Particles + Region and omitting the permanent Image 1/Image 2 inputs.
- Treating dynamic Bitmap/Mesh Region as an ordinary Effect Mask or confusing it with Image 1.
- Feeding MediaIn into the orange Particles socket instead of the dedicated green/magenta image inputs.
- Assuming Force X directly sets Position X or Velocity X.
- Using a very large constant force and judging only a single frame rather than playback.
- Debugging multiple Force and Torque axes at the same time.
- Repeating a long formula in every Force channel instead of using Setup/Intermediate staging.
- Treating Probability as one permanent random subset; it is evaluated across particles on every frame.
- Using Region variables without first confirming that particles actually enter or intersect the chosen Region.
- Treating pCustomForce and pCustom as interchangeable; one contributes force/torque while the other directly rewrites particle properties.
- Expecting an RGBA image directly from pCustomForce; output remains particle data until pRender.
- Depending on ambiguous higher-index Setup/Intermediate or Z-position details without a live test in the target Resolve build.
Tips
- Keep a control branch without pCustomForce for A/B trajectory comparison.
- Begin with one Force axis and a coefficient that is barely visible over several frames; scaling upward is safer than debugging an exploding simulation.
- Use Number In 1–8 as the public rig interface instead of burying constants inside expression text.
- Reserve Setup for shared per-frame math, Intermediate for reusable stages, and Force/Torque for final influence expressions.
- For attraction/repulsion, verify the sign of target-minus-current on one axis before expanding the formula.
- For image-driven force, start with a simple gradient or monochrome map so wrong coordinates or input index are obvious.
- Test Image 1/Image 2 separately from Bitmap Region: image inputs feed math while Bitmap Region spatially gates the node.
- Inspect Region contact, distance, intersection and normal independently because they represent different signals.
- Evaluate Torque with a particle style that has readable orientation; a round point can hide genuine rotational motion.
- If the task needs an exact new velocity/position/color rather than a physically integrated influence, compare pCustom instead.
- Keep Probability at 1 while debugging expressions.
- Live-test higher Setup/Intermediate result variables and any Z-dependent Position behavior in the exact Resolve version used for delivery.
- Document what n1/p1/i1 mean in the comp; unlabeled mathematical rigs are difficult to maintain later.
- Perform final QA over several frames after pRender because force and torque reveal their behavior over time.
Workflow order
- Build the minimum pEmitter → pCustomForce → pRender chain and verify a baseline with no custom force.
- Verify pEmitter is connected to the orange Particles input while Image 1/Image 2 remain separate image inputs.
- Keep Probability at 1, use the full Age range and leave Region unrestricted so debugging stays deterministic.
- Expose the first coefficient through Number In 1 instead of hard-coding it.
- Start with one Force axis and a very small value, then compare several playback frames against a control branch.
- Verify Force sign and scale before adding more axes because an oversized constant can accelerate the stream very quickly.
- Add Position 1–4 as target/reference controls only when needed, and validate one target-minus-current component first.
- For an image-driven field, feed a simple gradient or Fast Noise into Image 1 and sample one input-index-1 channel first.
- Add Image 2 only when a second independent data source is required, and keep its variables separate from Image 1.
- Move shared math into Setup and Intermediate so final Force/Torque expressions stay short and readable.
- Add Torque only after linear force behaves predictably, and judge it with a particle style whose orientation is visible.
- Enable Conditions, Sets and Region one at a time and verify which particles receive the influence.
- For Bitmap/Mesh, wait for the separate dynamic Region socket and do not substitute it for Image 1/Image 2.
- If a rig depends on higher Setup/Intermediate result variables or Z behavior in Position controls, live-test the exact target Resolve build.
- Judge the final behavior after pRender at early, middle and late playback frames rather than from one still frame.
