---
title: "Flipbook motion vectors for smooth frame blending"
description: "Motion vectors store which way each pixel moves, so a shader slides one flipbook frame toward the next and smoke stays smooth at 16 to 32 frames a second."
canonical: https://appliedmanifold.com/effects/sheets/motion-vectors/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Effects](https://appliedmanifold.com/effects/)
3.  [Sprite sheets](https://appliedmanifold.com/effects/sheets/)
4.  Motion vectors

SHEET FORMAT // MOTION

# How motion vectors smooth a flipbook

Motion vectors let your flipbook blend smoothly between frames: each pixel stores which way the smoke moved, so a shader slides one frame toward the next instead of cross-fading the two. A 64-frame sheet then plays smoothly even when slowed down. You get them in a fourth sheet, and the Godot 4 shader uses them.

[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\_COLUMNFINAL**

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

Smoke column, 8.2 x 9.9 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_column)

01 // HOW IT WORKS

## Cross-fade or motion blend

A flipbook at 16 to 32 frames a second can look steppy, most of all when the effect plays slowly or the camera is close. A cross-fade between neighbors hides the steps but shows two ghosted shapes at once.

A motion blend reads a motion vector, a per-pixel direction and distance stored in a texture, and pushes each frame partway toward the next, so the shapes flow from one frame into the other.

02 // SPATIAL COMPILER

## Motion in Spatial Compiler's sheets

The red and green channels of `main_aux.png` hold the screen-space motion of what is visible, and `layout.json` holds the scale to decode them. The blue channel holds depth. Motion is one of the default `export.channels`.

In Godot 4, `flipbook_6way.gdshader` blends each frame toward the next along these motion vectors.

03 // OTHER ENGINES

## Frame blending in other engines

Unity's URP particle shaders have a Flip-Book Blending option, which needs the UV2 and AnimBlend custom vertex streams, and Niagara has Sub UV Blending Enabled on the Sprite Renderer. Both cross-fade, so reading the motion sheet there takes a custom shader, and no tested one exists yet.

Import `main_aux.png` as linear data with light compression, because sRGB conversion or heavy compression bends the stored directions.

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/)
-   [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 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 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/)
-   [Smoke column sprite sheetThe smoke left after a blast as a 5 second one-shot sprite sheet, how to layer it after an explosion, and how to time it in each engine.](https://appliedmanifold.com/effects/smoke-column-sprite-sheet/)
-   [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 Sprite sheets →](https://appliedmanifold.com/effects/sheets/)

[← layout.json](https://appliedmanifold.com/effects/sheets/layout-json/)[Depth fade →](https://appliedmanifold.com/effects/sheets/depth-fade/)

05 // FAQ

## Frame blending questions

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

**README.SHEETS\_MOTION\_VECTORS**

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

Use motion vectors if your shader reads them or a crossfade if it does not. These sheets include motion vectors in main\_aux.png.

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

Usually the frame rate is too low for the motion, the playback rate does not match layout.json or a loop repeats a frame.

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

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

### Which Unity flipbook shader blends frames?

The URP particle shaders blend frames when Flip Book Blending is enabled and UV2 and AnimBlend custom vertex streams are added in the Renderer module.

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