Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

MTD203

Timed Online Assignment – January Semester 2021

Advanced Graphics Design


Tuesday, 25 May 2021 1:00 pm – 3:30 pm

____________________________________________________________________________________

Time allowed: 2.5 hours


____________________________________________________________________________________

INSTRUCTIONS TO STUDENTS:

1. This Timed Online Assignment (TOA) contains FOUR (4) questions and comprises
SIX (6) pages (including cover page).

2. You must answer ALL questions.

3. If you have any queries about a question, or believe there is an error in the question,
briefly explain your understanding and assumptions about that question before
attempting it.

4. You MUST submit your answers via Canvas (similar to TMA submission) at the
end time of this TOA (as stated on this cover page). The 15 minutes grace period as
shown on Canvas is strictly meant for technical issues encountered during
submission. Thereafter, you will not be able to submit your answers and you will be
considered as having withdrawn from the course. No appeal will be allowed.

5. You are to include the following particulars in your submission: TOA Course Code,
Your Name and SUSS PI No. Name your submission file as
TOACourseCode_FullName_StudentPI. Use underscore and NOT Space. Example:
TOAXYZ_RaphaelLee_T1923161 (omit D/O, S/O).

6. Your submission should consist of only one file and must not exceed 500MB in size.
The file must be a Microsoft Word file saved in .doc or .docx format. All answers
are to be typed except for codes, formulas, calculation workings, flowcharts and
graphs which can be handwritten. Handwritten codes, formulas, calculation
workings, flowcharts and graphs may be scanned or photographed and embedded in
the Word file provided it does not exceed the file size limit of 500MB. Please review
your submitted TOA work after uploading it into Canvas to make sure that any
handwritten work can be seen clearly.

MTD203 Copyright © 2021 Singapore University of Social Sciences (SUSS) Page 1 of 6


TOA –January Semester 2021
7. To prevent plagiarism and collusion, your submission will be reviewed by Turnitin.
The Turnitin report will only be made available to the marker and you will not be
able to view it.

8. The University takes plagiarism and collusion seriously, and your Turnitin report will
be examined thoroughly as part of the marking process.

9. The formula sheet is found on Page 6.

10. Round your answer to the nearest three decimal places.

MTD203 Copyright © 2021 Singapore University of Social Sciences (SUSS) Page 2 of 6


TOA –January Semester 2021
Answer all questions. (Total 100 marks)

Question 1

Discuss the operations and properties of vectors and matrices, including the geometrical
meaning of the operations.

(a) Given a = (2, 5, 4) and b = (3, 2, 3), calculate the following:

(i) 7a

(ii) 11a - 13b

(iii) |11a - 13b|

(10 marks)

(b) Given that P = (2, 3, 6) and Q = (3, 4, 5),

(i) Calculate projQP and perpQP.


(6 marks)

(ii) Calculate the dot product for projQP and perpQP. Discuss the geometrical
meaning of the result.
(4 marks)

(c) Calculate the inverse of the matrix

1 2 3
[6 4 5].
8 9 7
(10 marks)

Question 2

The vertices of a triangle are P0(10, 4, 7), P1(4, 16, 7) and P2(4, 6, 19). A ray starts from
S(1, 1, 1) and moves in the direction of V(1, 2, 3). Describe the intersection between the
ray and the triangle by completing the following steps.

(a) Determine the plane on which the triangle lies.


(6 marks)

(b) Calculate the point of intersection between the ray and the plane.
(6 marks)

(c) Determine if the intersection lies within the triangle.


(13 marks)

MTD203 Copyright © 2021 Singapore University of Social Sciences (SUSS) Page 3 of 6


TOA –January Semester 2021
Question 3

(a) A triangle is defined by the coordinates P1(3, 0, 0), P2(0, 5, 0) and P3(0, 0, 7). The
triangle is rotated 30-degree counter-clockwise about the x-axis. Solve the
transformation operation to determine the new position of the triangle
(6 marks)

(b) The rotated triangle in (a) is next rotated 45-degree counter-clockwise about the
z-axis. Solve the transformation operation to determine the new position of the
triangle.
(6 marks)

(c) Instead of the rotations in (a) and (b), the original triangle in (a) at coordinate
P1(3, 0, 0), P2(0, 5, 0) and P3(0, 0, 7) is now rotated 30-degree clockwise about
the x-axis.

Next, the rotated triangle is then rotated 45-degree clockwise about the z-axis.
Solve the transformation operation to determine the final position of the triangle.
(8 marks)

(d) Explain how you can rotate the rotated triangle in part (b) to its original position
at P1(3, 0, 0), P2(0, 5, 0) and P3(0, 0, 7).
(5 marks)

MTD203 Copyright © 2021 Singapore University of Social Sciences (SUSS) Page 4 of 6


TOA –January Semester 2021
Question 4

Illustrate the Phong Reflection Model with the given information as follows:
 The vertices of a lighted triangle are P0(1, 1, 1), P1(0, 2, 1) and P2(0, 0, 1)
 The viewer is at the position (1, 5, 4)
 The white point light is at the position (1, 0, 5) with intensity Ii = 0.5
 White ambient intensity Ia = 0.1
 kambient = 0.7, kdiffuse = 0.9 and kspecular is 0.6.
 Shininess coefficient n = 10

You are required to:

(a) ̂ ) of the triangle.


Find the unit normal vector (𝑁
(4 marks)

(b) Find the unit vector (𝑉̂ ) from P0 to the viewer


(3 marks)

(c) Find the unit vector (𝐿̂) from P0 to the point light
(3 marks)

(d) Compute the reflection vector R.


(4 marks)

(e) Compute the intensity at the vertex P0 using the Phong Reflection Model.
(6 marks)

MTD203 Copyright © 2021 Singapore University of Social Sciences (SUSS) Page 5 of 6


TOA –January Semester 2021
FORMULA SHEET

1) Formula for projection and perpendicular

𝑃∙𝑄
𝑝𝑟𝑜𝑗𝑄 𝑃 = 𝑄
‖𝑄‖2

𝑝𝑒𝑟𝑝𝑄 𝑃 = 𝑃 − 𝑝𝑟𝑜𝑗𝑃 𝑄

2) Rotation matrix

1 0 0
Rx(A) = [0 𝑐𝑜𝑠𝐴 −𝑠𝑖𝑛𝐴]
0 𝑠𝑖𝑛𝐴 𝑐𝑜𝑠𝐴
𝑐𝑜𝑠𝐵 0 𝑠𝑖𝑛𝐵
Ry(B) = [ 0 1 0 ]
−𝑠𝑖𝑛𝐵 0 𝑐𝑜𝑠𝐵
𝑐𝑜𝑠𝐶 −𝑠𝑖𝑛𝐶 0
Rz(C) = [ 𝑠𝑖𝑛𝐶 𝑐𝑜𝑠𝐶 0]
0 0 1

3) Formula for the reflection vector

̂ .𝐿̂)𝑁
𝑅̂ = 2(𝑁 ̂ - 𝐿̂

4) Phong Reflection Model

I = kaIa + kdIi(𝑁̂.𝐿̂) + ksIi(𝑉̂ .𝑅̂ )n

----- END OF PAPER -----

MTD203 Copyright © 2021 Singapore University of Social Sciences (SUSS) Page 6 of 6


TOA –January Semester 2021

You might also like