Docsity

Viewing - Introduction to Computer Graphics - Lecture Slides, Slides of Computer Graphics

Partial preview of the text

Download Viewing - Introduction to Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

Lecture 11:

Viewing 1

 Matrix composition:

 If I want to have an object that’s currently located at position (a, b, c) to be  1) Uniformly scaled by 3  2) Rotated around the z-axis by 45 degrees  3) Translated by (5, 10, 15)  Write out the sequence of matrices that you need to apply

 Now write out the inverse of this transformation matrix

Refresher

Composition (an example) (2D)

Composition (an example) (2D) (2/2)

Rotating axis by axis (1/2)

Rotating axis by axis (2/2)

Questions?

 We’re going to use Gauss-Jordan elimination  Finding A-1^ with Gauss-Jordan elimination is done by augmenting A with I to get [A|I], then reducing the new matrix into reduced row echelon form (rref) to get a new matrix. This new matrix will be of the form [I|A -1]  What does rref really mean?  If a row does not consist entirely of zeros, then the first nonzero number in the row is a 1. (Call this a leading 1)  If there are any rows that consist entirely of zeros, then they are grouped together at the bottom of the matrix.  If any two successive rows do not consist entirely of zeros, the leading 1 in the lower row occurs farther to the right than the leading 1 in the higher row  Each column that contains a leading 1 has zeros everywhere else.

How to Invert a Matrix

How to Invert a Matrix, Example

How to Invert a Matrix, Example

 Shearing refers to the “sliding” or “skewing” effect

Addendum: Shearing / Skewing

Y

X

(^01)

1 2

2

3 4 5 6 7 8 9 10

3

4

5

6

θ

θ =^ π 4

Questions?

 Plan view ( parallel , specifically orthographic, projection) from Mesopotamia (2150 BC): Earliest known technical drawing in existence

 Greek vase from the late 6 th century BC: Shows signs of attempts at perspective!  Note relative sizes of thighs and lower legs of minotaur

Early Forms of Projection

Carlbom Fig. 1-

Theseus Killing theMinotaur by the Kleophrades Painter

 Ancient Egyptian Art:  Multiple Viewpoints  Parallel Projection

 Tomb of Nefertari, Thebes (19th Dyn, ~1270 BC), Queen led by Isis. Mural

 Note how the depiction of the body implies a front view but the feet and head imply side view (early cubism)

Early Forms of Projection