---
title: "What are flipbook motion vectors? Smooth VFX frames"
description: "Flipbook motion vectors store how each pixel moves between frames, so a shader can warp and blend frames for smooth slow playback without ghosting."
canonical: https://appliedmanifold.com/learn/flipbook-motion-vectors/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Learn](https://appliedmanifold.com/learn/)
3.  Flipbook motion vectors

LEARN // EFFECTS

# What are flipbook motion vectors

Flipbook motion vectors are a texture that records which way each pixel of your effect moves from one frame to the next. Your shader uses them to slide the current frame forward and the next frame back before blending, so a 64-frame flipbook plays smoothly at slow speeds instead of stepping or showing double images.

[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 // HOW IT WORKS

## How motion vectors line up two frames

Without blending, a flipbook jumps from cell to cell, which shows as stutter when the effect plays slowly or sits close to the camera. A plain crossfade between two frames hides the steps but leaves a ghost, because halfway through the smoke sits in two places at once.

A motion vector texture stores a 2D offset per pixel, usually in the red and green channels, with mid gray meaning no motion. Between frames the shader samples frame A pushed part of a step along the motion and frame B pulled back by the rest, so the two copies line up before they mix. A scale value turns the stored offsets into texture units.

02 // IN YOUR SCENE

## When you need them

-   Large, slow smoke close to the camera, where each frame stays on screen long enough to notice.
-   Effects played slower than they were precomputed, for slow motion or a calmer plume.
-   Short sheets, where motion blending lets 32 or 64 frames cover a longer clip.
-   Unity's URP Flip-Book Blending and Unreal's Sub UV Blending are crossfades, so motion vector blending needs a custom shader or material in most engines.

03 // REAL OUTPUT

## Compiles that carry motion

Both compiles include a motion sheet: the smoke plume drifts with the wind and the fire whirl spins.

**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)

04 // SPATIAL COMPILER

## Motion in every compile

Every compile writes motion to the red and green channels of `main_aux.png`, with the scale to decode it in `layout.json`, so a shader can blend frames with it. The same sheet stores depth in blue for the soft fade against scene geometry. See [motion vectors](https://appliedmanifold.com/effects/sheets/motion-vectors/).

05 // RELATED

## Related pages

-   [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/)
-   [Blend flipbook framesBlend flipbook frames with a crossfade or with motion vectors, and where Unity, Unreal, Godot 4 and three.js support each.](https://appliedmanifold.com/guides/blend-flipbook-frames/)
-   [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/)
-   [Flipbook textureA flipbook texture packs an animation's frames into one grid image that your engine plays cell by cell on a quad.](https://appliedmanifold.com/learn/flipbook-texture/)
-   [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 Learn →](https://appliedmanifold.com/learn/)

[← Six-way lighting](https://appliedmanifold.com/learn/six-way-lighting/)[Soft particles →](https://appliedmanifold.com/learn/soft-particles/)

06 // FAQ

## Motion vector questions

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

**README.FLIPBOOK\_MOTION\_VECTORS**

### How do I blend between flipbook frames smoothly?

Crossfade the current and next frames by the time fraction between them and warp both with a motion vector texture first to avoid ghosting.

### Why does my flipbook animation stutter or appear to skip frames?

Stutter happens when frame rate is too low for the motion or playback speed does not match the total frame count and lifetime.

### What frame rate should I use for a flipbook animation?

Match the rate the frames were made for, often 24 to 32 frames per second or play slower when using motion vector blending.

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

In Unreal Engine, enable Sub UV Blending Enabled on the Niagara Sprite Renderer and use a Particle SubUV node, adding motion vectors in custom materials.

## 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/)
