Home » Posts tagged "OpenGL"

Lesson 16: Waving flag with OpenGL and GLSL

Waving Flag OpenGL
With the newer versions of OpenGL we are able to manipulate the OpenGL Rendering Pipeline. This gives a lot of power to the developers to do graphical manipulations and visual effects.  So far we have used the classical method to display 3D graphics.This (simplified) OpenGL pipeline is: Essentially...
Continue reading »

Lesson 13: Face generation

OpenGL 3D Generated Face
We can generate 3D faces from 2D flat images. Using OpenGL this can be challenging, after all it is not a lot more than a primitive triangle rendering API. The technique we will use in this tutorial is very similar, if not nearly identical, to terrain generation in our previous tutorial....
Continue reading »

Lesson 12: Terrain Rendering with OpenGL

OpenGL Terrain
In this tutorial we will render terrains. Essentially a terrain is a complex 3d model.  It conists of vertexes, faces, texture coordinates, normal vectors etc.  Al though it is possible to load complete models such as Wavefront OBJ models, it is generally better to dynamically generate them.  First, we...
Continue reading »

Lesson 2: Maze

maze
We have extended the previous tutorial to draw a nice looking maze. We have defined a matrix A of NxM with the elements {0,1}. If an element is {1} a cube will be placed, if an element is {0} nothing will happen.  Thus, we define the matrix as:...
Continue reading »

Lesson 1: Textured Cube

textured cube
In this tutorial we will explain to you how to make a textured cube using OpenGL and SDL. You will need to have the GNU C Compiler (short gcc) installed.  Furthermore you of course need OpenGL and SDL installed. If you are on Ubuntu Linux you can use...
Continue reading »