Simulations
Fire Forgereal-time fire and smoke simulation in three.js
Real-time fire and smoke you can play with: a 3D gas solver in WebGL2 burning in a foundry yard at night
- Source download89 KB
- AssetsGenerated in code
9 files · commercial license · lifetime updates for this effect
What it is
A foundry yard at night with a fire that is actually simulated. Fuel, heat, soot and velocity live on 3D GPU grids and are solved every frame in plain WebGL2, so it runs in any modern browser without WebGPU. The flames are ray-marched against the scene's depth, so the logs and the bell hide the fire behind them.
You can play with it. Drag through the flames to fan them, click to throw fuel on for a flare-up, light the bellows and aim a jet of fire with the mouse, or drag the bronze bell next to the hearth and watch the flames wrap around it. The fire lights the yard through its own light field, wet flagstones reflect it, about a thousand GPU sparks ride the gas and skip on the stones, and the crackle and roar are synthesised live. Sliders control fuel, wind, swirl and smoke.
It suits a VFX portfolio, a product or brand page that needs real fire, or anyone who wants a readable, working 3D gas solver to learn from or extend.
FAQ
Can I use it in my own and client projects?
Yes. You get the full source and a commercial licence: use it for yourself or for clients and sell what you build. You just cannot resell or publish the source itself.
Can I make it look like my brand?
Yes. You get the full source, so colours, copy and every setting can be changed.
What is included and how do I run it?
The full source (9 files, about 89 KB); the licence terms are on our License page. Install with npm and run; a build script is included. It depends only on three.js, with no paid assets.