O'Reilly logo

OpenGL Insights by Christophe Riccio, Patrick Cozzi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

II
Rendering
Te chniques
We cant possibly imagine a book about OpenGL without rendering, and neither
could the authors of this book.
Ant´onio Ramires Fernandes and Bruno Oliveira provide a use case for the new
OpenGL 4 tessellation pipeline through terrain rendering in their chapter “GPU
Tessellation: We Still Have a LOD of Terrain to Cover, providing an entirely GPU-
based method for continuous level of detail maintaining a high level of fidelity to the
original mesh.
ebastien Hillaire brings us to a parallel universe where rendering is defined by
lines in his chapter Antialiased Volumetric Lines Using Shader-Based Extrusion.”
He comes back on the line primitives exposed by OpenGL and their issues before
bringing perspective to line rendering thanks to two approaches: one based on the
vertex shader stage and one based on the geometry shader stage for perspective correct
and antialiased lines.
Stefan Gustavson leads us close to new borders through his chapter “2D Shape
Rendering by Distance Fields,” a llowing perfectly antialiased contours. He is pushing
his concept to font rendering and distance field-based effects.
Benjamin Encz analyses WebGL font rendering in his chapter “Efficient Text
Rendering in WebGL by describing canvas- and bitmap-based methods. He con-
cludes his chapter with a performance analysis with both the frame rate and the
memory footprint in mind.
Dzmitry Malyshau discusses an approach inspired by Blender in his chapter “Lay-
ered Textures Rendering Pipeline.” He aims at providing more flexibility to the ren-
dering pipeline to handle complex object materials so that artists may express their
creativity during the producing while maintaining real-time performance.
143
144 II Rendering Techniques
Charles de Rousiers and Matt Pettineo present a method for “Depth of Field with
Bokeh Rendering.” Their method, developed around OpenGL 4 hardware atomic
counter, image load and store, and indirect draw, provides a level of performance for
real-time application.
Finally, Jochem van der Spek introduces a technique he calls “Shadow Proxies,”
which provides, for appropriate scenarios, real-time soft shadows with color bleeding.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required