---
title: "three.js fire, smoke and explosion effects"
description: "Play fire, smoke, explosion and dust sprite sheets in three.js today on a Sprite with the documented packed-sheet snippet. Steps and code for each effect."
canonical: https://appliedmanifold.com/effects/threejs-vfx/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Effects](https://appliedmanifold.com/effects/)
3.  three.js VFX

EFFECTS // THREE.JS

# three.js VFX: fire, smoke, explosions and dust

You can play fire, smoke, explosion and dust effects in three.js today from PNG sprite sheets your agent makes. A snippet loads the packed RGBA sheet on a THREE.Sprite, sets its repeat to one eighth and steps the offset through 64 frames. Each effect page has the code. Godot 4 gets a ready scene that relights the smoke.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [What the sheets hold →](https://appliedmanifold.com/docs/pyrofx/outputs/)

-   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 // WHAT WORKS TODAY

## What works in three.js today

A sprite sheet puts real fire and smoke on the web with one texture per effect and no simulation in the browser. Additive blending suits flame and normal blending suits smoke.

Godot 4 gets a ready scene that relights the smoke. three.js uses the documented snippet. A native six-way material is not built yet.

02 // REAL OUTPUT

## Real effects to start from

**SMOKE\_PLUMEFINAL**

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

Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_plume)

**DUST\_RINGFINAL**

![First frame of the dust\_ring bake](/bakes/dust_ring/poster.webp)

Dust ring, 10.5 x 2.2 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-dust_ring)

These effects are real compiles of the shipped examples, and each one's page has the three.js code for its sheets.

03 // ALL PAGES

## Every three.js effect

### Fire, explosions, smoke and dust

-   [three.js fire three.jsA looping fire, from a burning wreck to a fire whirl or a window fire, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-fire/)
-   [three.js explosion three.jsAn explosion that plays once, a ground fireball or a shell impact, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-explosion/)
-   [three.js smoke three.jsSmoke that loops as a leaning plume or rises once after a blast, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-smoke/)
-   [three.js dust three.jsA dust burst that plays once, a landing ring or thrown earth, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-dust/)

### Effects by example

Each page covers one shipped example effect, with its real size, length and settings.

-   [three.js steady fire three.jsA steady fire about 1.5 m across that loops every 2 seconds, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-steady-fire/)
-   [three.js fire whirl three.jsA fire whirl that spins flames into a 7 m column and loops every 2 seconds, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-fire-whirl/)
-   [three.js window fire three.jsA window fire venting flame and smoke from a burning room, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-window-fire/)
-   [three.js fireball three.jsA fireball that bursts from the ground and rolls upward in 3.7 seconds, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-fireball/)
-   [three.js impact three.jsA shell impact with a flash, thrown earth and smoke in 2 seconds, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-impact/)
-   [three.js smoke plume three.jsA smoke plume that leans with the wind and loops every 4 seconds, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-smoke-plume/)
-   [three.js smoke column three.jsA smoke column that climbs and thins for 5 seconds after a blast, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-smoke-column/)
-   [three.js dust ring three.jsA 10 m ring of dust thrown out by a landing or a blast, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-dust-ring/)

### three.js guides

Each guide answers one question with steps.

-   [Load a sprite sheet three.jsLoad a PNG fire or smoke sprite sheet in three.js and show one frame on a camera-facing sprite.](https://appliedmanifold.com/guides/threejs-load-sprite-sheet/)
-   [Sprite sheet UV math three.jsTurn a frame number into texture offset and repeat values for a three.js sprite sheet, in JavaScript and in GLSL.](https://appliedmanifold.com/guides/threejs-sprite-sheet-uv/)
-   [Loop a sprite animation three.jsLoop a fire or smoke sprite sheet in three.js from elapsed time, so it plays at the same speed on every screen.](https://appliedmanifold.com/guides/threejs-loop-sprite-animation/)
-   [Play an explosion once three.jsPlay an explosion sprite sheet once in three.js, then remove the sprite and free its material and texture.](https://appliedmanifold.com/guides/threejs-play-once/)
-   [Random start frame three.jsPlay one looping sprite sheet on many three.js sprites out of step with a random frame offset per sprite.](https://appliedmanifold.com/guides/threejs-random-start-frame/)
-   [Additive fire three.jsMake a three.js fire flipbook glow with additive blending and a ShaderMaterial that decodes flame color and brightness.](https://appliedmanifold.com/guides/threejs-additive-fire/)
-   [Smoke blending three.jsBlend flipbook smoke over a three.js scene with normal blending, no depth writes and a small shader that reads the sheet.](https://appliedmanifold.com/guides/threejs-smoke-blending/)
-   [Sprites that face the camera three.jsKeep three.js fire and smoke facing the camera with THREE.Sprite or an upright Y-axis billboard that suits side-on sheets.](https://appliedmanifold.com/guides/threejs-sprites-face-camera/)

04 // FAQ

## three.js VFX questions

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

**README.THREEJS\_VFX**

### How do I make a fire effect in three.js?

Play a fire sprite sheet on a THREE.Sprite, set texture repeat to one eighth, step the offset through 64 frames and use additive blending.

### How do I make a smoke effect in three.js?

Use a smoke sprite sheet on a Sprite with normal blending, transparent enabled and depthWrite disabled so smoke layers cleanly over the scene.

### Does three.js have a sprite sheet animation helper?

No built in helper exists. You set texture repeat and offset per frame in a few lines of code or use a small shader.

### Does three.js get a ready scene like Godot?

No. Godot gets a ready scene that relights the smoke, while three.js gets a documented snippet that plays the packed sheet on a THREE.Sprite.

## 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) [Read the docs →](https://appliedmanifold.com/docs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
