Chapter 3. Transformation and Viewing

Perhaps the most common problem encountered by programmers who are new to OpenGL is the blank screen; executing an OpenGL program produces an empty window rather than a rendered image. Although several application problems can cause this result, the most common cause is misconfiguring the OpenGL transformation pipeline. To avoid blank screens, you need to be adept at controlling the OpenGL transformation state.

OpenGL provides a powerful, flexible set of routines for controlling transformation and viewing. This programming interface isn’t always straightforward, however, especially if it’s been a few years since you opened a linear-algebra textbook. OpenGL doesn’t provide a “place the camera here” command, ...

Get OpenGL® Distilled 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.