���Chapter XI
Euler Transforms and Quaternions
All class materials including this PowerPoint file are available at
https://github.com/medialab-ku/openGLESbook
Introduction to Computer Graphics with OpenGL ES (J. Han)
Keyframe Animation in 2D
11-2
p0 = (2,4)
p1 = (5,8)
θ0 = 0o
θ1 = -90o
Introduction to Computer Graphics with OpenGL ES (J. Han)
Keyframe Animation in 2D (cont’d)
11-3
time t
x
time t
y
time t
θ
2
5
4
8
- 90o
1
1
1
p0 = (2,4)
p1 = (5,8)
θ0 = 0o
θ1 = -90o
Introduction to Computer Graphics with OpenGL ES (J. Han)
Keyframe Animation in 3D
11-4
Introduction to Computer Graphics with OpenGL ES (J. Han)
Keyframe Animation in 3D (cont’d)
11-5
Introduction to Computer Graphics with OpenGL ES (J. Han)
Keyframe Animation in 3D (cont’d)
11-6
Introduction to Computer Graphics with OpenGL ES (J. Han)
A Problem of Euler Angles
11-7
Introduction to Computer Graphics with OpenGL ES (J. Han)
Quaternion
11-8
Introduction to Computer Graphics with OpenGL ES (J. Han)
2D Rotation through Complex Numbers
11-9
Introduction to Computer Graphics with OpenGL ES (J. Han)
3D Rotation through Quaternions
11-10
u and θ. The axis u is divided by its
length to make a unit vector u. Then,
part represents the rotated vector.
Introduction to Computer Graphics with OpenGL ES (J. Han)
3D Rotation through Quaternions (cont’d)
11-11
Here as he walked by on the 16th of October 1843 Sir William Rowan Hamilton in a flash of genius discovered the fundamental formula for quaternion multiplication
i2 = j2 = k2 = ijk = −1
& cut it on a stone of this bridge.
Introduction to Computer Graphics with OpenGL ES (J. Han)
Quaternion Interpolation
11-12
Introduction to Computer Graphics with OpenGL ES (J. Han)
Quaternion and Rotation Matrix
11-13
Introduction to Computer Graphics with OpenGL ES (J. Han)
Quaternion and Rotation Matrix (cont’d)
11-14
Introduction to Computer Graphics with OpenGL ES (J. Han)
Quaternion and Rotation Matrix (cont’d)
11-15
🡪 M0 🡪 q
🡪 M1 🡪 r
🡪
🡨
Mt
Introduction to Computer Graphics with OpenGL ES (J. Han)
Summary
11-16
Introduction to Computer Graphics with OpenGL ES (J. Han)
Rotation about an Arbitrary Axis (revisited)
11-17
Introduction to Computer Graphics with OpenGL ES (J. Han)
Saved
11-18
Introduction to Computer Graphics with OpenGL ES (J. Han)
3D Rotation through Quaternions (cont’d)
11-19
Introduction to Computer Graphics with OpenGL ES (J. Han)