Archive for the ‘Meta’ Category

Retrospective changes to the lessons: 1TBS

Once again, I’ve been through the previous posts and made a number of changes. Most of them are cosmetic in nature, but one looks cosmetic but isn’t.
A good way to start a violent argument between developers is to start talking about indentation styles. When you have an “if” statement or a [...]

A happy Thanksgiving to all

I’m based in the UK, but I’ve noticed that many readers of this blog are from the US. Some of my happiest visits to that country have been over Thanksgiving, including one particularly nice one when a Californian colleague invited all of us orphaned visiting Brits to her family dinner. I hadn’t previously [...]

New blog theme

Well, I asked for it… Quite a few people left comments giving their thoughts on the blog theme I was using for Learning WebGL, both positive and negative, with lots of advice. Naturally, everyone had entirely different views on what it should look like :-)
I’ve decided to try something different for a while; [...]

Two big retrospective changes to the lessons

I’ve just made two large sets of changes to the lessons. If you started looking at the lessons after the date of this post, you’ve already seen the new and improved versions, so you can ignore the rest of this :-) Otherwise, read on…
The two changes are:

I’ve changed all references to CanvasXXXArray to [...]

Blog design

At least one reader has grumbled in the comments about my white-on-black-ish colour scheme (though no-ones grumbled yet about my consistent UK spelling of colour ;-). I’m wondering whether I should try another theme; what do you think?
(I’ll interpret zero comments as meaning “stick with what you have” — otherwise I’ll let comments guide [...]

Another retrospective change…

Yesterday evening (3 November 2009) I made some small retrospective changes to lessons 3, 4 and 5. If you first read those lessons before then, you may find the rest of this post useful, because the next lesson will build on the changed code. If you first read the lessons after 2 November [...]

Restrospectively changing my retrospective changes…

Last week I decided that it was silly to keep using vertexAttribPointer for both the vertex positions and their colours for the squares in my second and third lessons, and for the faces of the cube in the fourth. After all, each of the squares is all one colour, so it would make more [...]

Retrospective changes to the lessons

I realised today that the code for lesson 2 could be seriously improved. Instead of using a loop to create an array of colours for the square, one for each vertex, we could just set one single attribute using code like this:

gl.disableVertexAttribArray(vertexColorAttribute);
gl.vertexAttrib4f(vertexColorAttribute, 0.5, 0.5, 1.0, 1.0);

This is [...]

Hello, world!

I always find the best way for me to learn something new is to try to explain it as I go along.  So while I teach myself WebGL from the (very limited) amount of information on the Web right now, using my (even more limited) knowledge of OpenGL to help me along, I’ll try to [...]

Subscribe to RSS Feed Follow me on Twitter!