I'll create an immersive 3D tornado simulation with multiple tornado types you can switch between. Let me start by exploring the project structure.
I'll install Three.js and React Three Fiber for the 3D rendering.
Now let me create the tornado presets data and the GLSL shader library.
Now the vortex particle system with the condensation funnel shell and flying debris.
Now the environment: sky dome, mesocyclone cloud deck, scrolling ground, and rain.
Now the scene composition with camera rig, orbit controls, and the lightning simulation loop.
Now the HUD interface with the tornado selector and live telemetry.
Now the main App that ties the scene and HUD together.
The build succeeded. Let me refine a few shader details for better visuals and fix a potential degenerate smoothstep case.
Let me make the multi-vortex sub-vortices rotate coherently and more visibly.
Let me add subtle camera shake near the vortex for immersion, then rebuild.
Let me add an EF-scale indicator strip to the telemetry panel.
VORTEX — a real-time 3D tornado simulator is built and compiling cleanly.
The simulation (custom GLSL, Three.js + R3F)
- GPU vortex engine — up to ~88k particles driven entirely in a vertex shader. Each particle rides a helical path whose radius follows a per-preset funnel profile curve, with angular velocity derived from conservation of angular momentum (tighter radius = faster spin), plus turbulence, sinuous "rope" contortion, updraft lean, and a ground cascade that flares particles outward at the surface.
- Condensation shell — a fresnel rim-lit cylinder mesh deformed by the same math, giving the funnel solid volume.
- Sub-vortex lobes — coherent rotating suction spots for the multi-vortex EF5.
- Lofted debris — 340 CPU-animated instanced chunks tumbling in the circulation.
- Mesocyclone cloud decks — two procedural fBm-swirl planes that bulge downward into a wall cloud, with a clear slot where the funnel attaches.
- Environment — procedural farmland/water/scorched/desert ground that scrolls with storm motion and carves a damage scar behind the vortex, plus wind-sheared rain, a stochastic lightning system with flicker, and a gradient sky dome.
- Proximity buffeting — the camera shakes harder the closer you stand to the core.
Tornado selection (9 types)
Dust Devil · Landspout · Waterspout · Rope (EF1) · Cone (EF2) · Stovepipe (EF3) · Wedge (EF4) · Multi-Vortex (EF5) · Fire Whirl — each with its own geometry, spin, palette, sky, surface, rain, lightning and debris load.
HUD
Catalogue picker on the left; live telemetry on the right (animated gust gauge, EF-scale strip, pressure deficit, core rpm, path width, damage indicator, FPS); bottom console with play/pause, intensity, time scale, forward motion, particle density, 5 camera presets, three lighting moods, and layer toggles. Keyboard: 1–9 switch tornado, Space pause, R reset camera, drag to orbit.
Files built: src/tornado/presets.ts, src/tornado/shaders.ts, src/tornado/sim.ts, src/tornado/Vortex.tsx, src/tornado/Environment.tsx, src/tornado/Scene.tsx, src/components/Hud.tsx, src/index.css, index.html, src/App.tsx