Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 William H. Hsu Department of Computing.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

CS B659: Principles of Intelligent Robot Motion Rigid Transformations.
Computing & Information Sciences Kansas State University Lecture 20 of 42 CIS 530 / 730 Artificial Intelligence Lecture 20 of 42 Introduction to Classical.
Animation Following “Advanced Animation and Rendering Techniques” (chapter 15+16) By Agata Przybyszewska.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
3D Kinematics Eric Whitman 1/24/2010. Rigid Body State: 2D p.
3D Coordinate Systems and Transformations Revision 1
3D orientation.
Kinematics. ILE5030 Computer Animation and Special Effects2 Kinematics The branch of mechanics concerned with the motions of objects without regard to.
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.
Midterm Review CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2004.
Rotation representation and Interpolation
Orientations Goal: –Convenient representation of orientation of objects & characters in a scene Applications to: – inverse kinematics –rigid body simulation.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Technical Background.
CS 445 / 645 Introduction to Computer Graphics Lecture 21 Representing Rotations Lecture 21 Representing Rotations.
Lecture Fall 2001 Computer Animation Fundamentals Animation Methods Keyframing Interpolation Kinematics Inverse Kinematics.
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.
Computer Vision Group Prof. Daniel Cremers Autonomous Navigation for Flying Robots Lecture 3.1: 3D Geometry Jürgen Sturm Technische Universität München.
1 Kinematics ( 運動學 ) Primer Jyun-Ming Chen Fall 2009.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 28 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 24 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Advanced CG 1 of 8: TexturingCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
Visualizing Orientation using Quaternions Gideon Ariel; Rudolf Buijs; Ann Penny; Sun Chung.
Game Physics – Part IV Moving to 3D
3D Kinematics Consists of two parts 3D rotation 3D translation  The same as 2D 3D rotation is more complicated than 2D rotation (restricted to z- axis)
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Monday, 26 January 2004 William H. Hsu Department of.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, January 19, 2000 William H. Hsu Department.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 6 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 7 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 22 of 41 William H. Hsu Department of Computing.
CS 450: COMPUTER GRAPHICS QUATERNIONS SPRING 2015 DR. MICHAEL J. REALE.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 17 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 21 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Lecture 27 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 27 of 42 Wednesday, 02.
3D Computer Graphics An oh so brief introduction.
Rotations and Translations
Rick Parent - CIS681 ORIENTATION Use Quaternions Interpolating rotations is difficult.
1 CS 430/536 Computer Graphics I 3D Transformations World Window to Viewport Transformation Week 2, Lecture 4 David Breen, William Regli and Maxim Peysakhov.
Computing & Information Sciences Kansas State University Lecture 15 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 15 of 42 William H. Hsu.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 3 of 41 William H. Hsu Department of Computing.
Kinematics Jehee Lee Seoul National University. Kinematics How to animate skeletons (articulated figures) Kinematics is the study of motion without regard.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
Rotation and Orientation: Fundamentals Jehee Lee Seoul National University.
Computing & Information Sciences Kansas State University Lecture 8 of 42 CIS 530 / 730 Artificial Intelligence Lecture 8 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 9 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Lecture 40 of 42 CIS 530 / 730 Artificial Intelligence Lecture 40 of 42 A Brief Survey of Computer.
CS 551/645 Fall 2000 Parameterized Rotations, Curves, and Surfaces.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 William H. Hsu Department of Computing.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Chapter 2: Description of position and orientation Faculty of Engineering - Mechanical Engineering Department ROBOTICS Outline: Introduction. Descriptions:
Computing & Information Sciences Kansas State University Monday, 23 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 25 of 42 Monday, 23 October.
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 24 of 42 Friday, 20 October.
Computing & Information Sciences Kansas State University Advanced CG 2 of 8: MappingsCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
1 Dr. Scott Schaefer Quaternions and Complex Numbers.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Friday, January 21, 2000 William H. Hsu Department.
REFERENCE: QUATERNIONS/ Ogre Transformations.
Computing & Information Sciences Kansas State University Wednesday, 25 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 26 of 42 Wednesday. 25 October.
Character Animation Forward and Inverse Kinematics
Computer Animation Algorithms and Techniques
CPSC 641: Computer Graphics Rotation Representation and Interpolation
CS 445 / 645 Introduction to Computer Graphics
3D Kinematics Consists of two parts
COMPUTER GRAPHICS CHAPTERS CS 482 – Fall 2017 TRANSFORMATIONS
UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN
Rotation and Orientation: Fundamentals
Presentation transcript:

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course pages: / Public mirror web site: Instructor home page: Readings: Today: Chapter 10, 13, §17.3 – 17.5, Eberly 2 e – see Next class: §2.4.3, 8.1, Eberly 2 e, GL handout Wikipedia, Visualization: Wikipedia on quaternions: Reference: Ogre Wiki quaternion primer – More Rotations; Visualization, Simulation Videos 4: Virtual & Augmented Reality, Viz-Sim Lecture 23 of 41

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Reading for Last Class: §17.1 – 17.2, Eberly 2 e Reading for Today: Chapter 10, 13, §17.3 – 17.5, Eberly 2 e Reading for Next Class: §2.4.3, 8.1, Eberly 2 e, GL handout Last Time: Rotations in Animation  Flight dynamics: roll, pitch, yaw  Matrix, angles (fixed, Euler, axis), quaternions, exponential maps Quaternions Concluded  How quaternions work – properties (review)  Equivalent rotation matrix (RM)  Quaternion arithmetic  Composition of rotations by quaternion multiplication  Advantage: easy incremental rotation; camera, character animation Today: Intro to Visualization, Modeling & Simulation  Virtual reality (VR), virtual environments (VE)  Augmented reality (AR) Lecture Outline

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Where We Are

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Steve Rotenberg Visiting Lecturer Graphics Lab University of California – San Diego CEO/Chief Scientist, PixelActive Acknowledgements: CGA Rotations, Dynamics & Kinematics David C. Brogan Visiting Assistant Professor, Computer Science Department, University of Virginia Susquehanna International Group (SIG) Rick Parent Professor Department of Computer Science and Engineering Ohio State University

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics, Review [1]: Representing 3 Rotational DOFs

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Review [2]: Method 1 Rotation Matrices – Roll, Pitch, & Yaw Adapted from slides © 2007 – 2011 R. Parent, Ohio State University CSE 682 (Computer Animation), CSE 683/684A (Computer Animation Algorithms & Techniques), Rotation about x axis (Roll) Rotation about y axis (Pitch) Rotation about z axis (Yaw) © 2006 Wikipedia, Flight Dynamics x y z

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Review [3]: Method 2 Fixed Angles & Gimbal Lock Adapted from slides © 2007 – 2011 R. Parent, Ohio State University CSE 682 (Computer Animation), CSE 683/684A (Computer Animation Algorithms & Techniques), Anticz.com © 2001 M. Brown

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Gimbal Lock Illustrated [1] Anticz.com © 2001 M. Brown Gimbal Lock: Loss of DOF when 2 of 3 Gimbals Driven until Parallel Animated Examples  e.g., x & z (left), y & z (right)  Caution: Seefeld (right) refers to these as “x” (red) & z (blue)  y (Pitch) = “x”, x (Roll) = “y”, z (Yaw) = “z” (“zed”) © 2007 S. Seefeld

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Gimbal Lock Illustrated [2] Gimbals: 2 of 3 Driven into Parallel Configuration Happens With Euler Angles Too: (Wikipedia) Solution Approaches  Extra gimbal  Quaternions: Gimbal Lock figure © 2006 Wikipedia (Rendered using POV-Ray) Left: not locked Right: x & z rotations locked (roll & pitch, no yaw) Gimbal Lock figures © 2009 Wikipedia

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics, Review [4]: Method 3 Euler Angles & Order Independence

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Review [5]: Euler Angle Sequences Adapted from slides © 2004 – 2005 S. Rotenberg, UCSD CSE169: Computer Animation, Winter 2005,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Using Euler Angles [1]: Representing Orientations Adapted from slides © 2004 – 2005 S. Rotenberg, UCSD CSE169: Computer Animation, Winter 2005,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Using Euler Angles [2]: Conversion: Euler Angle to RM Adapted from slides © 2004 – 2005 S. Rotenberg, UCSD CSE169: Computer Animation, Winter 2005,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics, Review [6]: Method 4 Axis-Angle: Specification Given r – vector in space to rotate n – unit-length axis in space about which to rotate  –amount about n to rotate Solve r’ – rotated vector r r’ n

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Review [7]: Method 5 Quaternions to RM, Axis-Angle Adapted from slides © 2007 – 2011 R. Parent, Ohio State University CSE 682 (Computer Animation), CSE 683/684A (Computer Animation Algorithms & Techniques),

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics, Quaternions [1]: Basic Idea

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Quaternions [2]: Definition Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Quaternions [3]: Equivalent RM & Composition Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Quaternions [4]: Examples Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Quaternions [5]: Interpolation Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics, Hint: see

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Quaternions [6]: Spherical Linear Interpolation (SLERP) Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Quaternions [7]: Comparison with Euler Interpolation Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Quaternions [8]: Code Adapted from slides © 2000 – 2004 D. Brogan, University of Virginia CS 445/645, Introduction to Computer Graphics, Gamasutra (1998): Nate Robins’s Implementation:  File gltb.c  gltbMatrix  gltbMotion

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Spherical Interpolation [1]: Spheres Adapted from slides © 2004 – 2005 S. Rotenberg, UCSD CSE169: Computer Animation, Winter 2005,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Spherical Interpolation [2]: Hyperspheres Adapted from slides © 2004 – 2005 S. Rotenberg, UCSD CSE169: Computer Animation, Winter 2005,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Review [8]: Dynamics & Kinematics Dynamics: Study of Motion & Changes in Motion  Forward: model forces over time to find state, e.g.,  Given: initial position p 0, velocity v 0, gravitational constants  Calculate: position p t at time t  Inverse: given state and constraints, calculate forces, e.g.,  Given: desired position p t at time t, gravitational constants  Calculate: position p 0, velocity v 0 needed  Wikipedia: (see also: “Analytical dynamics”)  For non-particle objects: rigid-body dynamics ( Kinematics: Study of Motion without Regard to Causative Forces  Modeling systems – e.g., articulated figure  Forward: from angles to position (  Inverse: finding angles given desired position (  Wikipedia: Forward Kinematics © 2009 Wikipedia

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Visualization [1]: Animating Simulations 132-day simulation using 2010 conditions © 2010 National Center for Supercomputing Applications (NCSA) Wilhelmson et al. (2004) Deepwater Horizon Oil Spill (20 Apr 2010) day images © 2010 NOAA, day simulation using 06 Apr 1996 weather conditions 120-day simulation using 15 Apr 1993 weather conditions 120-day simulation using 17 Apr 1997 weather conditions

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Virtual Reality: Computer-Simulated Environments Physical Presence: Real & Imaginary Hardware: User Interface  Head-mounted display (HMD), gloves – see PopOptics goggles (left)  VR glasses, wand, etc. – see NCSA CAVE (right) Visualization [2]: Virtual Reality (VR) Virtual Reality, Wikipedia: Image © 2007 National Air & Space Museum CAVE (Cave Automatic Virtual Environment) Image © 2009 D. Pape HowStuffWorks article: © 2009 J. Stricklandhttp://bit.ly/feQxNK Wikipedia:

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Visualization [3]: Virtual Environments (VE) Experientia © 2006 M. Vanderbeeken et al., Second Life © 2003 – 2011 Linden Labs, Inc., Image © 2006 Philips Design Virtual Environment: Part of Virtual Reality Experience Other Parts  Virtual artifacts (VA): simulated objects –  Intelligent agents, artificial & real – We Are Arcade © 2011 D. Grossett et al., World of Warcraft: Cataclysm review © 2011 J. Greer, World of Warcraft © 2001 – 2011 Blizzard Entertainment, Inc.,

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Visualization [4]: Augmented Reality (AR) “40 Best Augmented Reality iPhone Applications”, © 2010 iPhoneNess.com, MyNav © 2010 Winfield & Co. Wikipedia, Google Goggles: Augmented Reality: Computer-Generated (CG) Sensory Overlay Added to Physical, Real-World Environment Bing Maps © 2010 – 2011 Microsoft Corporation © 2010 TED Talks

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Summary Reading for Last Class: §17.1 – 17.2, Eberly 2 e Reading for Today: Chapter 10, 13, §17.3 – 17.5, Eberly 2 e Reading for Next Class: §2.4.3, 8.1, Eberly 2 e, GL handout Last Time: Rotations in Animation  Matrix, fixed angles, Euler angles, axis  Quaternions & how they work – properties, arithmetic operations  Gimbal lock defined & illustrated Quaternions Concluded  Incremental rotation: spherical linear interpolation (slerping)  Advantages of slerping vs. cubic interpolation between Euler angles  Uses: character animation, camera control (rotating Look vector) Dynamics & Kinematics (Preview of Lectures 28 – 30) Today: Modeling & Simulation  Virtual / augmented reality (VR/AR) & virtual environments (VE)  Visualization & simulation (Viz-Sim) preview

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 Terminology Last Time: Rotation using Matrices, Fixed Angles, Euler Angles Gimbal Lock  Loss of DOF  Reference (© 2007 S. Seefield): Axis-Angle – Rotate Reference Vector r about Arbitrary Axis (Vector) A/n Quaternions  Quaternions – different representation of arbitrary rotation  Exponential maps – 3-D representation related to quaternions Visualization – Communicating with Images, Diagrams, Animations Simulation – Artificial Model of Real Process for Answering Questions VR, VE, VA, AR  Virtual Reality: computer-simulated environments, objects  Virtual Environment: part of VR dealing with surroundings  Virtual Artifacts: part of VR dealing with simulated objects  Augmented Reality: CG sensory overlay on real-world images