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.
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
- Ask your agent for the effect (for example "the smoke that hangs after an explosion, played once") with
export.packwriting the light from above into RGB and opacity into alpha, so one PNG holds gray shading you can tint. (main_pos.pngas it comes holds three light directions in RGB, not a color.) Load it withTextureLoaderand settexture.repeat.set(1 / 8, 1 / 8). - Put it on a
THREE.Spritewith aSpriteMaterial(transparent: true,depthWrite: false) so it always faces the camera. Normal blending suits smoke; tint it with the material color. - Each frame, pick the tile: column
i % 8and rowMath.floor(i / 8), then settexture.offset.set(col / 8, 1 - (row + 1) / 8). - The smoke column's frames crowd its fast start, so pick
ifrom the clock:i = layout.frame_times_s.findIndex((t) => t >= elapsed). When that returns -1, after 6 s, callsprite.removeFromParent()andmaterial.dispose(). - Set
sprite.scale.set(s, s, 1)withsthe meters per tile fromlayout.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.
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.