Download An Interactive Introduction to OpenGL Programming by Dave Shreiner, Ed Angel, Vicki Shreiner PDF

By Dave Shreiner, Ed Angel, Vicki Shreiner

Show description

Read or Download An Interactive Introduction to OpenGL Programming PDF

Best computers books

Real world Camera Raw with Adobe Photoshop CS: industrial strength production techniques

Name it a keep an eye on factor, yet till lately - or, extra specifically,until the supply of electronic uncooked digicam codecs - you simplyweren't able to make the circulate to electronic images. uncooked formats,however, replaced all of that via permitting you to retrieve imagesbefore any in-camera processing has been played.

Information Networking. Convergence in Broadband and Mobile Networking: International Conference, ICOIN 2005, Jeju Island, Korea, January 31- February 2, 2005. Proceedings

Welcome to ICOIN 2005,the overseas convention on info Netwo- ing, held at Ramada Plaza Jeju resort, Jeju Island, Korea in the course of January 31– February2,2005. ICOIN2005followedthesuccessofpreviousconferences. considering that 1986, the convention has supplied a technical discussion board for varied concerns in inf- mation networking.

Simulated Evolution and Learning: First Asia-Pacific Conference, SEAL'96 Taejon, Korea, November 9–12, 1996 Seclected Papers

This ebook constitutes the completely refereed post-conference documentation of the 1st Asia-Pacific convention on Simulated Evolution and studying, SEAL'96, held in Taejon, Korea, in November 1996. The 23 revised complete papers have been chosen for inclusion during this publication at the foundation of two rounds of reviewing and enhancements.

Additional info for An Interactive Introduction to OpenGL Programming

Example text

GlFrustum() is rarely used. Warning: for gluPerspective() or glFrustum(), don’t use zero for zNear! For glOrtho(), the viewing volume is shaped like a rectangular parallelepiped (a box). Vertexes of an object are “projected” towards infinity. Distance does not change the apparent size of an object. Orthographic projection is used for drafting and design (such as blueprints). 43 An Interactive Introduction to OpenGL Programming Applying Projection Transformations Typical use (orthographic projection) glMatrixMode( GL_PROJECTION ); glLoadIdentity(); glOrtho( left, right, bottom, top, zNear, zFar ); 44 Many users would follow the demonstrated sequence of commands with a glMatrixMode(GL_MODELVIEW) call to return to ModelView matrix stack.

The front buffer is displayed while the application renders into the back buffer. When the application completes rendering to the back buffer, it requests the graphics display hardware to swap the roles of the buffers, causing the back buffer to now be displayed, and the previous front buffer to become the new back buffer. 62 An Interactive Introduction to OpenGL Programming Animation Using Double Buffering Request a double buffered color buffer glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE ); Clear color buffer glClear( GL_COLOR_BUFFER_BIT ); Render scene Request swap of front and back buffers glutSwapBuffers(); Repeat steps 2 - 4 for animation 63 Requesting double buffering in GLUT is simple.

The screen-space view menu allows you to choose different models. The command-manipulation menu allows you to change the order of the glTranslatef() and glRotatef() commands. Later, we will see the effect of changing the order of modeling commands. 48 An Interactive Introduction to OpenGL Programming Connection: Viewing and Modeling Moving camera is equivalent to moving every object in the world towards a stationary camera Viewing transformations are equivalent to several modeling transformations gluLookAt() has its own command can make your own polar view or pilot view 49 Instead of gluLookAt(, one can use the following combinations of glTranslate() and glRotate() to achieve a viewing transformation.

Download PDF sample

Rated 4.76 of 5 – based on 45 votes