graphics pipeline
play

Graphics Pipeline (Slides courtesy of Tamar Shinar) Graphics - PowerPoint PPT Presentation

Graphics Pipeline (Slides courtesy of Tamar Shinar) Graphics Pipeline ff Transform ff Modelview Transformation Object World Eye coordinates coordinates coordinates Model View Project ff Projection: map 3D scene to 2D image


  1. Graphics Pipeline (Slides courtesy of Tamar Shinar)

  2. Graphics Pipeline ff

  3. Transform ff

  4. “Modelview” Transformation Object World Eye coordinates coordinates coordinates Model View

  5. Project ff

  6. Projection: map 3D scene to 2D image OpenGL Super Bible, 5th Ed.

  7. Orthographic projection vector.tutsplus.com

  8. OpenGL Orthogonal Viewing glOrtho(left,right,bottom,top,near,far) View volume for an orthographic projection 8

  9. Perspective projection www.artyfactory.com

  10. OpenGL Perspective Viewing glFrustum(xmin,xmax,ymin,ymax,near,far) View volume (frustrum) for a perspective projection 10

  11. Clip ff

  12. Clip against view volume

  13. Hidden Surface Removal ff

  14. Occlusion “painter’s algorithm” draw primitives in back-to-front order [Wikimedia Commons]

  15. Occlusion “painter’s algorithm” draw primitives in back-to- front order problem : triangle intersection

  16. Occlusion “painter’s algorithm” draw primitives in back-to- front order problem : occlusion cycle

  17. Use a z-buffer for hidden surface removal test depth on a pixel by pixel basis red drawn last without z-buffer with z-buffer

  18. Use a z-buffer for hidden surface removal at each pixel, record distance to the closest object that has been drawn in a depth buffer without z-buffer with z-buffer

  19. Use a z-buffer for hidden surface removal http://www.beyond3d.com/content/articles/41/

  20. Backface culling: another way to eliminate hidden geometry

  21. Hidden Surface Removal in OpenGL glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH ); glEnable( GL_DEPTH_TEST ); glEnable( GL_CULL_FACE ); For a perspective transformation, there is more precision in the depth buffer for z-values closer to the near plane

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend