These pages are mostly for small tutorials, code samples, or lists of pointers to resources and other tutorials on a particular subject.
Lighthouse3D code samples are provided for learning purposes only. Some code could be severely optimised, but I tried to keep it as simple and clear as possible.
The code comes with no warranties, use it at your own risk. You may use it, or parts of it, wherever you want.
If you do use it I would love to hear about it. Just post a comment in the respective sample.
This is a simple, yet complete, code sample to draw two triangles using OpenGL 3.3 and GLSL 1.5. As far as I know the sample does not use any deprecated functions.
The sample covers Vertex Objects, Vertex Array Objects, Uniform and Attribute variables, shader setting, and definition of the camera and perspective matrices.
This is a OpenGL 3.3 + GLSL 3.3 sample that loads and displays a 3D model with Assimp 3.0. It also uses DevIL in case the model has textures. It was based on Assimps OpenGL demo and it extends it to support OpenGL 3.3
The sample uses Texturing, Vertex Array Objects, and Uniform Blocks. Camera can move around the object using the mouse, and the mousewheel can be used to zoom on the model, courtesy of freeglut.
OpenGL, unlike Direct3D, is independent of the operating system. While this eases the portability among different OS, it implies that we have to resort to external libraries for a number of tasks, loading images being one of the most used.
In this short tutorial we will use DevIL, an external image loader, to load an image from a file, and use this data to create an OpenGL texture.
I’ve been working for some time with wxWidgets (ver 2.9.0). The only thing I’ve missed, regarding OpenGL, is the ability to define my own OpenGL context, in particular Core profile and Debug contexts. This short tutorial covers the required steps to enable context setting in wxWidgets.
A small list of libraries that may be useful when building an OpenGL application. All libs are cross-platform, and some are even open source.
GLUT vs. FreeGlut, a short guide to their main differences.
An old school tutorial regarding OpenGL error detection. I know, i must update this to use the more recent opengl functionalities such as debug_output. Meanwhile, have a peek at chapter 33 from OpenGL Insights (its available for free :-).