Docsity

Vista y Proyección: Clásica y por Computadora, Diapositivas de Informática

Vista previa parcial del texto

¡Descarga Vista y Proyección: Clásica y por Computadora y más Diapositivas en PDF de Informática solo en Docsity!

Viewing

Jaime Veintimilla Reyes

Classical Viewing

Viewing requires several basic elements: u One or more objects u A viewer (Center of Projection, COP) u A projection plane u Projectors (from the object(s) to the COP)

Parallel Projection

parallel viewing is the limit of perspective viewing 4

Orthogonal Projection

Projectors are orthogonal to projection

surface

Taxonomy of Projections

Projection Parallel Perspective Orthogonal Oblique

Computer Viewing

The OpenGL Camera u In OpenGL, initially the object and camera frames are the same u Default model-view matrix is an identity u The camera is located at origin and points in the negative z direction 1

The OpenGL View Volume

OpenGL also specifies a default view volume that is a cube with sides of length 2 centered at the origin u Default projection matrix is an identity 1

Positioning the Camera u To visualize objects we can either: u Move the camera in the positive z direction u Move the objects in the negative z direction u Both of these views are equivalent and are determined by the model- view matrix 1

Moving Camera back from Origin default 1 after translation

Projections u The default projection is orthogonal u For points within the default view volume 1

Homogeneous Coordinate Representation x p = x yp = y zp = 0 wp = 1 1 p p = Mp M =

ú

ú

ú

ú

û

ù

ê

ê

ê

ê

ë

é

default orthogonal projection

Equivalency 1

OpenGL Orthogonal Viewing left, right, bottom, top, near, far 2 near and far measured from camera