The tutorial is starting to get into shape. A lot of material has been added, and the first, very basic example is now available. More to come soon
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.
OpenGL renders to framebuffers. By default OpenGL renders to screen, the default framebuffer that commonly contains a color and a depth buffer. This is great for many purposes where a pipeline consists of a single pass, a pass being a sequence of shaders. For instance a simple pass can have only a vertex and a fragment shader.
For more complex graphical effects or techniques, such as shadows or deferred rendering, multiple passes are often required, where the outputs of a pass are inputs of the following pass, for instance as textures. In this context, instead of rendering to screen, and then copying the result to a texture it would be much nicer to render to texture directly. The figure shows a two pass pipeline, where the first produces three textures that are used in the second pass to compose the final image. This is one of the advantages of framebuffer objects: we can render to multiple outputs in a single pass.
Besides, rendering to screen requires the outputs to be of a displayable format, which is not always the case in a multipass pipeline. Sometimes the textures produced by a pass need to have a floating point format which does not translate directly to colors, for instance the speed of a particle in meters per second.
In this short tutorial we will see how a framebuffer object can be created, and used with shaders. A demo is also provided with full source code, and a VS 2010 solution.
Flipcode has been down for about 7 years, but it is back since August This was one of the reference sites for people in CG in its glory days. Glad to see you back, and all the best for the site. I’ve added flipcode to the the permanent list of links on the right side of the site.
The Lighthouse3D GLSL Core Tutorial has been updated with a few sections, namely how to check the result of the compilation and linking operations, freeing up resources, and how do shaders communicate between themselves on modern OpenGL. The shader interfaces are presented and discussed, with examples and a comparison between the several mechanisms OpenGL provides.
A Lighthouse3D short tutorial on OpenGL atomic buffers is now available in here. The tutorial covers both the OpenGL and GLSL definition and usage. As the official documentation, and demos on the net are not abundant, it is difficult to be too assertive in some issues. Everything on the tutorial has been tested and it works perfectly with recent NVIDIA beta drivers. Unfortunately, a few things seem not to work with AMD catalyst 12.9 drivers. Anyway, check it out, and let me know if I missed something, or if you find any bugs.
Shaderific is a great iOS application for OpenGL ES shader learning. The app provides the source code for the vertex and fragment shaders for 18 built-in demo shaders, and it allows the creation of new ones. Many 3D objects (including the required teapot) are available, and material and lighting can also be set. There is a free version that lets us try it out, but the changes are not kept once the app is closed.
Glow and Bloom is the latest article on this great series that presents graphic effects with source code, theory, and a WebGL demo.
The series already has 8 articles starting with the basics of lighting and exploring several effects. Many more are to be released according to the index.
Self Shadow has published a collection of links for the 2012 Siggraph’s materials. This includes courses, BOFs, talks, posters, etc… Also available is a collection of links for Siggraph 2011.