Help end child hunger
Jan 032017
 

VSL has been updated to work with CMake. It works on Linux (tested on Ubuntu 16.04) and Windows (Windows 10 with VS 2015). The full project can be downloaded at GitHub.

The only requirement besides the stuff at Lighthouse’s github reps is DevIL when working in Linux, which must be installed separately.

Jan 242014
 

teapots The Red Book samples included a short demo on OpenGL materials. The demo is quite old but is still valuable when considering the Phong lighting equation. In the original C source file several materials are defined and the resulting app produces an image such as the icon of this post.

This post contains a WebGL demo where the different materials can be applied to a model.

Continue reading »

Jul 052013
 

fourpawnsSelecting, a particular item in a 3D scene may prove useful for some applications. The selection can be performed by clicking on an object, requiring a way to determine over which object was the mouse placed.

This short tutorial shows how to select objects with the mouse using color coding. Source code and a VS2010 project are provided.