1 / 18

Week 2: Review of graphics API

Week 2: Review of graphics API. OpenGL design. Modern graphics pipeline. Modern graphics pipeline. Application. Command. Geometry. Rasterization. Texture. Fragment. Display. Modern graphics pipeline. Application. Command. Geometry. Rasterization. Texture. Fragment. Display.

Download Presentation

Week 2: Review of graphics API

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. Week 2: Review of graphics API OpenGL design

  2. Modern graphics pipeline

  3. Modern graphics pipeline Application Command Geometry Rasterization Texture Fragment Display

  4. Modern graphics pipeline Application Command Geometry Rasterization Texture Fragment Display

  5. Modern graphics pipeline Application Command Geometry Rasterization Texture Fragment Display

  6. Modern graphics pipeline Application Command Geometry Rasterization Texture Fragment Display

  7. Modern graphics pipeline Application Command Geometry Rasterization Texture Fragment Display

  8. Modern graphics pipeline Application Command Geometry Rasterization Texture Fragment Display

  9. Modern graphics pipeline Application Command Geometry Rasterization Texture Fragment Display

  10. Modern graphics pipeline Application Command Geometry Rasterization Texture Fragment Display

  11. Modern graphics pipeline Application Application & higher level libraries world Command Geometry Rasterization Graphics API world Texture Fragment Display

  12. OpenGL block diagram Generation Traversal Xformation Rasteriz. & tex. Display Display list Per-vertex operations & Primitive assembly Per- fragment operations Frame buffer Video display Evaluator Rasterization Application generation Application traversal Texture memory Pixel operations Application & higher level graphics libraries OpenGL implementation

  13. OpenGL operation: conceptual model Configure how OpenGL should draw stuff Draw stuff

  14. Configuring OpenGL “We view OpenGL as a state machine that controls a set of specific drawing operations” Two types of state: server and client. Most refer to server

  15. Drawing • Begin/End paradigm • Only certain commands allowed inside the block

  16. OpenGL command syntax

  17. GL data types • GLfloat, GLint, etc.

  18. GL values • In CAPITAL LETTERS • e.g. GL_LIGHT0, GL_AMBIENT • Use bitwise OR command to combine them, e.g. glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

More Related