EFFECTS // THREE.JS

How to make a smoke plume in three.js

In three.js, you can play a smoke plume that leans with the wind and loops every 4 seconds. A snippet loads the packed RGBA sprite sheet on a THREE.Sprite, sets the texture repeat to one eighth, and wraps back to frame 0. 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.

SMOKE_PLUMEFINAL
First frame of the smoke_plume bake
Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. Spec →

01 // WHAT YOU GET

What you get for smoke plume in three.js

The smoke plume rises from a source on the ground and leans with the wind, about 7 m wide and 10.8 m tall. It loops every 4 seconds, so it can run for as long as something keeps burning. The lighting sheets let your engine relight it from any sun angle.

You get three PNG sheets of 64 frames, a layout.json with the timing, and previews, which three.js plays through a small material.

02 // HOW TO

Play the smoke plume in three.js

  1. Ask your agent for the effect (for example "a chimney smoke plume leaning to the left that loops") with export.pack writing the light from above into RGB and opacity into alpha, so one PNG holds gray shading you can tint. (main_pos.png as it comes holds three light directions in RGB, not a color.) Load it with TextureLoader and set texture.repeat.set(1 / 8, 1 / 8).
  2. Put it on a THREE.Sprite with a SpriteMaterial (transparent: true, depthWrite: false) so it always faces the camera. Normal blending suits smoke; tint it with the material color.
  3. Each frame, pick the tile: column i % 8 and row Math.floor(i / 8), then set texture.offset.set(col / 8, 1 - (row + 1) / 8).
  4. Advance i by 16 frames a second, the smoke plume's real speed (64 frames in 4 s), and wrap it with i % 64 so it loops.
  5. Set sprite.scale.set(s, s, 1) with s the meters per tile from layout.json, a little over 10.8 m for the smoke plume, so it shows at its real size.

03 // ADJUST IT

Adjust the smoke plume for your scene

Use it over burning wrecks, chimneys and distant fires. Ask your agent for less lean on a calm day, thicker smoke for burning fuel or white steam instead of grey smoke.

04 // SETTINGS

Settings in the smoke plume spec

A steady smoke source and a sideways wind make the lean, and the loop settings blend the end into the start.

Ask your agent to change these and compile again; the full smoke_plume spec lists every value.

06 // FAQ

Questions about smoke plume in three.js

All questions →

README.THREEJS_SMOKE_PLUME
Is there a smoke plume effect for three.js?

Yes. Ask your agent for a chimney smoke plume leaning with the wind that loops, starting from the smoke_plume example.

How do I loop a smoke plume sprite sheet in three.js?

Advance a frame counter at 64 frames per 4 seconds, wrap it modulo 64 and set texture.offset from the column and row.

How do I make a realistic smoke plume in three.js?

Start from a simulated plume instead of manual particles. A steady source and sideways wind create the lean while loop settings blend.

How do I keep a smoke plume in proportion in three.js?

Keep the Sprite square because every tile is square. Set sprite.scale.set(s, s, 1) using the meters per tile from layout.json.

How many frames does the smoke plume effect use?

The smoke plume compile uses 64 frames over a 4 second loop and frame blending smooths slow motion.

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 →