Wednesday, November 11, 2009

WebGL updates

I have several links to share.

Yohei Shimomae updated his Cube Defense game demo to work on Firefox. I think this is the first fully-playable WebGL game I've seen. This is pretty encouraging to see without any documentation and I hope to see many more of these. There are some confusing comments about the WebGL arrays on his blog, though. WebGL introduces types for handling native arrays from JavaScript. Vlad wrote up some info about the rationale for them and explains how they're used.

Cube Defense

A couple of libraries have appeared to simplify writing applications that use WebGL: C3DL and WebGLU. C3DL has been around for almost 2 years now and has recently been ported to WebGL. A demo of the port is here.

C3DL Orbiter

Since there isn't any real documentation on WebGL so far, getting even this far takes some digging and patience. Giles Thomas created a blog about WebGL with very detailed lessons based on the NeHe OpenGL lessons. Giles updates pretty regularly with new lessons (7 so far!) and demos. He also fairly impressively stays on top of other new demos and WebGL things so his blog is good to watch if you're interested in WebGL. The previous warning still applies: WebGL is still changing. Until the spec is finalized, lessons and demos are likely to break. Expect some updates on this in a few weeks.

While Giles does a pretty great job of collecting links, Chris Blizzard set up a planet site for WebGL which includes his and other blogs of people posting about WebGL. If you know of someone else or are someone with a blog about WebGL, let Chris know and get it added to the site.