Skip to content

joates/webgl-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flat shaded:

Screenshot

Diffuse and Emissive textured:

Screenshot

This is a very minimal implementation of WebGL ported to run with node.js/npm modules. The code is only about 26k without the textures. It's completely inspired by the techniques demonstrated by Erik Möller's fantastic 2.5 hour video on YouTube WebGL 101, the vast majority of code is all Erik's i have just added a few node.js things to make it easier to deploy with the command npm install webgl-sandbox, ( i have included Erik's original license in the repo ), also follow the links to additional resources if you are interested in getting started using WebGL in the browser.

####Usage

$ git clone https://github.com/joates/webgl-sandbox.git
$ cd webgl-sandbox
$ npm install (_this will download the module dependencies_)
$ npm start

Once the server is started, the demo application is located on your local system at localhost:8000

####Importing models from Blender

There are 2 Blender model exporters included in public/scripts

to run them you need to to use 2 commands in the Blender Python Console:

  • exec(open('/path/to/script/export_webgl101.py').read())
  • exportWebGL101('ModelName', '/path/to/exported/model/files/modelname.json')

change the model name in the 2nd command to select a model from the Blender scene

####The WebGL 101 samples are available live at

####The two slides from the video are available at

####The WebGL Reference Card is available at

####The WebGL Specification is available at

####The Odin demo mentioned in the video is available at

####The Emberwind game mentioned in the video is available at

About

WebGL minimal implementation for node.js (from Erik Möller's WebGL 101 video)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published