SHEET FORMAT // PNG OR EXR

Should a VFX sprite sheet be PNG or EXR

Use 8-bit PNG for most game effects: it is small, every engine imports it, and it keeps alpha. Use 16-bit PNG when thin smoke shows bands, and EXR when you need values brighter than white, such as a raw flame core. You can ask your agent for any of the three formats.

  • 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
Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. Spec →

01 // HOW IT WORKS

What each format stores

  • 8-bit PNG: 256 levels per channel, with alpha. Files are small, and every engine imports and compresses them.
  • 16-bit PNG: 65,536 levels per channel, with alpha. Faint smoke keeps smooth gradients, and files are larger.
  • EXR: floating point values with alpha, so a channel can hold brightness above 1.0. Files are larger, and each engine handles them its own way.

02 // SPATIAL COMPILER

The three formats you can ask for

export.format takes png8 (the default), png16 or exr. The example compiles ship as 8-bit PNG.

An 8-bit sheet still carries a white-hot flame. The flame brightness in the alpha of main_neg.png is stored as a square root against a per-clip maximum that layout.json records, which spends more of the 256 levels on dim flame. Square it and multiply by scales.emit_max_hdr to get the HDR value back.

If the compile report warns FLAME_CLIPPED, more than a tenth of the flame pixels sit at the encoding limit. Lowering look.exposure is the first fix, and a higher-precision format is the other.

03 // IMPORT

Color space and compression on import

Engines read a color texture as sRGB and a data texture as linear. Motion and depth in main_aux.png are data, so import that sheet with sRGB off, and give it light compression, because strong compression smears the stored directions. In Godot 4 your agent sets the import settings when it wires the compile.

05 // FAQ

PNG and EXR questions

All questions →

README.SHEETS_PNG_VS_EXR
How do compression, color space and HDR affect PNG and EXR VFX textures?

Compression can smear data channels, color space controls sRGB versus linear reads and HDR requires float EXR or encoded alpha.

Should I use PNG or EXR for a VFX sprite sheet?

Use PNG for most effects since every engine imports it and choose EXR when your pipeline needs raw HDR float values.

When should I use 8 bit PNG instead of 16 bit or 32 bit EXR?

Use 8 bit PNG by default, switch to 16 bit PNG if faint smoke bands and use EXR for float workflows.

Do PNG and EXR preserve alpha correctly for game effects?

Yes, both store alpha. Issues usually come from import settings such as Alpha Is Transparency or premultiplied alpha mismatches.

What is a PNG sprite sheet?

A PNG sprite sheet is a single lossless PNG image holding every animation frame in a grid with an alpha channel.

What format is a sprite sheet?

Any image format your engine imports, most often PNG. Spatial Compiler writes 8 bit PNG, 16 bit PNG or EXR.

Compile your first effect

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

All effects, guides and explainers →