Force Field VFX
A jet of fire breaks on a glowing shield and turns to smoke
By lejrimostfa. Open source under the MIT licence; hosted here with its licence, unmodified apart from a small script that lets ThreeJS.net embed it. The prompt below is our description of the work, not the author's.
About this scene
A fire jet hits a spherical force field: the flames wrap around the shield and, as they slow down and cool, turn into thick smoke. It is a real-time 3D gas simulation in compute shaders, lit by the fire itself, with no textures, footage or baked simulation. Drag to orbit the camera.
How it is built
- 01
A gas, not sprites
The fire is a simulated 3D gas on a grid, advected and solved for pressure every frame in compute shaders.
- 02
Fire becomes smoke
Gas that slows down loses heat faster, and the heat it loses becomes soot, so the fast jet stays clean while the wake turns to smoke.
- 03
Light from the flames
There are no three.js lights: the fire spreads its light through low-resolution volumes that the smoke and the ground read.
Questions
- Who made this?
- lejrimostfa on GitHub, released under the MIT licence; the look is inspired by a Niagara force-field effect by RedefineFX and recreated in code. ThreeJS.net hosts a build with the licence, unmodified apart from a small embed script. It runs best with WebGPU in desktop Chrome or Edge.
ThreeJS.net

