OpenGL ES 2.0 First Light

After a lot of chopping of code, rewriting bits and pieces and generally trying to turn a hacked mess into something more structured I have this…

YouTube Preview Image

What you’re looking at is a pair of spinning spaceship things lit with a moving light. What you’re really looking at is a clever arrangement of triangles that get coloured in according to some slightly complex maths so that it looks like there’s a moving light. OpenGL ES 2.0 is funny like that, you get to write your own lighting algorithms (or find them on the Internet).

Now I have the basics of “construct a 3D model” “put it on the screen” and “light it so it looks 3D” working I can get on with making something that isn’t a tech demo.

About James

If this were the 80s I'd be sat in front of a C64 or Speccy, or taking VCRs apart.