DocsGRADEReference

Pixel Stretch

6 min read

On this page

A line of pixels smeared out across the frame like a compositor pixel stretch: streaks of colour from the subject to the edge, from the whole view or from the GRADE targets.

Studio categoryHUD & Transitions
Pipeline stagePost Colour (display colour, after the colour nodes)
Default position7 in its stage
Works inLive views and Image mode
C++ / BlueprintFGradeLayer::Effects.PixelStretch (FGradePixelStretch)

Manual: Pixel Stretch. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).

Parameters

Pixel Stretch, a line of pixels smeared out across the frame (compositor style), from the whole view or from the GRADE targets.

ParameterBlueprint pathValuesDefaultDescription
EnabledEffects.PixelStretch.Enabledon/offoffTurns this on or off (the other values are kept while it is off).
IntensityEffects.PixelStretch.Intensity0..100, keyable1000..100: mix of the stretched pixels over the picture.
ModeEGradePixelStretchModeLineWhere the streaks start: a sample Line (everything past it is replaced), a Band of rows, or the edge of the targets (Target Edge: the subject stays and its edge pixels smear away from it).
SourceEGradePixelStretchSourceWhole ViewWhole View, the Selected Actors of this effect, the Targets effect, or objects rendered to Custom Depth. Target sources need a live view (skipped in Image mode and when the project does not render Custom Depth); pixels hidden behind other geometry do not count.
Stencil ValueEffects.PixelStretch.StencilValue0..255, integer0Custom Depth Objects source: 0 = every object rendered to Custom Depth; 1..255 = only primitives with this Custom Depth Stencil Value (needs Custom Depth-Stencil Pass = Enabled with Stencil; GRADE uses 200..215 for the Targets effect and 241..243 for Selected Actors).
AngleEffects.PixelStretch.Angle-360..360 deg, keyable180Direction the streaks run towards: 0 = right, 90 = up, 180 = left, 270 = down (any angle).
Sample XEffects.PixelStretch.SampleX0..100, keyable50Line / Band: horizontal position of the sample point (0 = left edge, 100 = right edge of the view). The sample line passes through it, across the streak direction.
Sample YEffects.PixelStretch.SampleY0..100, keyable50Line / Band: vertical position of the sample point (0 = top, 100 = bottom of the view).
Band WidthEffects.PixelStretch.BandWidth2..2160, keyable260Band: width of the band of rows that stretches, centred on the sample point (pixels; its edges are softened by Feather).
Sample InsetEffects.PixelStretch.SampleInset0..322Target Edge: the colour of each streak is read this far inside the target's edge (pixels), past its anti-aliased outline.
MirrorEffects.PixelStretch.Mirroron/offoffStreaks on both sides: past the line in both directions, or away from the target edges in both directions.
Keep Subject On TopEffects.PixelStretch.KeepSubjectOnTopon/offonTarget sources: the subject's own pixels always stay on top of the streaks (off: Line / Band streaks may cross the subject).

Length

ParameterBlueprint pathValuesDefaultDescription
Length ModeEGradePixelStretchLengthTo Frame Edge (%)How Length is measured: a percentage of the way to the frame edge, or fixed pixels.
LengthEffects.PixelStretch.Length0..100, keyable100To Frame Edge: streak length as a percentage of the way from its start to the frame edge (100 = to the edge).
Length PixelsEffects.PixelStretch.LengthPixels0..4000, keyable600Fixed: streak length in pixels.
GrowEffects.PixelStretch.Grow0..100, keyable1000..100: how far the streaks have grown (animate it from 0 for streaks shooting out).
VariationEffects.PixelStretch.Variation0..100, keyable450..100: rows end at different lengths (0 = every row reaches the full length; 100 = some rows almost vanish).
Row SizeEffects.PixelStretch.RowSize1..1286Height of the groups of rows that share one length (pixels): small = fine scratchy streaks, large = broad slabs.
Band RowsEffects.PixelStretch.BandRows0..1280Quantize the rows into thicker flat bands of this many pixels (each band repeats the colour of its centre row; 0 = off).
Start OffsetEffects.PixelStretch.StartOffset0..1000, keyable0Gap between the line / target edge and the start of the streaks (pixels; the original shows in the gap).
FeatherEffects.PixelStretch.Feather0..4002Soft transition from the original into the streaks at their start, and at the edges of a Band (pixels).
End SoftnessEffects.PixelStretch.EndSoftness0..10000..100: soft streak ends (0 = crisp cut ends like the compositor, 100 = each streak fades over its whole length).

Colour

