1 / 32

Viewing

Viewing. CPSC 453 - Fundamentals of Computer Graphics. Normalized Device Coordinates (NDC) : [-1,1] 3. Normalized Device Coordinates (NDC) : [-1,1] 3. Scaling in 1 D. Mapping in 1 D. Mapping in 2 D. Mapping in 2 D. 2D mapping NDC to screen space. [-1,1] 2.

falzone
Télécharger la présentation

Viewing

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. Viewing CPSC 453 - Fundamentals of Computer Graphics

  2. Normalized Device Coordinates (NDC) : [-1,1]3

  3. Normalized Device Coordinates (NDC) : [-1,1]3

  4. Scaling in 1D

  5. Mapping in 1D

  6. Mapping in 2D

  7. Mapping in 2D

  8. 2D mapping NDC to screen space [-1,1]2 [-0.5, -nx – 0.5] x [-0.5, -ny – 0.5]

  9. 2D mapping NDC to screen space

  10. 3D mapping: Viewport transformation

  11. 3D mapping: Viewport transformation OpenGL does this automatically with the values set in glViewport(x, y, width, height)

  12. NDC volume Orthographic view volume

  13. Orthographic view volume Volume is along z-axis ( i.e. n > f )

  14. Orthographic view volume

  15. Mapping one box to another… NDC volume Orthographic view volume

  16. Mapping one box to another… NDC volume Orthographic view volume

  17. NDC volume Orthographic view volume

  18. NDC volume Orthographic view volume The z-coordinate is in [-1,1], and will be used for depth buffering later.

  19. Camera transformation Orthographic view volume Arbitrary view transform

  20. Camera transformation Orthographic view volume Arbitrary view transform

  21. 2D change of coordinates

  22. 2D change of coordinates

  23. 2D change of coordinates

  24. 2D change of coordinates A matrix with columns that are mutually orthonormal, is a rotation matrix

  25. Camera transformation

  26. Camera transformation Orthographic view volume

  27. World space to Screen space

  28. Isometric drawing (using Orthographic projection)

  29. Next Week

More Related