---
title: "Blend between flipbook frames smoothly"
description: "Mix the current and next frame by playback progress. A crossfade ghosts on fast motion; motion vectors slide frames together and stay sharp."
canonical: https://appliedmanifold.com/guides/blend-flipbook-frames/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Blend flipbook frames

GUIDE // ANY ENGINE

# How to blend between flipbook frames smoothly

Sample the current frame and the next one, then mix them by how far your playback has moved between the two. A plain crossfade works but leaves ghosted double edges on fast motion. Motion vectors, a texture that stores which way each pixel moves, let the shader slide both frames toward each other, so motion stays sharp with fewer frames.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [See the examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

-   Godot 4 Available
-   Unity Manual setup
-   Unreal Engine Manual setup
-   Roblox Studio Manual setup
-   three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

**SMOKE\_PLUMEFINAL**

![First frame of the smoke\_plume bake](/bakes/smoke_plume/poster.webp)

Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_plume)

01 // TWO METHODS

## Crossfade or motion vectors

A crossfade needs nothing but the sheet. At frame 10.25, show 75% of frame 10 and 25% of frame 11. That looks fine on slow smoke, but on fast fire you see two faint flames instead of one moving flame.

Motion vectors need a second sheet with the same grid, where red and green store how far each pixel moves to reach the next frame. The shader pushes frame 10 a quarter of the way forward and pulls frame 11 three quarters of the way back, so both line up before they mix. Smoke stays smooth at 16 frames per second or lower.

02 // BY ENGINE

## Where each engine offers blending

-   Unity: Flip-Book Blending on the URP particle shaders, with the UV2 and AnimBlend custom vertex streams turned on in the Renderer module.
-   Unreal Engine: Sub UV Blending Enabled on the Niagara Sprite Renderer.
-   Godot 4: the Particles Anim setting on `StandardMaterial3D` shows one cell at a time, so blending needs a shader of your own.
-   three.js: a `ShaderMaterial` that samples two cells and mixes them.

03 // WITH SPATIAL COMPILER

## Motion vectors in every compile

**FIRE\_WHIRLFINAL**

![First frame of the fire\_whirl bake](/bakes/fire_whirl/poster.webp)

Fire whirl, 4.4 x 7.1 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire_whirl)

Every Spatial Compiler compile writes motion vectors into `main_aux.png` (red and green) next to the other sheets, and `layout.json` records the scale to decode them. In Godot 4 your agent drops the effect into a scene with a shader that blends along those vectors, so a 4 second smoke loop plays smoothly from 64 frames.

04 // RELATED

## Related pages

-   [Flipbook motion vectorsMotion vectors record how each pixel moves between flipbook frames, so a shader can blend frames smoothly without ghosting.](https://appliedmanifold.com/learn/flipbook-motion-vectors/)
-   [Motion vectorsHow motion vectors blend flipbook frames without ghosting, where they sit in Spatial Compiler's sheets, and what cross-fade blending offers in other engines.](https://appliedmanifold.com/effects/sheets/motion-vectors/)
-   [Flipbook stutterTrack down flipbook stutter step by step: grid, frame count, playback rate, loop wrap, screen refresh and frame blending.](https://appliedmanifold.com/guides/flipbook-stutter/)
-   [Flipbook blending in Unity UnityCross-fade between flipbook frames in Unity with Flip-Book Blending and two custom vertex streams, and see where motion vectors fit.](https://appliedmanifold.com/guides/unity-flipbook-blending/)
-   [Sub UV blending Unreal EngineCross-fade Niagara flipbook frames with Sub UV blending, and see what motion vectors and mip settings add.](https://appliedmanifold.com/guides/unreal-subuv-blending/)
-   [OutputsWith the default export, each view writes four sheets, `<view>_pos.png`, `_neg.png`, `_colour.png` and `_aux.png`, plus `layout.json`, two still previews, the animated `preview_anim.png` and `bake_report.json`. Sheets are 8 x 8 tiles of 256 px by default.](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All pages in Guides →](https://appliedmanifold.com/guides/)

[← Sprite sheet seams](https://appliedmanifold.com/guides/sprite-sheet-seams/)[Flipbook stutter →](https://appliedmanifold.com/guides/flipbook-stutter/)

05 // FAQ

## Frame blending questions

[All questions →](https://appliedmanifold.com/faq/)

**README.BLEND\_FLIPBOOK\_FRAMES**

### How do I enable SubUV interpolation between flipbook frames in Unreal?

Turn on Sub UV Blending Enabled in the Niagara Sprite Renderer and use a material with the Particle SubUV node to crossfade frames.

### How does a flipbook texture play in a game engine?

The engine picks one cell of the grid per step and moves the UVs to it. Blending picks two cells and mixes them.

### How do I advance through a three.js flipbook over time?

Compute a fractional frame number from elapsed time times fps. Use its floor for the cell and its fraction to blend with the next.

### Is there a Godot flipbook shader that blends frames?

StandardMaterial3D shows one cell at a time, so write a spatial shader that samples two cells or use the installed motion vector shader.

## Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Outputs →](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
