Studio Yotsuba
Back to Node List

Lens Warp

lens_warp

Parametric lens distortion: bulge or pinch around a center, or twirl. Animate the strength for squash-and-stretch effects

Reviewed
Guide available

Input Ports

NameTypeDescription
Image
input
Image
Required
Input image

Output Ports

NameTypeDescription
Image
output
Image
Warped image

Parameters

NameTypeDefaultRangeDescription / Options
Mode
mode
Enum
Bulge—

Warp type

  • BulgeBulge
    Positive strength inflates the center, negative pinches it inward
  • TwirlTwirl
    Rotates pixels around the center, strongest at the middle. Strength sign sets the direction
Strength
strength
Float
0-1–1 / step 0.01

Warp strength. 0 is no change. Promote and animate for a bouncy squash-and-stretch

Center X
center_x
Float
0.50–1 / step 0.01

Warp center X (0-1, relative to the image width)

Center Y
center_y
Float
0.50–1 / step 0.01

Warp center Y (0-1, relative to the image height)

Radius
radius
Float
0.50.05–4 / step 0.01

Effect radius relative to the shorter image side. Pixels outside stay untouched

Method
sampling
Enum
Nearest—

Resampling quality

  • NearestNearest
    Nearest-neighbor sampling — the classic chunky pixel-art warp
  • RotSpriteRotSprite
    Upscales with Scale2x before mapping, then picks the majority color

Overview

A parametric lens deformation controlled only by center, radius, and strength. It creates bulging, pinching, or twisting without a displacement-map image, and its strength can be driven directly by animation.

Usage tips

  • For a soft wobble, promote Strength and drive it with expression_float, for example sin(time * pi * 2) * 0.3, then pass the result to animation_render.
  • Positive Strength bulges and negative Strength pinches. Radius is relative to the shorter image dimension; the default 0.5 affects an area fitting within half the image.
  • Pixels outside the radius are completely unchanged, making it easy to deform only a face or another local feature by moving Center X/Y.
  • Nearest is the default for chunky pixel-art deformation. Select RotSprite only when a smoother outline is more important.

Common mistakes

  • Strength 1.0 is weaker than expected: effective strength is limited to ±0.95 to avoid foldover. Chain two nodes only when a stronger result is truly required.
  • A custom-shaped warp is needed: use displace or directional_warp; this node is intentionally limited to a circular lens.

Related nodes

  • displace / directional_warp — image-map-driven freeform warping
  • expression_float / time_source — animate Strength with a sine wave or other signal
  • region_warp — deform Region boundaries
Back to Node List