---
title: "Make a sprite sheet loop without a visible jump"
description: "A sprite sheet loops cleanly when its last frame leads into its first. Simulated fire and smoke settle first, then blend their last frames into the start."
canonical: https://appliedmanifold.com/effects/sheets/seamless-loop/
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.  Loop without a jump

SHEET FORMAT // LOOP

# How to make a sprite sheet loop smoothly

Your loop looks smooth when the last frame leads straight back into the first, so nothing pops at the wrap. Simulated fire and smoke get there by running until they settle, then cross-fading their last frames into the first. Ask your agent for a looping fire or smoke and you get a sheet with that blend done.

[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.

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

01 // HOW IT WORKS

## Why loops jump and how they are fixed

A sprite sheet loop jumps when its last frame does not lead into its first. For a hand-drawn loop the artist matches the ends by hand. For a simulated effect, the usual fix is to run the effect until it reaches a steady state and then blend the end of the clip into its start over a few frames.

An exact copy of the first frame at the end causes its own problem, because the engine then shows the same picture twice in a row, which reads as a hitch. The last frame should lead into the first the way any two neighbors do.

02 // SPATIAL COMPILER

## Loop settings in Spatial Compiler

-   `export.loop = true` turns a compile into a loop. The clip length is `domain.duration_s`, and the emitter keeps running past it.
-   `warmup_s` sets how long the effect runs before the first written frame: 2.5 s for the fire, 3.0 s for the fire whirl, 4.0 s for the window fire and 6.0 s for the smoke plume.
-   `loop_blend_frames` sets how many frames blend into the start, 8 by default and 12 in the looping examples.
-   The report measures the difference between the last and first frame as `loop_seam` and warns `LOOP_SEAM` above 0.05, naming those two keys as the fix.

`layout.json` records the loop flag, so a reader knows to wrap the sheet instead of stopping on the last frame.

03 // ENGINES

## Set the loop in your engine

Scenes from a wired Godot 4 compile loop on their own. By hand, keep Looping on in Unity's Main module, give Niagara's Sub UV Animation enough loops to cover the particle's life, set `FlipbookMode` to Loop in Roblox Studio, or wrap the frame index with the modulo operator in three.js.

04 // RELATED

## Related pages

-   [Loop vs one-shotLooping effects repeat until stopped and one-shot effects play once and fade out, and each needs its own frames and settings.](https://appliedmanifold.com/learn/loop-vs-one-shot/)
-   [First and last loop framesWhy the last frame of a loop should lead into the first rather than copy it, and how to blend a loop that wraps cleanly.](https://appliedmanifold.com/guides/loop-first-last-frame/)
-   [Loop a fire sheet Godot 4Find why a fire loop pops in Godot 4 and fix it in the sheet, the AnimatedSprite3D or the GPUParticles3D emitter settings.](https://appliedmanifold.com/guides/godot-loop-fire-sprite-sheet/)
-   [Steady fire sprite sheetA steady fire about 1.5 m across as a 2 second looping sprite sheet for wrecks and campfires, sized to your scene and lit with a flicker light.](https://appliedmanifold.com/effects/steady-fire-sprite-sheet/)
-   [Smoke plume sprite sheetChimney or wreck smoke as a 4 second looping sprite sheet that leans with the wind, how to change the wind, and how it relights in Godot 4.](https://appliedmanifold.com/effects/smoke-plume-sprite-sheet/)
-   [Loops without a seamA loop with no visible seam blends its last frames into its first, so a fire or smoke effect keeps looping without a pop.](https://appliedmanifold.com/learn/seamless-loop/)
-   [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/)

[← Transparent background](https://appliedmanifold.com/effects/sheets/transparent-background/)[layout.json →](https://appliedmanifold.com/effects/sheets/layout-json/)

05 // FAQ

## Loop questions

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

**README.SHEETS\_SEAMLESS\_LOOP**

### Should the first and last frames of a loop match?

No. The last frame should lead into the first like any two neighboring frames or the loop shows one picture twice and hitches.

### How many frames are needed for a looping particle effect?

Enough to cover one full cycle at a steady rate. Sixty four frames gives a two second loop at 32 frames a second.

### How do I loop a smoke flipbook in Niagara?

Set the Sub UV Animation module to Linear with a loop count covering the particle lifetime and give the Sprite Renderer an 8 by 8 size.

### How do I make a Roblox fire flipbook loop continuously?

Set FlipbookMode to Loop and FlipbookLayout to Grid8x8, keep the emitter running with a steady Rate and use a sheet precomputed as a loop.

### Why does my looping flipbook skip at the end?

Usually the loop repeats its first frame at the end or playback stops a frame early. Check that the engine plays every frame per cycle.

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