Skip to content

mapbox/webgl-wind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a54436f · Nov 21, 2016

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGL Wind

A WebGL-powered visualization of wind power. Capable of rendering up to 1 million wind-led particles at 60fps.

This project is heavily inspired by the work of:

Running the demo locally

npm install
npm run build
npm start
# open http://127.0.0.1:1337

Downloading weather data

  1. Install GRIB-API.
  2. Edit constants in data/download.sh for desired date and resolution.
  3. Run ./data/download.sh <path> to generate wind data (<path>.png and <path>.json) for use with the library.
  4. Optionally run optipng -o7 <path>.png to reduce the wind texture file size.