Skip to content

ejmolinelli/sf-fwam-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGL workshop

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.

output image

Prerequisites

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.

Hosting the source code

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

  1. Open VsCode
  2. Open marketplace
  1. 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

Demos

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.

Demo 01 - Single point

Demo 02 - Customize size and color

Demo 03 - Drawing many elements

Demo 04 - Fancy Fragment Shader

Demo 05 - Adding interactivity

About

workshop introduction to WebGL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published