Viewing CPSC 453 Fundamentals of Computer Graphics Normalized

  • Slides: 32
Download presentation
Viewing CPSC 453 - Fundamentals of Computer Graphics

Viewing CPSC 453 - Fundamentals of Computer Graphics

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

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

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

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

Scaling in 1 D

Scaling in 1 D

Mapping in 1 D

Mapping in 1 D

Mapping in 2 D

Mapping in 2 D

Mapping in 2 D

Mapping in 2 D

2 D mapping NDC to screen space [-1, 1]2 [-0. 5, -nx – 0.

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

2 D mapping NDC to screen space

2 D mapping NDC to screen space

3 D mapping: Viewport transformation

3 D mapping: Viewport transformation

3 D mapping: Viewport transformation Open. GL does this automatically with the values set

3 D mapping: Viewport transformation Open. GL does this automatically with the values set in gl. Viewport(x, y, width, height)

Orthographic view volume NDC volume

Orthographic view volume NDC volume

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

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

Orthographic view volume

Orthographic view volume

Mapping one box to another… Orthographic view volume NDC volume

Mapping one box to another… Orthographic view volume NDC volume

Mapping one box to another… Orthographic view volume NDC volume

Mapping one box to another… Orthographic view volume NDC volume

Orthographic view volume NDC volume

Orthographic view volume NDC volume

Orthographic view volume NDC volume The z-coordinate is in [-1, 1], and will be

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

Camera transformation Orthographic view volume Arbitrary view transform

Camera transformation Orthographic view volume Arbitrary view transform

Camera transformation Orthographic view volume Arbitrary view transform

Camera transformation Orthographic view volume Arbitrary view transform

2 D change of coordinates

2 D change of coordinates

2 D change of coordinates

2 D change of coordinates

2 D change of coordinates

2 D change of coordinates

2 D change of coordinates A matrix with columns that are mutually orthonormal, is

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

Camera transformation

Camera transformation

Camera transformation Orthographic view volume

Camera transformation Orthographic view volume

World space to Screen space

World space to Screen space

Isometric drawing (using Orthographic projection)

Isometric drawing (using Orthographic projection)

Next Week

Next Week