1 Dr. Scott Schaefer Quaternions and Complex Numbers.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

Prepared by Dr. Taha MAhdy
GEOMETRIC REPRESENTATION OF COMPLEX NUMBERS A Complex Number is in the form: z = a+bi We can graph complex numbers on the axis shown below: Real axis.
Lecture 3: orientation Computer Animation.
John C. Hart CS 318 Interactive Computer Graphics
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
Orientation & Quaternions
Computer Graphics Recitation 2. 2 The plan today Learn about rotations in 2D and 3D. Representing rotations by quaternions.
3D Coordinate Systems and Transformations Revision 1
3D orientation.
CSCE 689: Computer Animation Rotation Representation and Interpolation
CSCE 441: Computer Graphics Rotation Representation and Interpolation
CSCE 641: Computer Graphics Rotation Representation and Interpolation Jinxiang Chai.
Math for CSTutorial 11 Matrix Multiplication Rule Matrices make linear transformations of vectors.
Rotation representation and Interpolation
Orientations Goal: –Convenient representation of orientation of objects & characters in a scene Applications to: – inverse kinematics –rigid body simulation.
Euler Angles. Three Angles  A rotation matrix can be described with three free parameters. Select three separate rotations about body axesSelect three.
3D Graphics Goal: To produce 2D images of a mathematically described 3D environment Issues: –Describing the environment: Modeling (mostly later) –Computing.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Technical Background.
Computer Graphics 3D Transformations. 3D Translation Remembering 2D transformations -> 3x3 matrices, take a wild guess what happens to 3D transformations.
10/5/04© University of Wisconsin, CS559 Fall 2004 Last Time Compositing Painterly Rendering Intro to 3D Graphics Homework 3 due Oct 12 in class.
1 Kinematics ( 運動學 ) Primer Jyun-Ming Chen Fall 2009.
Visualizing Orientation using Quaternions Gideon Ariel; Rudolf Buijs; Ann Penny; Sun Chung.
Rotations and Translations
CS 450: COMPUTER GRAPHICS QUATERNIONS SPRING 2015 DR. MICHAEL J. REALE.
Computer Graphics Bing-Yu Chen National Taiwan University.
1 KIPA Game Engine Seminars Jonathan Blow Ajou University December 13, 2002 Day 16.
Rotations and Translations
Week 5 - Wednesday.  What did we talk about last time?  Project 2  Normal transforms  Euler angles  Quaternions.
Rick Parent - CIS681 ORIENTATION Use Quaternions Interpolating rotations is difficult.
Maths and Technologies for Games Quaternions CO3303 Week 1.
Assume correspondence has been determined…
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Rotations and Quaternions Week 9, Wed 29 Oct 2003.
EEE. Dept of HONG KONG University of Science and Technology Introduction to Robotics Page 1 Lecture 2. Rigid Body Motion Main Concepts: Configuration Space.
Animating Rotations and Using Quaternions. What We’ll Talk About Animating Translation Animating 2D Rotation Euler Angle representation 3D Angle problems.
Rotation and Orientation: Fundamentals Jehee Lee Seoul National University.
Rotation matrices 1 Constructing rotation matricesEigenvectors and eigenvalues 0 x y.
Review of Complex numbers 1 Exponential Form:Rectangular Form: Real Imag x y  r=|z|
Comparing Two Motions Jehee Lee Seoul National University.
Quaternion 靜宜大學資工系 蔡奇偉副教授 大綱  History of Quaternions  Definition of Quaternion  Operations  Unit Quaternion  Operation Rules  Quaternion Transforms.
3D Geometric Transformation
3D Game Engine Design 1 3D Game Engine Design Ch D MAP LAB.
This Week WeekTopic Week 1 Coordinate Systems, Basic Functions Week 2 Trigonometry and Vectors (Part 1) Week 3 Vectors (Part 2) Week 4 Vectors (Part 3:
Graphics Graphics Korea University cgvr.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Euler Angles This means, that we can represent an orientation with 3 numbers Assuming we limit ourselves to 3 rotations without successive rotations about.
Week 5 - Monday.  What did we talk about last time?  Lines and planes  Trigonometry  Transforms  Affine transforms  Rotation  Scaling  Shearing.
Quaternionic Splines of Paths Robert Shuttleworth Youngstown State University Professor George Francis, Director illiMath2001 NSF VIGRE REU UIUC-NCSA.
UW EXTENSION CERTIFICATE PROGRAM IN GAME DEVELOPMENT 2 ND QUARTER: ADVANCED GRAPHICS Advanced Math.
Fundamentals of Computer Animation Orientation and Rotation.
REFERENCE: QUATERNIONS/ Ogre Transformations.
Robotic Arms and Matrices By Chris Wong and Chris Marino.
Computer Animation Algorithms and Techniques
CPSC 641: Computer Graphics Rotation Representation and Interpolation
CS 445 / 645 Introduction to Computer Graphics
Rotation Matrices and Quaternion
3D Kinematics Consists of two parts
3D Geometric Transformation
COMPUTER GRAPHICS CHAPTERS CS 482 – Fall 2017 TRANSFORMATIONS
LECTURE #3 Complex Exponentials & Complex Numbers
3D Transformations Source & Courtesy: University of Wisconsin,
Arcball Interface Flavia R. Cavalcanti.
Mobile Robot Kinematics
Rotation representation and Interpolation
In mathematics, the quaternions are a number system that extends the complex numbers. They were first described by Irish mathematician Sir William Rowan.
Orientation3D in Three.JS
(c) University of Wisconsin, CS559
UMBC Graphics for Games
CS-378: Game Technology Lecture #2: Transformations Prof. Okan Arikan
UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN
Rotation and Orientation: Fundamentals
Presentation transcript:

1 Dr. Scott Schaefer Quaternions and Complex Numbers

2/75 Complex Numbers Defined by real and imaginary part  where

3/75 Complex Numbers Defined by real and imaginary part  where

4/75 Complex Numbers Defined by real and imaginary part  where

5/75 Complex Numbers Defined by real and imaginary part  where

6/75 Complex Numbers Defined by real and imaginary part  where

7/75 Complex Numbers Defined by real and imaginary part  where

8/75 Complex Numbers Defined by real and imaginary part  where

9/75 Complex Numbers Defined by real and imaginary part  where

10/75 Complex Numbers Defined by real and imaginary part  where

11/75 Complex Numbers Defined by real and imaginary part  where

12/75 Complex Numbers and Rotations Given a point (x,y), rotate that point about the origin by

13/75 Complex Numbers and Rotations Given a point (x,y), rotate that point about the origin by

14/75 Complex Numbers and Rotations Given a point (x,y), rotate that point about the origin by

15/75 Complex Numbers and Rotations Given a point (x,y), rotate that point about the origin by Multiplication is rotation!!!

16/75 Quaternions – History Hamilton attempted to extend complex numbers from 2D to 3D… impossible 1843 Hamilton discovered a generalization to 4D and wrote it on the side of a bridge in Dublin One real part, 3 complex parts

17/75 Quaternions

18/75 Quaternions

19/75 Quaternions

20/75 Quaternions

21/75 Quaternion Multiplication

22/75 Quaternion Multiplication

23/75 Quaternion Multiplication

24/75 Quaternion Operations

25/75 Quaternion Operations

26/75 Quaternion Operations

27/75 Quaternion Operations

28/75 Quaternion Operations

29/75 Quaternion Operations

30/75 Quaternion Operations

31/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

32/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

33/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

34/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

35/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

36/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

37/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

38/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

39/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

40/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

41/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

42/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

43/75 Quaternions and Rotations Claim: unit quaternions represent 3D rotation

44/75 Quaternions and Rotations The quaternion representing rotation about the unit axis v by is

45/75 Quaternions and Rotations The quaternion representing rotation about the unit axis v by is To convert to matrix, assume q=(s,v) and |q|=1

46/75 Quaternions vs. Matrices Quaternions take less space (4 numbers vs. 9 for matrices) Rotating a vector requires 28 multiplications using quaternions vs. 9 for matrices Composing two rotations using quaternions q 1 q 2 requires 16 multiples vs. 27 for matrices Quaternions are typically not hardware accelerated whereas matrices are

47/75 Quaternions and Interpolation Given two orientations q 1 and q 2, find the orientation halfway between

48/75 Quaternions and Interpolation Given two orientations q 1 and q 2, find the orientation halfway between

49/75 Quaternions and Interpolation Unit quaternions represent points on a 4D hyper-sphere Interpolation on the sphere gives rotations that bend the least

50/75 Quaternions and Interpolation Unit quaternions represent points on a 4D hyper-sphere Interpolation on the sphere gives rotations that bend the least

51/75 Quaternions and Interpolation Unit quaternions represent points on a 4D hyper-sphere Interpolation on the sphere gives rotations that bend the least May need to interpolate between q 1 and q 2

52/75 Quaternions and Interpolation Quaternion Interpolation

53/75 Quaternions and Interpolation Quaternion Interpolation

54/75 Quaternions and Interpolation Quaternion Interpolation

55/75 Quaternions and Interpolation Quaternion Interpolation

56/75 Quaternions and Interpolation Quaternion Interpolation

57/75 Quaternions and Interpolation Quaternion Interpolation

58/75 Quaternions and Interpolation Euler Angle Interpolation

59/75 Quaternions and Interpolation Euler Angle Interpolation

60/75 Quaternions and Interpolation Euler Angle Interpolation

61/75 Quaternions and Interpolation Euler Angle Interpolation

62/75 Quaternions and Interpolation Euler Angle Interpolation

63/75 Quaternions and Interpolation Euler Angle Interpolation

64/75 Quaternions and Interpolation Quaternion InterpolationEuler Angle Interpolation

65/75 Quaternions and Interpolation Quaternion InterpolationEuler Angle Interpolation

66/75 Quaternions and Interpolation Quaternion InterpolationEuler Angle Interpolation

67/75 Quaternions and Interpolation Quaternion InterpolationEuler Angle Interpolation

68/75 Quaternions and Interpolation Quaternion InterpolationEuler Angle Interpolation

69/75 Quaternions and Interpolation Quaternion InterpolationEuler Angle Interpolation

70/75 Quaternions and Interpolation Euler Angle InterpolationQuaternion Interpolation

71/75 Quaternions and Interpolation Euler Angle InterpolationQuaternion Interpolation

72/75 Quaternions and Interpolation Euler Angle InterpolationQuaternion Interpolation

73/75 Quaternions and Interpolation Euler Angle InterpolationQuaternion Interpolation

74/75 Quaternions and Interpolation Euler Angle InterpolationQuaternion Interpolation

75/75 Quaternions and Interpolation Euler Angle InterpolationQuaternion Interpolation

76/75

77/75 Exponential Forms Euler’s formula 

78/75 Quaternions in Exponential Form