Inspiration

Every summer, nutrients running off farmland feed harmful algal blooms in western Lake Erie, and the people deciding what to fix must choose between cleanup plans they cannot see. HydroSpectre, our K-DUB Hacks Track 1 project (UN SDG 6.3), made those plans visible on a server. PlumePilot puts the same model in your hands: the real solver, the real lake grid, live in a browser tab.

What it does

A scroll-driven 3D hero: the solver runs a live 72-hour simulation over a pinned 3D Lake Erie on the NASA Blue Marble basemap, and scrolling becomes the model clock, moving the plume, the camera and the counters together.

Mission Control: paint new pollution sources directly on the water, drag on the map to set the wind, or move any slider (wind, current, three river loads, diffusivity, decay). Every change re-runs the full 72-hour model in about 40 ms.

3D plume with hand control: the same frames extruded in WebGL, height is concentration. Drag to orbit, click a station beacon to fly to it, or turn on the webcam and steer with your hands: open palm steers, two fists zoom, a swipe scrubs time, thumbs-up plays the film. Hand tracking runs fully on-device (MediaPipe bundled locally, telemetry disabled, no video ever leaves the tab).

AI Commander: press Cmd+K and type plain English. A deterministic local parser turns it into an animated plan (parse, validate, parameters, ready), every value checked against the real controls. Nothing runs until you press Execute, and unsupported questions are refused honestly.

Intervention Studio: freeze a baseline, apply treatments (agricultural runoff reduction, wastewater upgrade, wetland buffer), and watch the animated difference overlay paint blue where the water gets cleaner. A 30 percent source cut lowers total mass by exactly 30 percent, shown, not dressed up.

Field Ops: the 8 NOAA GLERL sampling stations plus buoy 45005 at real coordinates, with photos, measured observations and the simulated value at each station beside the measured one.

Physics tests and decision brief: the original solver tests (mass conservation, symmetry, bit-identical reproducibility, linearity) run live in the page, and one click builds a printable decision brief from your two runs.

How we built it

The solver (assets/solver.js) is a line-for-line port of HydroSpectre's hs-adr-1.2.0 Python model: upwind advection, flux-form diffusion, exact decay, on the real 192 by 88 Natural Earth grid with 6,279 water cells. It is verified against reference runs from the original Python solver: baseline peak affected area 1,207.657 square kilometres (shown as 1,208, matching the deployed original), and the float32 frames are bit-identical to Python on all four reference scenarios. Motion runs on GSAP (ticker, ScrollTrigger, SplitText, all vendored locally). Three.js is bundled locally; there are no CDN dependencies and the page works offline.

Challenges we ran into

Porting NumPy arithmetic to JavaScript bit-for-bit, including pairwise summation, so reproducibility is a hash, not a hope. Keeping 60 fps while one clock drives the solver, two WebGL scenes, the 2D maps and the counters. And making webcam hand control honest: fully local, opt-in, with a mouse fallback for everything.

Accomplishments that we're proud of

A deployed research-grade water-pollution simulator reborn as a zero-install interactive experience that reproduces the original server's numbers exactly, and that you can steer with your bare hands.

What we learned

Visualization is not decoration when the visualization is the computation: people trust a plume they can steer themselves.

What's next for PlumePilot

Point it at the deployed FastAPI backend so runs and briefs are the production ones; add the MODIS historical-bloom timeline as a playable layer.

Disclosure of pre-existing work

HydroSpectre itself (built at K-DUB Hacks, Nov 27 to 29 2026; deployed at https://csclub.uwaterloo.ca/~j49ni/hydrospectre/), its solver, data pipeline and full-stack app, pre-dates this challenge and is the foundation. New for this challenge: the entire PlumePilot browser experience in this repository, including the bit-exact solver port, scroll-driven hero, hand control, Intervention Studio and brief generator.

Built With

  • api?natural
  • blue
  • canvas?svg?python?numpy?fastapi?open-meteo
  • earth?nasa
  • javascript?three.js?gsap?mediapipe?html5
Share this project:

Updates

Submission history