The Cg Tutorial

Free Online Book: The Cg Tutorial

“The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics”, written by Randima Fernando, Mark J. Kilgard is available online for free from NVIDIA Developer Zone . This book teaches you how to use a programming language called Cg. It explains how to implement both basic and advanced techniques for today’s programmable GPU architectures.


The Cg language makes it possible for you to control the shape, appearance, and motion of objects drawn using programmable graphics hardware. It marries programmatic control of these attributes with the incredible speed and capabilities of today’s graphics processors. Never before have computer graphics practitioners, whether artists or programmers, had so much control over the real-time images they generate.

Major topics covered include: 3D transformations, Per-vertex and per-pixel lighting, Skinning and key-frame, interpolation, Environment mapping, Bump mapping, Fog, Performance optimization, Projective texturing, Cartoon shading, Compositing.

Table of Contents

  • Introduction
  • The Simplest Programs
  • Parameters, Textures, and Expressions
  • Transformations
  • Lighting
  • Animation
  • Environment Mapping Techniques
  • Bump Mapping
  • Profiles and Performance
  • Advanced Topics

Book Details

Author(s): Randima Fernando, Mark J. Kilgard
Format(s): HTML
Publisher: Addison-Wesley Professional
Link: Read online.

Leave a Reply