Chapter 9. Advanced Topics

This chapter covers advanced Cg usage and has the following five sections:

  • Fog describes how to simulate a common atmospheric effect that looks like fog.

  • Nonphotorealistic Rendering describes a field of rendering that focuses on stylized images, and it gives an example in the form of cartoon shading.

  • Projective Texturing explains the theory and practice of projecting textures onto geometry.

  • Shadow Mapping shows a common way to add shadows to your scenes, based on projective texturing.

  • Compositing describes how to leverage the GPU’s powerful texture mapping capabilities to combine images.

Fog

Fog, an atmospheric effect created by condensed water vapor, obscures visibility. Haze, mist, and smoke are similar phenomena ...

Get The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.