EFFECTS // THREE.JS

How to make a smoke column in three.js

In three.js, you can play a smoke column that climbs and thins for 5 seconds after a blast. A snippet loads the packed RGBA sprite sheet on a THREE.Sprite, sets the texture repeat to one eighth, and removes it after the last frame. 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_COLUMNFINAL
First frame of the smoke_column bake
Smoke column, 8.2 x 9.9 m, compiled with Spatial Compiler. Spec →

01 // WHAT YOU GET

What you get for smoke column in three.js

The smoke column is the smoke left after a burst. It climbs, spreads and thins out over 5 seconds, about 8.2 m wide and 9.9 m tall, and ends once it has faded. Play it right after an explosion so the scene does not snap back to clear air.

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 column in three.js

  1. Ask your agent for the effect (for example "the smoke that hangs after an explosion, played once") 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. The smoke column's frames crowd its fast start, so pick i from the clock: i = layout.frame_times_s.findIndex((t) => t >= elapsed). When that returns -1, after 6 s, call sprite.removeFromParent() and material.dispose().
  5. Set sprite.scale.set(s, s, 1) with s the meters per tile from layout.json, a little over 9.9 m for the smoke column, so it shows at its real size.

03 // ADJUST IT

Adjust the smoke column for your scene

Pair it with the fireball or the impact. Ask your agent for a longer hang time, a darker column for burning fuel or a lower, wider cloud for a ground blast.

04 // SETTINGS

Settings in the smoke column spec

A burst of warm smoke is pushed upward for 0.8 s, then swirl, turbulence and fade shape the climb. Front pacing gives the fast early rise more frames.

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

06 // FAQ

Questions about smoke column in three.js

All questions →

README.THREEJS_SMOKE_COLUMN
Is there a smoke column effect for three.js?

Yes. Ask your agent for smoke that rises after an explosion and plays once, starting from the smoke_column example.

How do I play a smoke column once and remove it in three.js?

Pick each frame from layout.frame_times_s, stop after frame 63 at 5 seconds, then call sprite.removeFromParent() and material.dispose().

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

Start from a simulated column instead of manual particles. Warm smoke rises, swirls and fades over 5 seconds.

How do I keep a smoke column 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 column effect use?

The smoke column compile uses 64 frames over a 5 second clip 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 →