1 / 12

Introduction to OpenGL Pipeline From Programmer View

Introduction to OpenGL Pipeline From Programmer View. Tong-Yee Lee. OpenGL Transformation Pipeline. normalized device. eye. object. clip. window. v e r t e x. Modelview Matrix. Projection Matrix. Perspective Division. Viewport Transform. Modelview. Projection. Modelview.

joben
Télécharger la présentation

Introduction to OpenGL Pipeline From Programmer View

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to OpenGL Pipeline From Programmer View Tong-Yee Lee

  2. OpenGL Transformation Pipeline normalized device eye object clip window v e r t e x Modelview Matrix Projection Matrix Perspective Division Viewport Transform Modelview Projection Modelview glTranslate{fd}( x, y, z ) glRotate{fd}( angle, x, y, z ) glScale{fd}( x, y, z ) l l l

  3. 3D Transformations

  4. OpenGL transformation Matrices

  5. tripod OpenGL Transformation Pipeline normalized device eye object clip window v e r t e x Modelview Matrix Projection Matrix Perspective Division Viewport Transform Modelview Projection Modelview l l l gluLookAt( eyex, eyey, eyez, aimx, aimy, aimz, upx, upy, upz )

  6. Changes of Coordinate System World coordinate system Camera (eye) coordinate system

  7. normalized device eye object clip window v e r t e x viewing volume Modelview Matrix Projection Matrix Perspective Division Viewport Transform Modelview Projection Modelview model l l l OpenGL Transformation Pipeline Perspective projection • Orthographic parallel projection

  8. Perspective projection • gluPerspective( fovy, aspect, zNear, zFar ) • glFrustum(left,right,bottom,top,zNear,zFar) • Orthographic parallel projection • glOrtho(left,right,bottom,top,zNear,zFar) • gluOrtho2D( left, right, bottom, top )

  9. normalized device eye object clip window v e r t e x Modelview Matrix Projection Matrix Perspective Division Viewport Transform Modelview Projection Modelview l l l h w glViewport( 0, 0, (GLsizei) w, (GLsizei) h );

  10. glMaterialfv( face, property, value ); glNormal3f( x, y, z ) glLightfv( light, property, value );

More Related