Help end child hunger

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

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.

multisampleThe code sample for importing and displaying 3D models with Assimp, using modern OpenGL, has been updated to cover Assimp 3.0.

A Visual Studio 2010 project has also been added to help readers to get started.

A Computer Grahpics courseedxcourse is available at EdX, by Ravi Ramamoorthi, a Professor at UC Berkeley. By the end of the course students should understand the concepts of 3D graphics, and develop programs that create images of a 3D scene with lighting, using both real-time OpenGL and GLSL programming, as well as offline raytracing.

Syllabus:

  1. Overview and Basic Math
  2. Transformations
  3. OpenGL and Lighting
  4. Raytracing

 

texturedThe GLSL Core Tutorial has a new section for image texturing. Images are commonly used as wallpaper applied to 3D shapes to create a variety of effects. In this section we focus on the OpenGL and GLSL typical scenario of texture usage, and explore a few new GLSL functions, such as textureSizetextureQueryLod, and textureQueryLevels.

OpenGL, unlike Direct3D, is operating system independent. 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.

There are many libraries to load images, DevIL being one of them. It loads a large number of image formats and it is cross platform.

A short tutorial for loading an image, getting its data and attributes, and finally creating an OpenGL texture is available in here.

spotlightA new example has been added to the GLSL Core Tutorial showing the theory and implementation of directional lights, using both Gouraud and Phong shading models. Soon more light types, point and spotlights, will follow.

Both FreeGLUT and GLUT allow us to define an OpenGL context with multisampling. However the number of samples is fixed (4) and I’ve not found a way to change it using the API.

In here we’re going to see how to hack FreeGLUT so that we can change the default number of samples. This can be achieved either by changing the default value, or by adding a new function to set this value.

Note: This hack should be used only for testing purposes, not for redistribution, as FreeGLUT has a large base of users which already have the official version installed.

Continue reading »

© 2014 Lighthouse3d.com Suffusion theme by Sayontan Sinha