Matrices, Vectors - Introduction to Computer Graphics - Assignment, Exercises of Computer Graphics

In Introduction to Computer Graphics course we study the basic concept of the principle of computer architecture. In these lecture slides the key points are:Matrices, Vectors, Transforms, Homogeneous Coordinates, Dot Product, Cross Product, Equation for Plane, Order of Composition, Desired Rotation, Sutherland-Hodgman Polygon Clipping, Supersampling Line

Typology: Exercises

2012/2013

Uploaded on 04/23/2013

sarasvan
sarasvan 🇮🇳

4.4

(20)

118 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Homework #1
Matrices, Vectors, and Transforms
Due Thursday, September 13 by the end of class
Question #1: (20 points)
For each of the following homogeneous coordinates,
(a) (6 pts) state whether it is a point or a vector.
(b) (6 pts) state whether it is normalized or not.
(c) (8 pts) if it is not normalized, please normalize it; if it is already normalized, do
nothing.
Question #2: (15 points)
(a) (5 pts) Solve the following dot product: =
(b) (5pts) Solve the following cross product: =
(c) (5pts) State the equation for the plane defined by the vector [1, 2, 3, 0]T and the point [3, 2, 1,
1]T. Your answer should be in the form ax + by + cz + d = 0.
Question #3: (35 points)
Part I:
Write out the following 4x4 matrices and label each with the following names:
(4 pts) T0: Translate in x by 4 and in y by 3
(4 pts) R: Rotate about the z axis by pi/4 (45 degrees)
(4 pts) T1: Translate in x by -4 and in y by -3
(4 pts) S: Scale in x by a factor of 2, and y by a factor of 4 (z is unchanged)
1
5
9
1
11
8
6
4
5
7
2
0
7
7
7
0
1/ 2
0
1/ 2
0
14
7
21
1
2
1
5
3
8
10
4
1
9
×
2
8
1
Docsity.com
pf2

Partial preview of the text

Download Matrices, Vectors - Introduction to Computer Graphics - Assignment and more Exercises Computer Graphics in PDF only on Docsity!

Homework

Matrices, Vectors, and Transforms

Due Thursday, September 13 by the end of class

Question #1: (20 points) For each of the following homogeneous coordinates, (a) (6 pts) state whether it is a point or a vector. (b) (6 pts) state whether it is normalized or not. (c) (8 pts) if it is not normalized, please normalize it; if it is already normalized, do nothing.

Question #2: (15 points)

(a) (5 pts) Solve the following dot product: =

(b) (5pts) Solve the following cross product: = (c) (5pts) State the equation for the plane defined by the vector [1, 2, 3, 0]T^ and the point [3, 2, 1, 1]T. Your answer should be in the form ax + by + cz + d = 0.

Question #3: (35 points) Part I: Write out the following 4x4 matrices and label each with the following names:

  • (4 pts) T0: Translate in x by 4 and in y by 3
  • (4 pts) R: Rotate about the z axis by pi/4 (45 degrees)
  • (4 pts) T1: Translate in x by -4 and in y by -
  • (4 pts) S: Scale in x by a factor of 2, and y by a factor of 4 (z is unchanged)

×

Docsity.com

Part II: (5 pts) Assume you have an object you want to rotate by pi/4 around a z-axis centered at (4,3,0). Using the symbols T0 , R , and T1 , please show the correct order of composition of those matrices to perform the desired rotation.

Part III: (10 pts) Multiply out your answer from part II.

Part III: (8 pts) Apply the transform R to the 3D coordinate (7, 5, 7) and multiply out.

Docsity.com