---
title: "Looping smoke flipbook with six-way lighting | Spatial Compiler"
description: "Get a looping smoke flipbook from the hosted API for $0.10: 64 frames lit from six directions, so your shader relights the smoke to match your scene's sun."
canonical: https://appliedmanifold.com/use-cases/fire-and-smoke/smoke-flipbook/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Use cases](https://appliedmanifold.com/use-cases/)
3.  [Fire and smoke](https://appliedmanifold.com/use-cases/fire-and-smoke/)
4.  Smoke flipbook

# Get a smoke flipbook that takes your lighting

Describe the smoke and get a looping 64-frame flipbook lit from six directions. Your shader mixes them by your sun's direction, so the smoke shades like the rest of the scene as the light moves.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys&job=fire-flipbook) [Start with your agent](https://appliedmanifold.com/use-cases/fire-and-smoke/smoke-flipbook/#get-started)

Smoke column, sun circling the scene

-   **6**lighting directions in the sheets
-   **64**frames that loop every 4 s
-   **$0.10**per full-quality compile
-   **About 30 s**from spec to sheets

Rendered in three.js from the compiled sheets while the sun circles the scene once every 8 s. The rocks, ground and sun are three.js. Compiled on the hosted API on 3 December 2026.

## Relightable smoke

A smoke flipbook rendered under one light looks wrong the moment your sun moves or the camera turns toward it.

Six-way sheets store how the smoke looks lit from each side, so your shader can light it again for any direction.

## What the terms mean

-   ### Six-way lighting

    Six pictures of the smoke, lit from the right, left, top, bottom, front and back.

    Your shader blends them by the sun's direction, so the lit side follows the sun.

-   ### Opacity

    How much the smoke hides what is behind it.

    Thin wisps let the sky through and the thick column does not.

-   ### Loop

    The last frame flows straight into the first.

    The column rises for as long as the scene runs, with no jump.

## How it works

1.  ### Describe the smoke

    Tell your agent where it rises and how the wind blows, such as a grey column from a smouldering pile in a light breeze.

2.  ### See the price, then compile

    A full-quality compile costs $0.10. Repeat compiles of the same spec are free.

3.  ### Light it in your engine

    Blend the six lit channels by your sun's direction in the shader. Godot and three.js both run it on one card.

[How six-way lighting works](https://appliedmanifold.com/learn/six-way-lighting/)

## Questions

### Why six lighting directions instead of one?

A sheet lit from one side keeps that light forever. With six directions your shader blends a new light for any sun position, so the smoke stays consistent with your scene.

### Can the smoke drift with the wind?

Yes. Set the wind in the spec and the column leans and drifts downwind in every frame, then loops.

[All use cases](https://appliedmanifold.com/use-cases/)

## Use with your agent

Paste the prompt into Claude Code, Cursor or Codex. Your agent connects to Spatial Compiler and comes back with three flipbook sheets with six-way lighting, a layout file and a preview.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys&job=fire-flipbook) [Try it in the Playground →](https://console.appliedmanifold.com/playground?module=pyrofx&item=smoke_plume)

New accounts start with $5 of usage, and you see the price of each job before it runs.

Agent prompt

Connect the Spatial Compiler MCP server at https://spatialcompiler.dev/mcp if it isn't connected yet. Use pyrofx to compile a looping grey smoke column rising from a smouldering pile in a light breeze, with six-way lighting, motion and depth channels, at full quality. Start with a draft right away and ask before running a final compile.

Or add the server yourself in Claude Code:

`claude mcp add --transport http spatial-compiler https://spatialcompiler.dev/mcp`

[Set it up in Cursor, Codex or another agent](https://appliedmanifold.com/docs/mcp/)

Once connected, your agent can call the `starter` tool. It returns a ready fire Draft spec and the exact call that runs it. Your first 100 fire Drafts are free with the $5 signup credit.
