Help end child hunger

The source code for the GLUT Tutorial has moved to GitHub.

Patrick Cozzy, one of the editors from OpenGL Insights, is searching for authors and proposals for a new book on WebGL. Based on the same spirit as OpenGL Insights, it is certainly a book that will be very useful.


An impressive 3D work inspired on a painting by Gyula Benczúr (1844–1920), an Hungarian painter. The painting, entitled Budavar visszavetele, portrays the recapture of the Buda Castle in 1686 (see here for more info)

The 3D modelling and texturing is by Zsolt Ekho Farkas, an Hungarian digital artist. A short “making of” is provided by the artist himself in Buda repossession on Behance.

This is just one of the many videos available at the ACM Siggraph YouTube Channel. Definitely worth a visit.

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 »

The JSON format is an easy and simple way to get 3D models uploaded into a WebGL application. Lighthouse3D provides a tool (source code and visual studio project available) that uses Assim to read standard 3D model files (OBJ, Collada, 3ds, among many others) and produces a JSON formatted file containing the vertex information (positions, normals and tex coords) as well as material description.

An example of a WebGL page where such content is used is available in here.

The Demo

This demo uses multiple shaders, loaded models in JSON format and creates its own models (the grid and axis).
Continue reading »

vslSampleThe Very Simple * Libs pages have been updated, merging the information into less pages and adding a few relevant updates. The lib is now compatible with Assimp 3.0, and a bug which appeared with recent nvidia drivers when using multiple shaders with uniform blocks has been fixed.

The sample code has been updated to reflect these changes and a Visual Studio 2012 project is included.

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.

A code sample has been uploaded with a Visual Studio 2010 project, with source code and shaders, to illustrate the process of loading an image with the DevIL API and creating a texture in OpenGL.

© 2015 Suffusion theme by Sayontan Sinha