Home » Archive by category "Easy"

Lesson 14: Reflection (Easy cool effect)

OpenGL Reflection
The reflection effect is very easy to create in OpenGL, but at the same time it is a very cool effect. Creating reflection in OpenGL can be done simply by drawing the exact same scene twice, once in the positive and once in the negative direction. We can...
Continue reading »

Lesson 3: Cube Font

letters
Using the code given in the last tutorial, it is easy to create a cube font. We have altered the code to display letters, but used the same principle. Again, we have defined a matrix A of MxN but this time we have increased its with to fit...
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 »