Skip to content

mwberry/webgl-wind

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Running the demo locally

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

Downloading weather data

  1. Install ecCodes (e.g. brew install eccodes).
  2. Edit constants in data/download.sh for desired date, time and resolution.
  3. Run ./data/download.sh demo/wind 20210627 00 to generate wind data files (png and json) for use with the library.
  4. Modify the windFiles, object in demo/index.js to reference the new dataset
    1. Object keys are offsets in hours from the first date/time
    2. The label for the GUI control is in the meta object
    3. The min, max, and interval for the GUI control are on the gui.add(meta, ...) line

About

Wind power visualization with WebGL particles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.7%
  • GLSL 22.7%
  • Shell 7.6%