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.
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.
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 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.
Selecting, 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.