Overview
A projective transform that moves an image's four corners. Trapezoid mode provides simple floor or wall perspective, while corner-pin mode handles arbitrary quadrilaterals. Because projective transforms cannot be represented exactly by Bezier paths, this remains an image-stage operation.
Usage tips
- Double-click the node or choose Visual Tilt/Perspective Correction in Inspector. For Straighten Line, place two points on a long edge. For Rectify Four Corners, place points clockwise from top-left. Apply converts the result into Corner Pin and eight offsets in one undo step.
- A long roof edge, shelf, or tile seam gives a more stable two-point angle than a short line. For four points, place them close to the intended tile or sign boundary because the selected quadrilateral expands to the output rectangle.
- For floor perspective, use Trapezoid with Top Scale around 0.5–0.8.
- For wall perspective, select the left/right edge-height direction and shorten one side.
- In Corner Pin, all-zero offsets are identity. Promoting them allows wobble animations.
- Auto quality, which normally selects RotSprite, is the default. Use direct/Nearest-style transformation only for deliberately rough pixel-art deformation.
Common mistakes
- Content outside the canvas disappears: canvas size is fixed. Add padding with
canvas_resizebefore transforming. - Crossed corners scramble the image: a self-intersecting quadrilateral is not a valid projective transform. The node remains crash-safe, but the visual result is undefined.
- A real 3D card rotation is needed: use
sprite_flipfor an axis, back face, and lighting. This node is a free four-corner transform.
Related nodes
sprite_flip— perspective-like 3D flip controlled by an anglefree_transform— affine transform, sufficient up to parallelogramscanvas_resize— add room before the transform