3D Game Engine Design 1 3D Game Engine Design Ch. 2.3. 3D MAP LAB.

Slides:



Advertisements
Similar presentations
Vectors, Points, Lines and Planes Jim Van Verth Lars M. Bishop
Advertisements

8.2 Kernel And Range.
3D Geometry for Computer Graphics
Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
1 3D Vector & Matrix Chapter 2. 2 Vector Definition: Vector is a line segment that has the direction. The length of the line segment is called the magnitude.
Arbitrary Rotations in 3D Lecture 18 Wed, Oct 8, 2003.
Chris Hall Aerospace and Ocean Engineering
Computer Graphics Recitation 5.
Computer Graphics Recitation 2. 2 The plan today Learn about rotations in 2D and 3D. Representing rotations by quaternions.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
CSCE 689: Computer Animation Rotation Representation and Interpolation
Chapter 4 Linear Transformations. Outlines Definition and Examples Matrix Representation of linear transformation Similarity.
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.
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.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Technical Background.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.
Rotations and Translations
Mathematical Topics Review of some concepts:  trigonometry  aliasing  coordinate systems  homogeneous coordinates  matrices, quaternions.
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
UW EXTENSION CERTIFICATE PROGRAM IN GAME DEVELOPMENT 2 ND QUARTER: ADVANCED GRAPHICS D3DX introduction and math.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Maths and Technologies for Games Quaternions CO3303 Week 1.
Chapter 4 Linear Transformations 4.1 Introduction to Linear Transformations 4.2 The Kernel and Range of a Linear Transformation 4.3 Matrices for Linear.
§ Linear Operators Christopher Crawford PHY
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.
Matthew Christian. About Me Introduction to Linear Algebra Vectors Matrices Quaternions Links.
VECTORS (Ch. 12) Vectors in the plane Definition: A vector v in the Cartesian plane is an ordered pair of real numbers:  a,b . We write v =  a,b  and.
CGDD 4003 THE MATH LECTURE (BOILED DOWN, YET LIGHTLY SALTED)
Analytic Geometry o f Space 3D Space (right-handed coordinate system) Introduction to Vectors –Let –We may to know the displacement from P to Q From P.
UW EXTENSION CERTIFICATE PROGRAM IN GAME DEVELOPMENT 2 ND QUARTER: ADVANCED GRAPHICS Math Review.
Chapter 2: Description of position and orientation Faculty of Engineering - Mechanical Engineering Department ROBOTICS Outline: Introduction. Descriptions:
CPSC 453 Tutorials Xin Liu Oct 16, HW1 review Why I was wrong?
Quaternion 靜宜大學資工系 蔡奇偉副教授 大綱  History of Quaternions  Definition of Quaternion  Operations  Unit Quaternion  Operation Rules  Quaternion Transforms.
1 Algebra of operations Thm 1: Rotation about A thru angle  followed by translation T to axis = rotation thru same angle  about B on bisector of AA'
Euler Angles This means, that we can represent an orientation with 3 numbers Assuming we limit ourselves to 3 rotations without successive rotations about.
Coordinate Systems and Transformations
An Introduction to Robot Kinematics Renata Melamud.
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Chapter 4 Linear Transformations 4.1 Introduction to Linear Transformations 4.2 The Kernel and Range of a Linear Transformation 4.3 Matrices for Linear.
Modeling Transformation
CSCE 452: Question Set 1 Spatial Descriptions
Matrix corresponding to rotation Matrix corresponding to reflection Rotation and reflection y=(tan  )x 
Vectors Def. A vector is a quantity that has both magnitude and direction. v is displacement vector from A to B A is the initial point, B is the terminal.
Computer Animation Algorithms and Techniques
CPSC 641: Computer Graphics Rotation Representation and Interpolation
Representation of scene motion
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3. Transformation
Problem 1.5: For this problem, we need to figure out the length of the blue segment shown in the figure. This can be solved easily using similar triangles.
Defining Similarity (5.3.1)
6.2 Dot Products of Vectors
Mobile Robot Kinematics
Physics 111 Practice Problem Solutions 01 Units, Measurement, Vectors SJ 8th Ed.: Ch , 3.1 – 3.4 Contents: 1-7, 1-9, 1-10, 1-12, 1-15, 1-21* 3-5,
Find the curl of the vector field. {image}
Solving Linear Systems Using Inverse Matrices
Christopher Crawford PHY
Find the curl of the vector field. {image}
UMBC Graphics for Games
Chapter 2. Geometrical Methods
Chapter 4 Linear Transformations
Game Programming Algorithms and Techniques
Defining Similarity (5.3.1)
Presentation transcript:

3D Game Engine Design 1 3D Game Engine Design Ch D MAP LAB

3D Game Engine Design 2 Quaternion  Quaternion Algebra  Def >  A Quaternion is defined by q = w + xi + yj + zk where w, x, y, z are in R and  Def>  Let then

3D Game Engine Design 3 Quaternion(cont’d)

3D Game Engine Design 4 Quaternion(cont’d)  Thm> Let then and let then quaternion multiplication can be defined using vector dot product and cross product  Thm> A quaternion q may be also viewed as a 4D vector( w, x, y, z).then the dot product of two quaternion is

3D Game Engine Design 5 Quaternion(cont’d)  Def>  A unit quaternion is a quaternion q for which  Thm>  The inverse of unit quaternion and the product of unit quaternion are themselves unit quaternion.  Unit quaternion can be represented by

3D Game Engine Design 6 Quaternion(cont’d) has length 1. However observe that the quaternion product  similar to unit-length complex numbers  Euler’s identity for complex numbers generalizes to quaternion.  Thm>  The power of unit quaternion  The logarithm of unit quaternion

3D Game Engine Design 7 Quaternion(cont’d)  Caution : standard identities are not allowed because of non-commutative of quaternion.  That is,

3D Game Engine Design 8 Quaternion(cont’d)  Relationship to quaternion to rotation  Thm>  Unit quaternion represents the rotation of the 3D vector by an angle about the 3D axis. And rotated vector is represented by.  Proof> it is enough to show that  R(v) is 3D vector  R(v) is length preserving function.  R(v) is linear transformation.  R(v) doesn’t have reflection component.  Rotation axis is really u. ( 1)  Rotation angle (2)  We will prove (1),(2)

3D Game Engine Design 9 Quaternion(cont’d)  (1)  (2) u v w

3D Game Engine Design 10 Quaternion(cont’d)

3D Game Engine Design 11 Quaternion(cont’d)  Conversion between various rotation representations Angle-axis rotation Quaternion rotationRotation matrix

3D Game Engine Design 12 Quaternion(cont’d)  Conversion between angle-axis and rotation matrix  Thm> angle-axis to rotation matrix

3D Game Engine Design 13 Quaternion(cont’d)  Thm> Rotation matrix to angle-axis =0 or 180(??)

3D Game Engine Design 14 Quaternion(cont’d)  Conversion between quaternion and angle-axis  Thm> angle-axis to quaternion  Thm> quaternion to angle-axis

3D Game Engine Design 15 Quaternion(cont’d)  Conversion between quaternion and rotation matrix  Thm> quaternion to rotation matrix  Thm> rotation matrix to quaternion