This is the accompanying repository for a beginner oriented workshop on using WebGL for scientific data visualization. The end result will be an interactive rendering of 1.5 datapoints on a 2D plain.
The target audience is for engineers, developers and scientists with at least some familiarity with browser technology, specifically HTML and Javascript. Otherwise, no experience in WebGL is expected.
This repository houses demo projects inside the /demos
directory, each is self contained and can be hosted with a simple http server.
Follow any of the choices below to host the directory with a simple http file server. Then view the pages at http://localhost:5500
vscode
- Open VsCode
- Open marketplace
-
Open directory in live server
via the UX
1. open command palette `Cmd+P` 2. type "open live server" to start 3. repeat with "close live server" to close
via the terminal
1. `Cmd+L,Cmd+O` to open 2. `Cmd+L,Cmd+C` to close
python
$ python -m SimpleHTTPServer 5500
nodejs
$ npm install http-server -g
$ http-server -p 5500
The purpose of these demos is to give a progressive and iterative walkthrough of simple programs building up to a more complex visualization. The learning objective is to focus on the primary graphics pipeline of (a) writing shader programs and (b) passing data to the shader programs during animation. Other parts of the necessary setup are abstracted into convenience packages provided by the authors of the WebGL:Programming Guide
book.