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.

  • 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 // 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
Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. Spec →
DUST_RINGFINAL
First frame of the dust_ring bake
Dust ring, 10.5 x 2.2 m, compiled with Spatial Compiler. Spec →

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

Effects by example

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

three.js guides

Each guide answers one question with steps.

04 // FAQ

three.js VFX questions

All questions →

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.

All effects, guides and explainers →