LAUNCH OFFER€25 in free credits to try TURNA, no card requiredClaim the offer
    TURNA Render Farm logo, Blender render farm
    Back to the Blender guides

    How to composite 2D animation in Blender: layers, nodes and output

    T
    TURNA technical team
    4 December 2026
    14 min

    Short answer

    To composite 2D animation in Blender, give each element its own view layer, turn on Render Properties > Film > Transparent, and stack the layers in the Compositor with Render Layers and Alpha Over nodes, background at the bottom. Grease Pencil layers can be assigned to a single view layer, and 2D animation drawn in another program comes in as a PNG sequence, through an Image node or on an image plane in the scene. Enable Compositing under Output Properties > Post Processing, then render the animation to PNG or OpenEXR, which keep the alpha channel.

    1. Split: one view layer per element; Grease Pencil layers go to theirs under Relations > View Layer.
    2. Clear the background: Render Properties > Film > Transparent.
    3. Stack: one Render Layers node per view layer, chained through Alpha Over nodes into the Group Output.
    4. Enable: Output Properties > Post Processing > Compositing.
    5. Render: Render Animation to PNG (RGBA) or OpenEXR.

    Compositing a 2D animation means assembling elements made separately (a painted background, characters, effects, sometimes live-action footage) into one image per frame, while keeping control over each of them. Blender can do it in three places: in the 3D scene itself, where Grease Pencil drawings sit next to meshes; in the Compositor, a node editor that stacks render layers and image sequences; and in the Video Sequencer, for simple overlays. This guide follows a shot from start to finish in Blender 5, with each setting named as it appears in the manual. If you are new to drawing in Blender, start with our Grease Pencil guide.

    Do you need the Compositor at all?

    Not always. A Grease Pencil object is a Blender object like any other: it renders together with the 3D scene, so a drawn character standing in a modeled set comes out of a single render already combined. Each Grease Pencil layer also has its own Blend Mode and Opacity, plus a Lights option that decides whether the scene lights affect it. The 2D vs 3D animation guide shows the hybrid styles this makes possible.

    The Compositor earns its place when you want to handle the elements separately. The manual lists the usual reasons for splitting a render: applying different effects to the foreground and the background, rendering characters apart from the environment, and re-rendering only the layer that changed instead of the whole shot. Animation drawn in another program, and filmed footage, also come together there.

    Step 1: split the shot into view layers

    A view layer is a version of the scene that renders only the collections you include. At the top of View Layer Properties, add one to the list: New creates an empty view layer, Copy Settings duplicates the current one, and Blank starts with every collection disabled. Then, in the Outliner, tick or untick each collection for the active view layer. An excluded collection disappears from that layer's render, viewport and Outliner.

    Grease Pencil goes one step finer. Each layer of a Grease Pencil object has a View Layer field, under Object Data Properties > Layers > Relations. Pick a view layer there and that drawing layer renders only in it; leave the field empty and it renders in every view layer. The manual presents this option as a way to separate parts of a drawing for compositing. A typical shot ends up with something like this:

    • BG: the background, painted or modeled, without the characters.
    • CHAR: the Grease Pencil layers of the characters, assigned to this view layer.
    • FX: effects drawn on their own layers, so they can be treated apart in the Compositor.

    Two more settings matter for each view layer. Under Filter, the Grease Pencil checkbox decides whether Grease Pencil objects render in that layer at all, which suits a background made only of 3D objects. Under View Layer, Use for Rendering includes the layer in the final render, while Render Single Layer renders only the active one, handy for tests. The manual notes that Render Single Layer is ignored when rendering from the command line, so switch off Use for Rendering on any view layer you do not want in the output.

    For cut-outs, a collection can also be set to Holdout in a view layer: its objects render as transparent areas that mask whatever is behind them, a tool the manual describes for separating foreground and background elements.

    Step 2: render with a transparent background

    For one layer to sit on top of another, everything around its drawings must be transparent. Turn on Render Properties > Film > Transparent, which the manual describes as rendering the background transparent so the image can be composited over another background afterwards. The option exists in both EEVEE and Cycles, and Cycles adds Transparent Glass for glass surfaces.

    Keep two things in mind. The 2D Animation template (File > New > 2D Animation) sets the world color to white, so without Transparent every layer renders on white. And Transparent is a render setting of the scene, so it applies to every view layer: the background layer has to fill the frame, or its empty areas come out transparent too. Our guide to a transparent background in Blender covers the file formats and video codecs that keep the alpha channel.

    Check the colors while you are there. The 2D Animation template also sets the view to Standard, which the manual describes as doing no conversion beyond the one the display needs, and as a common choice for non-photorealistic work. AgX, the default view transform in new files since Blender 4.0, aims at photorealistic results instead. If the colors of your drawings do not match the ones you picked, look at the View Transform in Render Properties > Color Management.

    Step 3: stack the layers in the Compositor

    Open the Compositing workspace: a large Image Editor at the top shows the Viewer node, the Compositor sits below it, the Properties editor on the right and the Timeline at the bottom. In the Compositor header, click New to create the node tree. It starts with a Group Input node, whose Image socket carries the rendered image (the Combined pass), and a Group Output node, whose Image input becomes the final picture. Then build the stack:

    1. Add a Render Layers node for each view layer and pick the view layer in its drop-down. Each node outputs the Image, its Alpha, and any pass enabled for that layer.
    2. Add an Alpha Over node. Connect the background layer to Background and the layer that goes on top to Foreground.
    3. For a third layer, add a second Alpha Over: the result of the first goes into Background, the new layer into Foreground. Keep chaining from the bottom of the stack to the top.
    4. Connect the last Alpha Over to the Group Output. Nodes that do not lead to the Group Output are ignored.
    5. Press Shift + Ctrl and click any node to send it to the Viewer and check that step on its own.

    Factor, on the Alpha Over node, sets the opacity of the foreground from 0 to 1. Animate it and a layer fades in: the manual's example drives Factor from 0 to 1 over 30 frames with a Time Curve node. Type chooses the blending method: Over is the standard one, Disjoint Over gives cleaner edges when the background has already been held out by the foreground, and Conjoint Over suits a foreground that is mostly but not fully opaque. Leave Straight Alpha off unless the foreground was explicitly converted to straight alpha, since most images in the Compositor are premultiplied.

    An effect meant for one layer only goes between that layer's Render Layers node and its Alpha Over: a blur on the background, a color correction on the characters. The rest of the stack stays untouched.

    Last step, and the one most often missed: turn on Output Properties > Post Processing > Pipeline > Compositing. Without it, the render engine ignores the node tree. With it, Blender applies the tree to every frame and keeps the image that reaches the Group Output. To preview in the 3D Viewport, the Viewport Compositor shows the result live, but the manual notes that it only provides render passes with EEVEE; with other engines, those outputs are empty.

    The Grease Pencil pass

    Instead of a dedicated view layer, you can also pull Grease Pencil out of a render with a pass. In View Layer Properties > Passes > Data, tick Grease Pencil (Cycles, EEVEE and Workbench): the Render Layers node gets an output with only the visible strokes and fills, ready for effects of their own. The manual notes that in most scenes, laying this pass with Alpha Over on the rest of the image reproduces the Combined result, for example over a view layer rendered with the Grease Pencil filter off. Some Grease Pencil blend modes can modify the alpha channel, though, and the separate composite then looks different. Compare one frame with the Combined image before rendering the shot.

    Bring in 2D animation made in another program

    Frames drawn in another 2D program come into Blender as an image sequence. Export them as numbered PNG files with an alpha channel: PNG and OpenEXR store alpha, JPEG does not. Then pick one of three routes.

    In the Compositor: the Image node

    An Image node loads a single image, an image sequence or a movie, chosen in Source. For a sequence or a movie, Start Frame sets the scene frame where it begins, Offset the number of frames to skip at its start, and Frames how many frames to play; Cyclic loops it. The node outputs Image and Alpha: plug it into the Foreground of an Alpha Over to place the animation over your render, or into the Background to put a painted background behind your Grease Pencil layers. Blender plays video at the scene frame rate, not at the file's own, so a mismatch makes it run fast or slow: match the scene frame rate to the footage, or use the driver on Offset that the manual gives.

    In the scene: an image plane

    To place the animation inside the 3D scene, use Add > Image > Mesh Plane in the 3D Viewport. With Detect Image Sequences on, Blender creates a single plane carrying the animated sequence, sized to the image's aspect ratio. In the Material options, Shader decides how it reacts to light: Principled for a plane lit like any surface, Shadeless for one that ignores lighting, Emission to feed the image into the emission input; tick Alpha so the transparent areas stay transparent. The plane then behaves like any object in the scene, so several planes at different distances from the camera give depth when the camera moves. With EEVEE, keep the Dithered render method if you need render passes: materials set to Blended only appear in the Combined and Transparent passes.

    As strokes: Trace Image to Grease Pencil

    To turn drawings into editable Grease Pencil strokes, add the image as an Image Empty and run Object > Convert > Trace Image to Grease Pencil. With Mode set to Sequence, it traces an image sequence. The tool works on black and white images (others are converted internally), and the manual advises keeping the resolution small, since high resolutions produce very dense strokes.

    2D animation over live-action footage

    Footage is just one more layer, at the bottom of the stack. For video compositing and motion tracking, the manual recommends loading the footage in the Movie Clip Editor; a Movie Clip node then brings it into the Compositor, with its Image and Alpha, plus the offset, scale and angle from the tracking when the clip is tracked (see our camera tracking guide). For a quick overlay, an Image node with Source set to Movie also works. Either way, the footage goes into the Background of an Alpha Over and your render, with a transparent film, into the Foreground. To draw frame by frame over the footage itself, see rotoscoping in Blender.

    For a simple overlay without nodes, the Video Sequencer has an Alpha Over strip. Select the background strip first and the foreground strip second: the strips are layered in that order, and Opacity controls how much the foreground covers. If a glow or odd transparent areas appear around the foreground, the manual advises enabling Premultiply on the foreground strip. Then turn on Output Properties > Post Processing > Pipeline > Sequencer, so the render outputs the sequencer instead of the camera view.

    Render the final composite

    With Compositing on in the pipeline, Render Animation (Ctrl + F12) writes the composited frames to the path set in Output Properties > Output. Animation renders are saved automatically, with the frame number added on four digits (image0001.png); a run of # characters in the name sets its length and position. For the format:

    • PNG with Color set to RGBA, when the final frames must stay transparent for a later edit.
    • OpenEXR, in 16 or 32-bit float, when the frames go on to more grading or compositing; it stores alpha too.
    • A video file only at the very end: our guide to rendering an animation in Blender explains why to render frames first, then assemble them.

    The File Output node saves more than the final image. Connect any point of the tree to it, each view layer before the stack for example, and it writes one file per frame, as separate images or together in a Multi-Layer EXR. A name containing #### places the frame number where you want it.

    Grease Pencil lines have their own quality settings in Render Properties > Grease Pencil. More SSAA Samples give smoother lines but a longer render, and a higher SMAA Threshold can blur away detail. Motion Blur Steps sets the accuracy of Grease Pencil motion blur when motion blur is on; 0 turns it off for Grease Pencil objects.

    Common problems

    • The render ignores the nodes: Compositing is off in Output Properties > Post Processing, or the chain does not reach the Group Output.
    • A layer renders on white: Film > Transparent is off, and the 2D Animation template's world is white.
    • A drawing shows up in every layer: its Grease Pencil layer has an empty View Layer field, which means all view layers.
    • Imported footage plays too fast or too slow: Blender plays video at the scene frame rate.
    • Transparency is lost in the files: saved as JPEG, which has no alpha, or with Color set to RGB instead of RGBA.
    • Passes are empty in the viewport preview: the Viewport Compositor only provides passes with EEVEE.

    Frequently asked questions

    Can you composite 2D animation in Blender?

    Yes. Blender's Compositor stacks render layers, image sequences and video with nodes such as Alpha Over, and Grease Pencil lets you draw the 2D animation in the same scene. Turn on Compositing under Output Properties > Post Processing so the render uses the node tree.

    How do I put 2D animation on top of a 3D render in Blender?

    Either draw it with Grease Pencil in the same scene, where it renders together with the 3D objects, or render the 2D and the 3D on separate view layers with Film > Transparent on, then combine them with an Alpha Over node, the 2D layer in the Foreground socket.

    How do I import a PNG sequence into the Blender Compositor?

    Add an Image node, load the numbered PNG files and set Source to Image Sequence; Start Frame, Offset and Frames control its timing. Connect its Image output to an Alpha Over node. To place the sequence inside the 3D scene instead, use Add > Image > Mesh Plane with Detect Image Sequences.

    How do I render Grease Pencil with a transparent background?

    Turn on Render Properties > Film > Transparent, then save as PNG with Color set to RGBA, or as OpenEXR. The 2D Animation template sets the world color to white, so without Transparent the background renders white.

    Why do my compositor nodes not show in the final render?

    Compositing must be enabled under Output Properties > Post Processing, and the chain must end at the Group Output node: nodes that are not connected to it are ignored.

    Can I composite 2D animation over live-action video in Blender?

    Yes. Load the footage in the Movie Clip Editor and bring it into the Compositor with a Movie Clip node, or use an Image node with Source set to Movie for a quick overlay. Connect it to the Background of an Alpha Over node and your transparent render to the Foreground. Blender plays video at the scene frame rate, so match the two. The Video Sequencer's Alpha Over strip also works for simple overlays.

    Rendering the animation on TURNA

    When a scene is already well optimised and the frame count is what takes the time, the remaining lever is rendering several frames at once on a render farm. TURNA does this for Blender: an add-on (Blender 4.0 to 5.3, Cycles and Eevee) sends the scene in one click, and the frames are split across 1, 2, 4 or 8 GPUs in parallel, on RTX 4090 and RTX 5090, the card chosen to suit the scene (the 5090 only from Blender 4.4). The add-on shows the estimated cost before anything starts. Prices start at €5.90 per hour, billed on the time actually used, with a 2-minute minimum, and €25 of free credit is added once your email address is confirmed and the onboarding questionnaire is answered, no credit card, once per person. A single still image is still rendered by one machine, so the gain is on animations. Tiers and worked examples are on the Blender render farm page.

    The render time calculator estimates how long a sequence will take from the time of one frame.