Download presentation
Presentation is loading. Please wait.
Published byRosamund Bradley Modified over 9 years ago
1
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 5
2
Figure 5.1: Translation.
3
Figure 5.2: Scaling.
4
Figure 5.3: Rotation.
5
Figure 5.4: Illustrations for Example 5.2.
6
Figure 5.5: Reflection (|XP| = |XP’|).
7
Figure 5.6: Glide reflection.
8
Figure 5.7: Affine transformation in R 3.
9
Figure 5.8: Quadratic transform h of R 2 takes a straight segment to a parabolic arc.
10
Figure 5.9: Hint for Exercise 5.26.
11
Figure 5.10: Transformations that are good from the API programmer's point of view, and not so good.
12
Figure 5.11: Square-headed student struck by a CG book: the shape of the head is distorted, but not that of the book.
13
Figure 5.12: Transformations (a)-(c) are Euclidean, (d) is not.
14
Figure 5.13: Executing (c) of Figure 5.12 by a reflection about the mirror l followed by translation and rotation.
15
Figure 5.14: The orientation of PQR perceived by V depends on the half-plane of l containing Q (Q is depicted here in the half-plane x 1 y – y 1 x > 0).
16
Figure 5.15: Illustrations for the proof of Proposition 5.6.
17
Figure 5.16: 2D shears: l is a directed line, α the angle of shear.
18
Figure 5.17: Sheared sheep.
19
Figure 5.18: A shear as a rotation-scaling-rotation.
20
Figure 5.19: Translation.
21
Figure 5.20: Scaling.
22
Figure 5.21: Rotation.
23
Figure 5.22: (a) 2D rotation on the xy-plane (b)-(d) 3D rotations about the coordinate axes.
24
Figure 5.23: Rotating about an arbitrary radial axis.
25
Figure 5.24: Experiment 5.1: (a) Screenshot of output (b) Trick-based rotation scheme.
26
Figure 5.25: Aligning l along the z-axis.
27
Figure 5.26: (a) Non-zero collinear vectors drawn from the origin (b) Taking the cross-product.
28
Figure 5.27: The vector f(X) is obtained by rotating X an angle of θ about the radial line l.
29
Figure 5.28: X 1 and X 2 are components of X parallel and perpendicular, respectively, to l; X 2, f(X 2 ) and P x X all lie on the plane p through O perpendicular to l. X 2 and P x X are mutually perpendicular as well.
30
Figure 5.29: Reflection about plane p (|XP| = |XP’|).
31
Figure 5.30: Screenshot from Experiment 5.2.
32
Figure 5.31: (a) {u, v, w} is left-handed (b) {u, v, w} is right-handed (c) The reflection f about the plane p is orientation-reversing, because the triple {PQ, PQ, PS} is right-handed, while the triple of images {f(P)f(Q), f(P)(R), f(P)(S)} is left-handed.
33
Figure 5.32: Finding the axis of a rigid transformation that fixes the origin.
34
Figure 5.33: (a) A 2D slice of a 3D shear on the plane q and two more “copies” of q (b) A shear along the xz-plane whose line is the x-axis.
35
Figure 5.34: Screenshot of shear.cpp.
36
Figure 5.35: Shadow of a point cast by the sun at 45° in the sky.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.