Graphics Transformations
Translate, Scale, Rotate Homogeneous Coordinates Affine Transformation Matrices Combining Transformations Shape Model Class
1
Graphics Transformations Translate, Scale, Rotate Homogeneous - - PowerPoint PPT Presentation
Graphics Transformations Translate, Scale, Rotate Homogeneous Coordinates Affine Transformation Matrices Combining Transformations Shape Model Class 1 Transforming Shape Models Shape model contains points (and properties used for drawing)
1
2
(x0,y0) (x1,y1) (x2,y2) (x3,y3) (x4,y4) (x'0,y'0) (x'1,y'1) (x'2,y'2) (x'3,y'3) (x'4,y'4)
3
4
5
6
7
=
8
9
10
11
12
13
14
15
16
18
21
BarExercise.java (0,0)
22
24
25
26
27
28
29
(x0,y0) (x1,y1) (x2,y2) (x3,y3) (x4,y4) (x'0,y'0) (x'1,y'1) (x'2,y'2) (x'3,y'3) (x'4,y'4)
The points are defined at the origin. Rendering first remaps the points using the matrix. Remapped points with properties used to set color for rendering.
30
31
In a scene graph, every node has a matrix that describes its position relative to its parent (i.e.
relative to the parent node).
32
1.
2.
(0,0)
33
(0,0)
34
(0,0)
36