OpenGL Tutorials

Okie dokie, I have made a fair few of these, so after all the work I have done, I better get to it. Each page has commenting and C++ code, if you scroll to the bottom, you can also download the seperate source code files which are available for C++ and Visual Basic. Also these were created in Visual C++ 6, so in other compilers you may need to manually link the OpenGL Lib files found in the needed files below, or if using DevC++ you will need to download compiler specific library files. Here are all the files needed to get started with OpenGL, I had one hell of a time finding them when I first started, so I thought I would be nice and put them all in one place for everyone :).

 

I have added a drivers page which holds all the library and include files needed to compile an OpenGL application, along with the OpenGL drivers for Windows. You can access the drivers page here.

Drivers and Include/Library files

*NEW* Terrain Tutorials *NEW*

I am still leaving the terrain tutorials on this page that I have previously built, but I have a new section with more in depth and more advanced terrain.

Window Create A Basic OpenGL Window In this opengl tutorial you will learn how to attach opengl to a window.
Window Reashaping OpenGL Window Reshaping This opengl tutorial teaches you to size the opengl window while keeping the proportions correct.
Keyboard Interaction OpenGL Keyboard Interaction A opengl tutorial on how to use GLUT to manage keyboard callbacks.
Drawing a Square OpenGL Drawing A Square An opengl tutorial on drawing a square in our opengl window.
Coloring the Square OpenGL Coloring The Square This tutorial is about adding one color to our opengl square.
Drawing a 3D Cube OpenGL Drawing A 3D Cube This opengl tutorial allows you to draw a cube with GLUT.
Rotation OpenGL Rotation An opengl tutorial on rotating an object or shape.
Smooth Rotation OpenGL Smooth Rotation An opengl tutorial using double buffers to draw a scene in time with the refresh rate of the monitor.
Blending OpenGL Blending This opengl tutorial teaches the assigning of alpha values for transparency.
Scaling OpenGL Scaling This opengl tutorial is about scaling objects, aka stretching.
Lighting OpenGL Lighting This opengl tutorial is about adding basic lighting.
Material Lighting OpenGL Material Lighting This opengl tutorial is about adding materials to objects which effect lighting.
Lighting Types OpenGL Different Lighting Types This tutorial is about the different types of lighting, ambient, diffuse, specular and emissive.
Fog OpenGL Fog This opengl tutorial is about adding basic fog.
Fog Types OpenGL Different Fog Types This opengl tutorial is about the different types of fog, linear, exp, exp2.
Texturing OpenGL Texturing using .RAW files under Windows This tutorial is about basic texturing on a Windows operating system.
Texture Coordinate Generation OpenGL Texture Coordinate Generation This opengl tutorial is about creating texture coordinates automatically.
Popping and Pushing Matrices OpenGL Popping And Pushing Matrices This opengl tutorial is about popping and pushing matrices which attaches certain translations and rotations to certain objects.
Full Screen Mode OpenGL Full Screen Mode This opengl tutorial is abbout using full screen mode in GLUT.
Mipmap Generation OpenGL Mipmap Generation This opengl tutorial is about using mipmaps for a better looking image.
Display List OpenGL Display list creation This opengl tutorial is about creating display lists.
Basic Camera Movement OpenGL Basic Camera Movement This opengl tutorial is about the basics of camera movement.
More Advanced Camera OpenGL More Advanced Camera This opengl tutorial is about making a more advanced camera with added features, eg: strafe.
More Advanced Camera OpenGL Third Person Camera *new* This opengl tutorial is all about creating a third person camera for use in your games. It is built on top of the previous tutorial, so all movement including strafe is kept intact.
Terrain Tutorial 3

OpenGL Terrain Multitexturing

(glMultiTexCoord2fARB extension) This opengl tutorial is about applying the multitexture extension to the heightmap for adding detail textures.

Vertex Colors OpenGL Vertex Colors This opengl tutorial is about colouring an object on a per vertex basis.
Vertex Alphas OpenGL Vertex Alphas This tutorial is about assigning alpha values to an object on a per vertex basis for different blending effects.
Basic Shadows OpenGL Basic Shadows This opengl tutorial is about using the stencil buffer for basic shadows.
Basic Reflections OpenGL Basic Reflections This opengl tutorial is about using the stencil buffer for basic reflections.
Bounding Sphere Collision OpenGL Bounding Sphere Collision This opengl tutorial is more of a math tutorial showing how to use sphere collision.
Creating Circles OpenGL Creating Circles This opengl tutorial will show you how to create circles.
Creating Textures Spheres Without GLUT OpenGL Creating Textured Spheres Without GLUT This opengl tutorial is about creating our own sphere with texture coordinates.
Particle Engine OpenGL Creating a simple Particle Engine This tutorial is about creating a simple particle engine.
Texture Animation OpenGL How to achieve Texture Animation This tutorial is on achieving simple texture animation using multiple textures.
Orthogonal Projections OpenGL Orthogonal Projections for 2D Images This opengl tutorial is about using orthogonal projections for things like a GUI or HUD.
Orthogonal Projections OpenGL Tiling Tutorial for creating 2D 'maps' This opengl tutorial has come from a request for a tiling example.

 

     

 

Copyright 2008, Donald Urquhart
Proudly supported by http://www.cdadc.com