WebGL Wind — Demo
A WebGL-powered visualization of wind power. Capable of rendering up to 1 million wind particles at 60fps.
This project is heavily inspired by the work of:
- Cameron Beccario and his wonderful Earth project with its open-source version.
- Fernanda Viégas and Martin Wattenberg and their US Wind Map project.
- Chris Wellons and his WebGL tutorials, in particular A GPU Approach to Particle Physics.
- Greggman and his WebGL Fundamentals guide.
npm install
npm run build
npm start
# open http://127.0.0.1:1337/demo/
- Install ecCodes (e.g.
brew install eccodes
). - Edit constants in
data/download.sh
for desired date, time and resolution. - Run
./data/download.sh demo/wind 20210627 00
to generate wind data files (png
andjson
) for use with the library. - Modify the
windFiles
, object in demo/index.js to reference the new dataset- Object keys are offsets in hours from the first date/time
- The label for the GUI control is in the
meta
object - The min, max, and interval for the GUI control are on the
gui.add(meta, ...)
line