Docsity

Transformations - Computer Graphics - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Transformations - Computer Graphics - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Transformations

Outline • Assignment 0 Recap • Intro to Transformations • Classes of Transformations • Representing Transformations • Combining Transformations • Change of Orthonormal Basis

Notes on Assignments • Make sure you turn in a

linux

or

windows

executable (so we can test your program) • Collaboration Policy^ – Share ideas, not code

  • Tell us how much time you spent on each

assignment

Quick Review of Last Week • Ray representation • Generating rays from eyepoint / camera

  • orthographic camera – perspective camera
    • Find intersection point & surface normal • Primitives:
      • spheres, planes, polygons, triangles, boxes

What is a Transformation? • Maps points (

x, y

) in one coordinate system to

points (

x', y'

) in another coordinate system

  • For example, IFS:

x' = ax + by + c y' = dx + ey + f

Common Coordinate Systems • Object space

  • local to each object
    • World space
      • common to all objects
        • Eye space / Camera space
          • derived from view frustum
            • Screen space
              • indexed according^ to hardware attributes

NEARNEARNEARNEAR

EYEEYEEYE

FARFARFAR

y

z^

x o

y y x x z

z

o NDCNDCNDC

((Courtesy of Seth Teller. Used with permission.

)

Docsity.com

Transformations are used: • Position objects in a scene (modeling) • Change the shape of objects • Create multiple copies of objects • Projection for virtual cameras • Animations

Outline • Assignment 0 Recap • Intro to Transformations • Classes of Transformations

  • Rigid Body / Euclidean Transforms • Similitudes / Similarity Transforms • Linear • Affine • Projective
    • Representing Transformations • Combining Transformations • Change of Orthonormal Basis

Similitudes / Similarity Transforms • Preserves angles

Translation

Rotation

Rigid / Euclidean

Similitudes

Isotropic Scaling

Identity

Linear Transformations

Translation

Rotation

Rigid / Euclidean

Linear

Similitudes

Isotropic Scaling

Identity

ScalingReflectionShear

Affine Transformations • preserves

parallel lines

Translation

Rotation

Rigid / Euclidean

Linear

Similitudes

Isotropic Scaling

ScalingReflectionShear

Identity

Affine

Projective Transformations • preserves lines

Projective

Translation

Rotation

Rigid / Euclidean

Linear

Affine

Similitudes

Isotropic Scaling

ScalingReflectionShear

Perspective Identity

Outline • Assignment 0 Recap • Intro to Transformations • Classes of Transformations • Representing Transformations • Combining Transformations • Change of Orthonormal Basis

How are Transforms Represented?

x' = ax + by + c y' = dx + ey + f x' y'

x y

c f

a^

b d^

e^

p'

M p

t