OpenGL opens the door to the world of high-quality, high-performance 3D computer graphics. The preferred application programming interface for developing 3D applications, OpenGL is widely used in video game development, visualization and simulation, CAD, virtual reality, modeling, and computer-generated animation.
OpenGL® Distilled provides the fundamental information you need to start programming 3D graphics, from setting up an OpenGL development environment to creating realistic textures and shadows. Written in an engaging, easy-to-follow style, this book makes it easy to find the information you're looking for. You'll quickly learn the essential and most-often-used features of OpenGL 2.0, along with the best coding practices and troubleshooting tips.
A companion Web site includes complete source code examples, color versions of special effects described in the book, and additional resources.
"synopsis" may belong to another edition of this title.
Paul Martz is a senior software engineer at SimAuthor, Inc., where he develops flight-data visualization software. He previously worked in the Graphics Software Lab at Hewlett-Packard, and the Workstation Graphics Division at Evans & Sutherland. While at Hewlett-Packard he led the effort to create the OpenGL technical FAQ and remains active in OpenGL newsgroups. Paul helped evaluate revisions to the OpenGL specifications and is currently an individual contributor to the OpenGL Architecture Review Board.
"NVIDIA's core strategy is to deliver a breakthrough product every six months, doubling performance with each generation at a rate of essentially Moore's Law cubed." --Jen-Hsun Huang
"Children crawl before they walk, walk before they run--each generally a precondition for the other." --Lillian Breslow Rubin
Computer graphics technology, like all computer technology, advances at a staggering rate. In the late 1990s, the first hardware-accelerated 3D graphics cards for consumers signaled the dawn of a new age in 3D graphics software development. Already, these cards are gathering in landfills, superseded by more powerful and advanced hardware.
If you're new to OpenGL, you probably wish you could dive in and start writing advanced OpenGL applications. Although many advanced graphics programming books exist, most assume familiarity with OpenGL or some other 3D graphics Application Programmer Interface (API). Before you tackle more advanced programming tasks, you need a way to get up to speed on OpenGL quickly.
About the Book
OpenGL® Distilled is a concise book about the essential, commonly used features of modern OpenGL, the industry-standard cross-platform API for high-performance 3D computer graphics. By focusing on essential OpenGL features, eliminating discussion of algorithms, and pointing the reader to sources of additional information, OpenGL® Distilled provides useful information quickly and concisely.
OpenGL version 1.0 was introduced by SGI in 1992 and quickly dominated the 3D software development industry. It is available for several versions of Microsoft Windows, Linux, and Unix, and for Apple Mac OS. Graphics hardware manufacturers supporting OpenGL include 3Dlabs, ATI, Intel, Matrox, NVIDIA, and SGI.
The fact that OpenGL is an open standard is certainly one reason for its popularity. The OpenGL feature set is determined by the OpenGL Architecture Review Board (ARB), a governing body composed of representatives from several major hardware and software companies. This group meets regularly to discuss and approve additions and modifications to the OpenGL specification. The ARB's multivendor nature ensures that OpenGL runs equally well on a wide variety of graphics architectures.
This book documents OpenGL version 2.0, released in September 2004. Although OpenGL has evolved significantly since its initial release, each version has remained compatible with previous versions. The benefits of backward compatibility are obvious, and several companies have taken advantage of OpenGL's stability to amortize the expense of software development.
Over time, some older OpenGL features fell into disfavor as the ARB added new rendering methods and paradigms to the OpenGL standard. Still other features never quite caught on with the developer community for a variety of reasons, such as corner-case or platform-specific applicability, overlapping or limited functionality, or nearly universal inefficient implementation.
The addition of new functionality, while continuing to keep older (and increasingly obsolete) features for backward compatibility, has resulted in a bulky and more complex OpenGL specification. Consider:
Although such comprehensive documentation is indispensable for experienced programmers, the documentation's growth in size and complexity over the years has increased the learning curve for new OpenGL developers. Furthermore, finding advice on accepted modern usage is difficult for new OpenGL programmers due to the sheer magnitude of information or time wasted learning outdated methodologies and paradigms.
OpenGL® Distilled addresses these issues by presenting only the essential elements of modern OpenGL used in current 3D software development. To meet this goal, several features of OpenGL have been left out of this book. OpenGL Distilled presents the commonly used features and accepted practices in modern OpenGL programming. Features that have fallen into disfavor are omitted except where they help illustrate accepted practices or important concepts. Each chapter begins with a summary of what is and what is not covered.
To reduce the learning curve further, OpenGL® Distilled presents information in a direct, how-to style so that readers can find information quickly without wading through extraneous information. For this reason, there is little explanation or discussion of graphics algorithms. Shadow algorithms (discussed in Chapter 6) are the exception because of their almost-universal applicability and lack of direct OpenGL support. For other algorithms, OpenGL® Distilled assumes that the reader is familiar with computer graphics or is reading OpenGL® Distilled as part of a university-level computer graphics course.
This book presents the subset of OpenGL that most programmers can use to do the majority of their OpenGL programming. Because this material is a subset, the reader will likely desire access to more information. For this reason, OpenGL® Distilled serves as a gateway or road map to additional OpenGL and 3D graphics programming information. This book will frequently refer to the following resources:
OpenGL® Distilled is intended for C++ programmers who are new to OpenGL.This book assumes moderate familiarity with computer graphics. The reader should be familiar with graphics resources, texts, and algorithms. Graphics expertise is not required to make use of this book. The reader doesn't need to know how to code Bresenham's algorithm, for example, but should be familiar with the concept of scan conversion. Experience with another graphics API is helpful but isn't a prerequisite.
The reader should be familiar with the C++ programming language. The example source code on the book's Web site is in C++, and will build and run in Microsoft Windows, Apple Mac OS, and most flavors of Linux and Unix. Many of the code snippets in the book should be comprehensible to any programmer who is familiar with C and who has access to a C++ reference manual.
The reader should be familiar with vector and matrix mathematics as covered in a typical linear-algebra course. The reader should understand matrix concatenation and vector-matrix multiplication. Readers already familiar with transformation and coordinate systems from another 3D graphics API will find OpenGL® Distilled an easy read. For readers unfamiliar with this subject, many general 3D graphics texts cover the subject adequately, such as Chapter 5, "Geometrical Transformations," in Computer Graphics: Principles and Practice.The reader should, of course, be familiar with basic mathematics such as algebra, geometry, and trigonometry.
Format of the Book
OpenGL® Distilled consists of eight chapters followed by four appendices and an index.
Chapter 1, "An Introduction to OpenGL," presents OpenGL architecture and concepts in broad terms. It also introduces the GLUT and GLU support libraries, discusses setting up an OpenGL development environment, and presents a simple OpenGL example. This chapter concludes with an extensive history of the OpenGL API.
Chapter 2, "Drawing Primitives," covers how to use OpenGL to render geometric data. It describes the OpenGL drawing primitive types and how to render them by using the vertex array and buffer object features. This chapter also presents other drawing details, such as clearing the framebuffer, order dependence, and the depth test.
Chapter 3, "Transformation and Viewing," describes the OpenGL transformation pipeline. This chapter covers how to position and orient views, set perspective and orthographic projections, and control the Viewport. It also covers interactive view manipulation using the mouse.
Chapter 4, "Lighting," explains how to set lighting parameters, which control light position, direction, and color, as well as material reflectance.
Chapter 5, "Pixel Rectangles," introduces the OpenGL paradigm for drawing, reading, and copying blocks of pixel data.
Chapter 6, "Texture Mapping," tells you how to create texture objects and apply them to rendered geometry. Texture mapping is a powerful tool for increasing the realism of rendered images. This chapter describes techniques for improving specular highlights, environment mapping, and creating shadows.
Chapter 7, "Extensions and Versions," describes how to write version-safe, platform-independent code that uses implementation-specific graphics hardware functionality.
Chapter 8, "Platform-Specific Interfaces," describes OpenGL interfaces specific to Apple Mac OS, Linux, and Microsoft Windows. This chapter describes how to create and use multiple OpenGL rendering contexts and share objects between them.
Appendix A, "Other Features," briefly covers several OpenGL features outside the scope of this book, such as the OpenGL Shading Language, clip planes, fog, multisampling, and stencil.
Appendix B, "Best Practices," enumerates generally accepted good OpenGL programming practices that help ensure a robust and portable OpenGL application.
Appendix C, "Performance," describes how to take accurate timing measurements and how to identify and eliminate performance bottlenecks.
Appendix D, "Troubleshooting and Debugging," assists in resolving commonly encountered issues.
Each chapter opens with a quick summary of what the reader will learn, as well as topics that aren't covered. Each chapter concludes with pointers to further reading related to the chapter subject.
After reading OpenGL® Distilled, many readers will purchase OpenGL® Programming Guide. To ease the transition from one book to another, the same style conventions are used where possible.
This book uses the following style conventions:
Blocks of code are set aside from the text and use a monospace font.
This book presents OpenGL commands by using a command summary, which includes function prototypes, descriptions of the command parameters, and OpenGL version information. Here's the template for a command summary:
Function prototype for the command
A description of the command and its parameters.
-> OpenGL version: Versions of OpenGL that support the command
In the function prototype, braces indicate a set of options. As an example, consider the glLight*v() set of functions.
void glLightfdv( GLenum light, GLenum pname, const TYPE* param );
This prototype defines two functions: glLightfv() and glLightdv() . f and d identify the parameter data type--GLfloat or GLdouble, respectively. In the function prototype parameter list, replace TYPE with the actual data type.
The command summary can be used as a concise reference for the command. OpenGL® Reference Manual, however, typically contains a more exhaustive reference.
OpenGL® Distilled Web Site
The book's Web site, http://www.opengldistilled.com, provides access to all the code in the book. Click the Download link to get at the files. All code was built and tested on the following platforms: Microsoft Windows XP using Visual Studio version 6.0, .NET 2003, and the Cygwin development environment; Apple Mac OS X using Xcode version 2.0; and Red Hat Linux using the GNU compilers.
The sample code requires GLUT, the TIFF library, and GNU Make. The Web site provides links for downloading these libraries and utilities.
OpenGL® Distilled contains references to color plates. These color plates are available as a PDF file from the book's Web site and also from Addison-Wesley's Web site: http://www.awprofessional.com/title/0321336798.If errors are found in this book, corrections will be posted to the Web site.
"About this title" may belong to another edition of this title.
Book Description Prentice Hall. Book Condition: New. Brand New. Bookseller Inventory # 0321336798
Book Description Addison-Wesley Professional, 2006. Paperback. Book Condition: New. book. Bookseller Inventory # M0321336798
Book Description Addison Wesley, Boston, MA, 2006. Softcover. Book Condition: New. Still in Shrinkwrap Quantity Available: 1. ISBN: 0321336798. ISBN/EAN: 9780321336798. Pictures of this item not already displayed here available upon request. Inventory No: 1560774352. Bookseller Inventory # 1560774352
Book Description Addison-Wesley (Longman). Softcover. Book Condition: Neu. Gebraucht - Wie neu Unbenutzt. Schnelle Lieferung, Kartonverpackung. Abzugsfähige Rechnung. Bei Mehrfachbestellung werden die Versandkosten anteilig erstattet. - OpenGL opens the door to the world of high-quality, high-performance 3D computer graphics. The preferred application programming interface for developing 3D applications, OpenGL is widely used in video game development, visualization and simulation, CAD, virtual reality, modeling, and computer-generated animation. OpenGL(R) Distilled provides the fundamental information you need to start programming 3D graphics, from setting up an OpenGL development environment to creating realistic textures and shadows. Written in an engaging, easy-to-follow style, this book makes it easy to find the information you're looking for. You'll quickly learn the essential and most-often-used features of OpenGL 2.0, along with the best coding practices and troubleshooting tips. 266 pp. Englisch. Bookseller Inventory # INF1000007117
Book Description Addison-Wesley Professional, 2006. Paperback. Book Condition: New. Never used!. Bookseller Inventory # P110321336798
Book Description Addison-Wesley Professional, 2006. Paperback. Book Condition: New. 1. Bookseller Inventory # DADAX0321336798
Book Description Addison-Wesley Professional, 2006. Book Condition: New. Brand new! Please provide a physical shipping address. Bookseller Inventory # 9780321336798
Book Description Addison-Wesley, 2006. Paperback. Book Condition: Brand New. 1st edition. 266 pages. 8.75x6.75x0.50 inches. In Stock. Bookseller Inventory # zk0321336798