webgl-sandbox

0.0.2 • Public • Published

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.

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

Readme

Keywords

none

Package Sidebar

Install

npm i webgl-sandbox

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • joates