About ThunderLab
Thunder & lightning real-time simulator
Draw lightning and generate realistic thunder in a simulated visual atmosphere.
Ever wanted to make lightning?
Draw a lightning bolt across the sky, unleash an enormous thunderclap over a city, or send the sound of a distant storm rolling through a mountain valley.
ThunderLab puts the power of a thunderstorm in your hands. Part interactive science experiment, part physics simulator, and part digital toy, it's a place to experiment with one of nature's most spectacular phenomena.
What is ThunderLab?
ThunderLab is a thunder and lightning real-time simulator: an interactive lightning and acoustic simulation that lets you create your own lightning strikes and experience the thunder they produce.
Draw lightning across the sky, construct landscapes, position yourself as a listener and explore how sound travels through your surroundings.
Every lightning bolt is different. Its shape, length, orientation, distance and surrounding landscape all influence the sound you hear.
Frequently asked questions
How is the lightning created?
Real lightning follows an incredibly chaotic path through the atmosphere, forming intricate branches as it searches for an electrically favourable route.
ThunderLab recreates this appearance using procedural generation. When you draw a lightning bolt, a series of mathematical algorithms transform your drawing into a more natural-looking electrical discharge, introducing variations at multiple scales, irregularities, forks and smaller branches.
No two lightning bolts are quite the same.
How is the sound visualised?
Sound is essentially a travelling disturbance in air pressure. Although we can't normally see these disturbances, we can simulate them mathematically.
ThunderLab uses a numerical acoustic simulation to model the behaviour of sound waves as they travel through the atmosphere. These waves can interact with their surroundings, reflect off surfaces, spread around obstacles and interfere with one another.
The visualisation makes this normally invisible phenomenon visible, allowing you to watch the physics unfold in real time.
How is the thunder generated?
A lightning bolt can heat the surrounding air to approximately 30,000°C, several times hotter than the surface of the Sun. This extreme and almost instantaneous heating causes the air to expand violently, generating a shock wave.
ThunderLab models a lightning bolt as a collection of many small acoustic sources distributed along its length.
The audio synthesis engine accounts for a number of physical phenomena, including:
- The initial shock wave and characteristic thundercrack.
- The distance and orientation of individual lightning segments.
- The finite speed of sound.
- Geometric spreading and atmospheric absorption.
- The loss of higher frequencies over distance.
- Acoustic reflections and reverberation.
These contributions are combined to create a soundscape influenced by the geometry of your lightning bolt and the environment around it.
Why does thunder rumble?
A lightning bolt can be several kilometres long. Although the electrical discharge happens extremely quickly, sound travels through the atmosphere at only around 343 metres per second.
This means that the sound produced by different parts of the same lightning bolt reaches your ears at different times. Reflections from the surrounding landscape can further extend the sound.
What began as an almost instantaneous electrical event can therefore produce many seconds of rolling thunder.
You can experiment with this phenomenon yourself in ThunderLab. Try drawing a long horizontal lightning bolt, a short vertical strike, or an intricate bolt with many branches. Move the listener around and observe how the sound from different parts of the lightning arrives at different times.
You might be surprised by how dramatically the geometry influences what you hear.
Is ThunderLab scientifically accurate?
ThunderLab is grounded in real physical principles, but makes a number of mathematical and computational simplifications to allow the simulation to run interactively in a web browser.
It is intended as an educational and exploratory tool rather than a scientific-grade atmospheric or acoustic modelling platform.
Who made ThunderLab, and why?
I'm Barrington Russell, a digital product designer, developer, astronomer and lifelong enthusiast of science, physics and simulation.
Much of my independent work revolves around making complex physical phenomena accessible through interactive digital experiences. I'm the creator of DarkSkySites, an astronomical platform involving atmospheric modelling and light pollution, and Alluvian, an experimental platform exploring fluid dynamics, hydrology, erosion and sediment transport.
Those projects are all rather serious, scientifically orientated endeavours, so I thought it might be nice to make something purely for the fun of it.
I was also terrified of thunder and lightning as a child. There is something rather satisfying about being able to control the very thing that once frightened you.
ThunderLab is a little celebration of scientific curiosity. It's a visualisation, a teaching aid, a physics experiment and, perhaps most importantly, a toy.
Science doesn't always have to be serious.
Get in touch
Have some feedback, an idea, a scientific observation or simply an interesting experiment you'd like to share? I'd love to hear from you.
LinkedIn: https://www.linkedin.com/in/barrington-russell-b412a69b

