XXHolic / webgl-wind

Wind power visualization with WebGL particles

Home Page:https://xxholic.github.io/webgl-wind/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://xxholic.github.io/webgl-wind/demo/

License:ISC License


Languages

Language:JavaScript 69.8%Language:GLSL 22.6%Language:Shell 7.6%