Main Page

From The WebGL Cookbook

This website contains useful recipes for writing WebGL code. WebGL is a new technology that lets you code hardware-accelerated graphics into web pages, using JavaScript and a simple graphics API called OpenGL ES.

It does not contain a tutorial on WebGL: for that, you can check out the Learning WebGL lessons.

Each recipe on this site should be a small(ish) bit of code showing how to do one thing only. It's not a site for frameworks or APIs, just snippets of code (though if you have a framework you'd like people to know about, feel free to add a link to the Frameworks and libraries section of this main page).

If you have a recipe that you want to add, just register (links at the top right) and add a link to a new page to the appropriate category in the list below. If there's no appropriate category, feel free to add one or use "Misc".

Right, enough explanation - on to the recipes!

Contents

[edit] Recipes

[edit] Initialising

[edit] Geometry

[edit] Shaders

[edit] Misc

  • Nothing here yet!

[edit] Useful Links

[edit] Frameworks and libraries

[edit] Useful utilities

  • Sylvester, a JavaScript library for matrix multiplication

[edit] WebGL frameworks

  • C3DL, a JavaScript library that will make it easier to write 3D applications using Canvas 3D (now WebGL)
  • GLGE, "WebGL for the lazy"
  • SceneJS, a JavaScript library for building scene graphs on WebGL
  • SpiderGL, providing typical structures and algorithms for realtime rendering to developers of 3D graphics web applications, without forcing them to comply with some specific paradigm.
  • WebGLU, a utility library for working with WebGL
  • X3DOM, is a framework for integrating and manipulating X3D scenes as HTML5 DOM elements, which are rendered via WebGL.
TOOLBOX
LANGUAGES