Principles of Computer Graphics and Image Processing
Animations, Dynamics (08)
- RNDr. Martin Madaras, PhD.
martin.madaras@stuba.sk
Animations, Dynamics (08) RNDr. Martin Madaras, PhD. - - PowerPoint PPT Presentation
Principles of Computer Graphics and Image Processing Animations, Dynamics (08) RNDr. Martin Madaras, PhD. martin.madaras@stuba.sk Outline Principles of animation Keyframe animation Articulated figures Kinematics Dynamics 2
martin.madaras@stuba.sk
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// RotationAngle is in radians
x = RotationAxis.x * sin(RotationAngle / 2)
y = RotationAxis.y * sin(RotationAngle / 2)
z = RotationAxis.z * sin(RotationAngle / 2)
w = cos(RotationAngle / 2)
glm::quat Interpolation using SLERP
quat result = glm::gtc::quaternion::mix(q1, q2, mixFactor);
Casting back to matrix
42
43
44
45
46
http://www.anzovin.com/products/tfm1maya.html
47
http://www.studiopendulum.com/alterego/
48
49
50
51
52
53
54
e.g. articulated figure
e.g. jump from here to there in time t
e.g. floor to push off and land
e.g. minimize energy
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71