---
title: "Channel packing: remap sprite sheet channels"
description: "Channel packing puts several grayscale maps into one RGBA texture. Ask for the sheets repacked into the layout your engine reads, like one RGBA flipbook."
canonical: https://appliedmanifold.com/effects/sheets/channel-packing/
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.  Channel packing

SHEET FORMAT // PACKING

# How to pack sprite sheet channels for your engine

Channel packing puts several grayscale maps into the red, green, blue and alpha of one texture, so your engine loads fewer files. You can ask your agent to repack the sheets into the layout your shader or engine already reads, such as one RGBA flipbook for an engine that takes only one texture.

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

**FIREFINAL**

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

Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire)

01 // HOW IT WORKS

## Why effects pack channels

Most effect data is grayscale: opacity, light from one side, flame brightness, depth. Each one fits in a single channel, so four maps can share one RGBA texture and one texture read. Every shader expects its own order, so a sheet packed for one engine usually needs repacking for another.

02 // SPATIAL COMPILER

## Channel settings you can ask for

-   `export.channels` picks what data the compile writes: any of `six_way`, `emissive`, `motion`, `depth` and `temperature`. The default is the first four.
-   `export.pack` maps each output file's channels to a source, so it can put any channel of any file into the layout an existing reader expects.
-   The smoke plume and smoke column compiles leave out `emissive` and write three sheets. Leave it out of a compile that has flame and the report warns `FLAME_NOT_EXPORTED`.
-   Temperature goes in the alpha of `main_aux.png` when you add `temperature`.

03 // COMMON REPACKS

## Ask for the layout you need

-   One RGBA flipbook for Roblox Studio or a plain three.js `SpriteMaterial`: light from above in RGB and opacity in alpha, at 128 px tiles for Roblox.
-   A flame-only texture for an additive layer: flame color in RGB and flame brightness in alpha.
-   Your own six-way layout: the six directions in the order your shader reads them.

Describe the layout in plain words, and your agent writes the `export.pack` table and compiles again.

04 // RELATED

## Related pages

-   [Texture atlasA texture atlas packs several different images into one texture, so objects and particles can share one material.](https://appliedmanifold.com/learn/texture-atlas/)
-   [Six-way channelsWhich RGBA channel holds which of the six lighting directions, how a shader mixes them, and how to use them in engines without a six-way shader.](https://appliedmanifold.com/effects/sheets/six-way-channels/)
-   [Transparent backgroundHow a VFX sprite sheet keeps its background clear in alpha, why smoke and flame blend differently, and where the opacity sits in each sheet.](https://appliedmanifold.com/effects/sheets/transparent-background/)
-   [Import a flipbook in Roblox Roblox StudioUpload a fire or smoke flipbook to Roblox Studio as one 1024 px RGBA image and assign it to a ParticleEmitter.](https://appliedmanifold.com/guides/roblox-import-flipbook/)
-   [Roblox fire Roblox StudioA looping fire, from a burning wreck to a fire whirl or a window fire, played in Roblox Studio by hand today.](https://appliedmanifold.com/effects/roblox-fire/)
-   [Fire sprite sheetGet a looping fire as a 64-frame sprite sheet from the steady fire, fire whirl or window fire compile, and play it in Godot 4 or by hand.](https://appliedmanifold.com/effects/fire-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/)

[← Six-way channels](https://appliedmanifold.com/effects/sheets/six-way-channels/)

05 // FAQ

## Channel packing questions

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

**README.SHEETS\_CHANNEL\_PACKING**

### How many particle effects should be packed into one texture atlas?

One effect per flipbook is simplest, since its grid fills the whole texture. Spatial Compiler writes one effect per sheet set and packs channels.

### How do I assign a flipbook texture to a Roblox ParticleEmitter?

Upload one RGBA image of at most 1024 by 1024 px, set its asset id as Texture and set FlipbookLayout to Grid8x8.

### Can I get one flipbook texture for Unity instead of four sheets?

Yes. Ask your agent to pack light from above and opacity into one RGBA sheet, then use Texture Sheet Animation set to Tiles 8 by 8.

### Can particle systems use multiple effects from one atlas?

Yes, by giving each effect a range of cells, though each effect gets fewer frames. These sheets give every effect its own full grid.

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