VFX BOMB
STEM DEMO

Last updated

Explosive real-time VFX bomb effect with dynamic particles, fire, smoke, and shockwaves. Built with Three.js.

Hooded archer beside a lit cartoon bomb in a castle courtyard, from the VFX Bomb STEM demo built with Three.js

High-Quality Explosion VFX

This demo showcases a powerful bomb explosion effect with multiple particle layers, fire, smoke, and dynamic lighting — perfect for action, adventure, or battle games.

How a Layered Explosion Works

A convincing explosion in a 3D game is never one effect. It's several short-lived layers that start together but move, fade and cool at different speeds. When you watch a good game explosion frame by frame, you can usually pick out the same five pieces.

1. The flash

For the first few frames, a bright, almost white burst fills the center of the blast. In Three.js this is often a camera-facing sprite or a small group of large particles with additive blending, scaled up quickly and faded out in a fraction of a second. A point light with a high intensity, dropped to zero over the same time, makes nearby walls and the ground light up with it.

2. The fireball

Next comes the fire: dozens of particles that spawn at the center, fly outward and slow down. Each one changes color over its life, from yellow to orange to deep red, and grows a little before it fades. Additive blending makes overlapping particles brighter, which gives the core its glow.

3. Sparks and debris

Small, fast particles thrown out in random directions give the blast energy and size. Adding gravity so they arc back down makes them feel physical. Because they're tiny, you can use a lot of them without much cost.

4. The shockwave

A flat ring that expands along the ground and fades out sells the force of the blast. In Three.js this can be a ring or plane mesh with a transparent texture whose scale grows and opacity drops each frame.

5. Smoke

Smoke is the slowest layer. Dark, soft particles rise and spread long after the fire is gone, using normal blending instead of additive so they darken the scene rather than brighten it. The contrast between the fast fire and the slow smoke is a big part of what makes the effect read as an explosion.

Keeping it fast in the browser

The main cost of an effect like this is draw calls and overdraw, not the math. Drawing each layer as a single THREE.Points object or an instanced mesh keeps draw calls low, and reusing particles from a pool instead of creating new objects for every blast avoids garbage-collection stutters. Large transparent particles that cover the whole screen are the most expensive part, so keeping the flash and smoke sizes sensible helps on phones.

If you want to build one yourself, the 3D blast effect particle system tutorial walks through a Three.js explosion with code, and the fire fountain tutorial covers color-over-life fire particles in detail.

Frequently Asked Questions

How do you make a bomb explosion effect in Three.js?

Layer several particle systems: a quick bright flash, a burst of fire particles that grow and fade, darker smoke that rises more slowly, and an expanding shockwave ring. Additive blending makes the fire glow, and a short-lived point light lights up the scene around the blast.

What makes an explosion look good in a 3D browser game?

Timing and layers. A strong flash in the first few frames, fast-moving sparks, a fireball that cools from yellow to red, and smoke that lingers after the fire is gone. Mixing fast and slow layers is what sells the blast.

Will an explosion VFX like this run smoothly in a web browser?

Yes, if particle counts stay reasonable and each layer is drawn with as few draw calls as possible, such as one Points or instanced mesh per layer. Modern desktop and mobile browsers handle effects like this with WebGL in real time.

Where can I use a bomb VFX in my own games?

Anywhere something blows up: grenades, mines, rocket impacts, destructible crates or castle sieges. The same layered approach also works for smaller effects like sparks or magic hits by shrinking the size and particle count.