Computer Graphics Programming in OpenGL with C++, Second Edition

  • 7h 10m
  • John Clevenger, V. Scott Gordon
  • Mercury Learning
  • 2021

This new edition provides step-by-step instruction on modern 3D graphics shader programming in OpenGL with C++, along with its theoretical foundations. It is appropriate both for computer science graphics courses, and for professionals interested in mastering 3D graphics skills. It has been designed in a 4-color, “teach-yourself” format with numerous examples that the reader can run just as presented. Every shader stage is explored, from the basics of modeling, textures, lighting, shadows, etc., through advanced techniques such as tessellation, normal mapping, noise maps, as well as new chapters on simulating water, stereoscopy, and ray tracing. Includes companion files with code, object models, figures, and more.

Features

  • Covers modern OpenGL 4.0+ shader programming in C++, with instructions for both PC/Windows and Macintosh
  • Adds new chapters on simulating water, stereoscopy, and ray tracing
  • Includes companion files with code, object models, figures, and more (also available for downloading with Amazon order number by writing to the publisher)
  • Illustrates every technique with running code examples. Everything needed to install the libraries, and complete source code for each example
  • Includes step-by-step instruction for using each GLSL programmable pipeline stage (vertex, tessellation, geometry, and fragment)
  • Explores practical examples for modeling, lighting, and shadows (including soft shadows), terrain, water, and 3D materials such as wood and marble
  • Explains how to optimize code for tools such as the Nvidia Nsight debugger

Brief Table of Contents

1: Getting Started. 2: The OpenGL Graphics Pipeline. 3: Mathematical Foundations. 4: Managing 3D Graphics Data. 5: Texture Mapping. 6: 3D Models. 7: Lighting. 8: Shadows. 9: Sky and Backgrounds. 10: Enhancing Surface Detail. 11: Parametric Surfaces. 12: Tessellation. 13: Geometry Shaders. 14: Other Techniques. 15: Simulating Water. 16: Ray Tracing. 17: Stereoscopy. Appendix A: Installation and Setup for Windows (PC). Appendix B: Installation and Setup for Macintosh. Appendix C: Using the Nsight Graphics Debugger. Index.

Companion Files

(also available for downloading with Amazon order number by writing to the publisher)

  • The source code for every program in the book, organized by chapter
  • The OBJ models used in the examples, and the various texture files
  • Cubemaps and skydomes for generating environments
  • Height maps and normal maps for achieving realistic detail
  • High resolution copies of all of the book's figures

In this Book

  • Getting Started
  • The OpenGL Graphics Pipeline
  • Mathematical Foundations
  • Managing 3D Graphics Data
  • Texture Mapping
  • 3D Models
  • Lighting
  • Shadows
  • Sky and Backgrounds
  • Enhancing Surface Detail
  • Parametric Surfaces
  • Tessellation
  • Geometry Shaders
  • Other Techniques
  • Simulating Water
  • Ray Tracing and Compute Shaders
  • Stereoscopy for 3D Glasses and VR Headsets
SHOW MORE
FREE ACCESS

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.6 of 16 users Rating 4.6 of 16 users (16)
Rating 4.3 of 627 users Rating 4.3 of 627 users (627)