ParameterBlueprint pathValuesDefaultDescription
Color BleedEffects.PixelStretch.ColorBleed0..640Colour bleed across rows (pixels): neighbouring rows blend into each other, more towards the streak ends (0 = razor-sharp rows).
Brightness FalloffEffects.PixelStretch.BrightnessFalloff0..100, keyable00..100: the streaks darken towards their end.
Fade OutEffects.PixelStretch.FadeOut0..100, keyable00..100: the streaks become transparent towards their end.
SaturationEffects.PixelStretch.Saturation0..200, keyable100Saturation of the streaks (100 = as sampled, 0 = grey, 200 = vivid).
TintEffects.PixelStretch.Tint.R/G/B/Acolour, keyablewhiteColour multiplied into the streaks (white = unchanged).

Animate

ParameterBlueprint pathValuesDefaultDescription
SpeedEffects.PixelStretch.Speed0..100Shimmer: each row's length breathes over time at this speed (0 = still; scene time, pause-safe, MRQ-stable).
Glitch JitterEffects.PixelStretch.GlitchJitter0..100, keyable00..100: glitch jitter: random groups of rows jump sideways and change length in steps (Glitch Rate times per second).
Glitch RateEffects.PixelStretch.GlitchRate0.5..30 Hertz8Glitch jitter steps per second.
SeedEffects.PixelStretch.Seed0..9999, integer0Random seed of the row lengths and the glitch (change it for another pattern).

Targets

ParameterBlueprint pathValuesDefaultDescription
Target Actorslist of actorSelected Actors source: the level actors the streaks come from (GRADE panel: Add Selected / Pick). Their visible meshes are drawn into the Custom Depth-Stencil pass with stencil 242 (243 when Echo Trail lists them too) while the effect runs; the original Custom Depth settings come back afterwards and are never saved. Soft references: an actor of another level or a deleted one is skipped; editor actors resolve in Play In Editor.
Muted Target Actorslist of actorSelected Actors source: listed actors switched off for now (the eye in the GRADE panel); they stay in Target Actors.
Target TagnameSelected Actors source: every actor with this tag (Actor > Tags) is a target too, spawned ones included (None = off).
Include Attached ActorsEffects.PixelStretch.IncludeAttachedActorson/offonSelected Actors source: actors attached to a target (a rider, a weapon, a trailer) stretch with it.

Enumerations

Pixel Stretch Mode (EGradePixelStretchMode)

Where the Pixel Stretch streaks start.

ValueMeaning
LineA sample line through the Sample Point, across the streak direction: every pixel past it is replaced by the line's own pixel smeared out towards the frame edge (the classic compositor pixel stretch). With a target Source only the rows where the line crosses a target stretch.
BandLike Line, but only a band of rows (Band Width) centred on the Sample Point stretches; the rest of the picture is untouched.
Target EdgeFrom the edge of the targets: the subject stays, the pixels along its edge smear away from it in the streak direction to the frame edge (a car leaving trails of its own colours). Needs a live view with Custom Depth; with Source = Whole View it uses every object rendered to Custom Depth.

Pixel Stretch Source (EGradePixelStretchSource)

Which pixels the Pixel Stretch reads its streaks from.

ValueMeaning
Whole ViewNo mask: Line and Band stretch the whole view.
Targets EffectThe targets of the GRADE Targets effect on the same volume / layer stack (actors and Stencil Value targets). To use them only as a mask, set their Mode to Label only and Label to Never. Needs Custom Depth-Stencil Pass = Enabled with Stencil. Live only. Selected Actors is simpler: it needs no Targets effect.
Custom Depth ObjectsObjects with Render CustomDepth Pass on (their Details panel): every one of them (Stencil Value 0), or only those with one Custom Depth Stencil Value (needs Custom Depth-Stencil Pass = Enabled with Stencil). Live only.
Selected ActorsThe actors listed in this effect (Target Actors, Target Tag, attached actors), picked right here: no Targets effect, no Details panel change. GRADE draws them into the Custom Depth-Stencil pass with stencil 242 (243 when Echo Trail lists them too) while the effect runs and restores them afterwards. Needs Custom Depth-Stencil Pass = Enabled with Stencil. Live only.

Pixel Stretch Length (EGradePixelStretchLength)

How the Pixel Stretch streak length is measured.

ValueMeaning
To Frame Edge (%)Length is a percentage of the way from the streak start to the frame edge (100 % = every streak reaches the edge).
Fixed (px)Length is a fixed number of pixels (1080-line pixels, scaled with the view height).

Generated from the GRADE C++ headers. Back to the reference index.