Thursday, December 10th, 2009
Holiday reading? WebGL Draft Available
<p>The first WebGL specification is here for your holiday leisure reading. The awesome Arun of Mozilla just posted this to the W3C device API group:Today, the WebGL WG at Khronos released a public draft of the WebGL specification, and we really welcome (and need) wide review. Along with Mozilla folks, the WebGL WG has representatives from Opera, Google, and Apple, and nightly builds of Firefox, Chromium, and Safari have support for the draft specification. You can read a bit more about it in a blog post I wrote here. Essentially, WebGL is an HTML Canvas context. So you'd invoke it for now using:
JAVASCRIPT:
// obtain canvas handle var canvas = document.getElementById("canvas"); gl = canvas.getContext("experimental-webgl"); // Now do cool stuffThe specification is still in draft status, so stuff will change, and your feedback is welcome :) We've already seen some compelling use of JavaScript libraries that straddle WebGL come out, such as X3DOM [4]. I expect to see more of that going forward, since WebGL is a pretty low level API that wraps OpenGL ES 2.0, with some concessions made for how JavaScript works (since OpenGL ES 2.0 is essentially a C API). The WebGL Wiki [5] has details on how you can test it in the browsers that support it.
I expect we'll want to have technical discussions about the Canvas API in general following this release, but for now this is an informative heads-up.
More info
- Review the WebGL draft specification
- Get involved! WebGL Homepage on Khronos
- Read articles and contribute on the WebGL Wiki
- A blog about learning WebGL
- Find 3D recipes in the learning WebGL Cookbook
What do you think of WebGL? This is a good time to get involved as the Kronos group isn't as open as some would like.
Related Content:











Thanks you for sharing this