Exercise 1 Data Analysis and Visualization Computer Graphics - Transformation
Exercise 1 Data Analysis and Visualization Computer Graphics - Transformation
27.10.2015
Exercise 1
Data Analysis and Visualization
Computer Graphics - Transformation
Task 1
Given the triangle formed by the 2D points ~a = (3, 2), ~b = (1, 4), and ~c = (3, 0),
the following three transformations are consecutively applied to the triangle.
(i) Rotation by 90 .
(ii) Translation by (2, 1).
(iii) Scaling by 21 .
(a) Draw the triangle after each transformation step.
(b) Consecutively apply the transformations to ~a.
(c) Write down the three individual transformation matrices in homogenous coordinate
form, and combine them into a single matrix.
(d) Apply the combined transformation to all three points.
Task 2 A triangle consisting of three 3D-points ~a , ~b, and ~c was transformed in four
steps:
(i)
(ii)
(iii)
(iv)
Rotated by 45 around x.
Scaled by (1, 31 , 1).
Translated by 3, 2, 0 .
Rotated by 45 around x.
which leads to the current points ~aM = (1, 0, 0), ~bM = (1, 2, 2), and ~cM = (3, 0, 4).
In order to find the triangles vertex positions before the transformations, we have to
apply inverse transformations to these points.
(a) Write down the four individual transformation matrices.
(b) Calculate the inverse of the combined transformation.
(c) Apply the inverted combined transformation to all three points.