If you already know how to use sockets, this demo will probably bore you. Source code is provided for those who are interested. This tutor also demonstrates how to generate vertex normals and texture coordinates for the terrain. I use vertex arrays to take care of the rendering, if you are interested in vertex arrays you may want to take a look at this demo. All in all everything is pretty simple, but you can get some decent looking stuff out of it.
Source code is provided as usual.
The code is based off of my billboarding document which is included in the tutorial. You can also get the document here . Lighting Demo A very simple demo which shows how to use textures with OpenGL lighting. A sample model is loaded from a file, a normal is calculated for each of its faces and then it is rendered. Be sure to check the console output when the program starts to see the various rendering options that are available.