University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.

Slides:



Advertisements
Similar presentations
Using GLU/GLUT Objects GLU/GLUT provides very simple object primitives glutWireCube glutWireCone gluCylinder glutWireTeapot.
Advertisements

3D Graphics for Game Programming (J. Han) Chapter XI Character Animation.
Hierarchical Modeling I Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Transformations Objectives Understand how transformations work in 2D and 3D Understand the concept of homogenous coordinate system Understand scene graphs.
Hierarchical Modeling II Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2008 Tamara Munzner Transformations III Week.
Graphical Objects and Scene Graphs CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
CSC 123 – Animating characters Hierarchical modeling Zoë Wood.
2IV60 Computer Graphics 2D transformations
2D Transformations. World Coordinates Translate Rotate Scale Viewport Transforms Hierarchical Model Transforms Putting it all together.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
Geometric Objects and Transformations Geometric Entities Representation vs. Reference System Geometric ADT (Abstract Data Types)
Hierarchical Transformations Hierarchical Models Scene Graphs
Computer Graphics Bing-Yu Chen National Taiwan University.
Hierarchy, Modeling, and Scene Graphs Angel: Chapter 10 OpenGL Programming and Reference Guides, other sources. ppt from Angel, AW, etc. CSCI 6360/4360.
COMP 175: Computer Graphics March 10, 2015
Objectives Review some advanced topics, including Review some advanced topics, including Chapter 8: Implementation Chapter 8: Implementation Chapter 9:
C O M P U T E R G R A P H I C S Stuff CMSC 435 / 634 Transformations 1/29 Geometric Transformations Readings: Chapters 5-6.
Graphical Objects and Scene Graphs 1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009.
Demetriou/Loizidou – ACSC330 – Chapter 9 Hierarchical and Object-Oriented Modeling Dr. Giorgos A. Demetriou Dr. Stephania Loizidou Himona Computer Science.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Kinematic Linkages.
Week 4 Lecture 1: Hierarchical Modeling Part 1 Based on Interactive Computer Graphics (Angel) - Chapter 10 1 Angel: Interactive Computer Graphics 5E ©
Hierarchical Modeling. Instance Transformation Start with a prototype object (a symbol) Each appearance of the object in the model is an instance – Must.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 40 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 40 Computer Graphics Hierarchy I.
CS559: Computer Graphics Lecture 15: Hierarchical Modeling and Shading Li Zhang Spring 2008.
Geometric Objects and Transformation
Kinematics Jehee Lee Seoul National University. Kinematics How to animate skeletons (articulated figures) Kinematics is the study of motion without regard.
CS-378: Game Technology Lecture #13: Animation Prof. Okan Arikan University of Texas, Austin Thanks to James O’Brien, Steve Chenney, Zoran Popovic, Jessica.
Jul 25, 2014IAT 3551 Scene Graphs.  A data structure that stores information about a graphics scene –Each node has information that structures the interpretation.
111/16/ :14 UML Instance Transformation x y z x y z x y z x y z SRT Model Coordinates.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Hierarchical and Object-Oriented Graphics Construct complex models from a set of simple geometric objects Extend the use of transformations to include.
Transformations Tutorial
1/50 CS148: Introduction to Computer Graphics and Imaging Transforms CS148: Introduction to Computer Graphics and Imaging Transforms.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Computer Graphics I, Fall 2008 Hierarchical Modeling II.
CS 450: COMPUTER GRAPHICS ANIMATION SPRING 2015 DR. MICHAEL J. REALE.
Models & Hierarchies CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
David Luebke1/10/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 9.
Geometric Transformations Sang Il Park Sejong University Many slides come from Jehee Lee’s.
In the name of God Computer Graphics. Introduction Modeling techniques modeling techniques managements Some renderings.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Hierarchical Modeling.
Graphical Objects and Scene Graphs Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Hierarchical Modeling. 2 Objectives Build a tree-structured model of a humanoid figure. Examine various traversal strategies. Build a generalized tree-model.
1cs426-winter-2008 Notes. 2 Kinematics  The study of how things move  Usually boils down to describing the motion of articulated rigid figures Things.
CS559: Computer Graphics Lecture 12: OpenGL - Transformation Li Zhang Spring 2008.
CS559: Computer Graphics Lecture 13: Hierarchical Modeling and Curves Li Zhang Spring 2010.
Computer Graphics I, Fall 2008 Hierarchical Modeling I.
Graphics Programming. Graphics Functions We can think of the graphics system as a black box whose inputs are function calls from an application program;
CSCE 441: Computer Graphics: Hierarchical Models Jinxiang Chai.
Hierarchical Models Chapter 9.
IAT 355 Scene Graphs Feb 23, 2017 IAT 355.
Graphical Objects and Scene Graphs
Modeling and Hierarchy
Hierarchical Transformations Hierarchical Models Scene Graphs
Computer Graphics - Hierarchical Models-
Modeling and Hierarchy
Hierarchical and Object-Oriented Graphics
Introduction to Computer Graphics with WebGL
CSCE 441: Computer Graphics: Hierarchical Models
Hierarchical and Object-Oriented Graphics
Hierarchical Modeling I
Prepared by: Engr . Syed Atir Iftikhar
Hierarchical Modeling & Constructive Solid Geometry
Transformations III Week 3, Mon Jan 21
Transformations IV Week 3, Wed Jan 23
Dr. Chih-Kuo Yeh 葉智國 Computer Graphics Dr. Chih-Kuo Yeh 葉智國
Hierarchical Modeling
CSCE 441: Computer Graphics: Hierarchical Models
Presentation transcript:

University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012

What’s a 3d engine OGRE Core Class Structure University of Texas at Austin CS 378 – Game Technology Don Fussell 2

What are the objects? Geometry - polygon (triangle, quad) meshes University of Texas at Austin CS 378 – Game Technology Don Fussell 3

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 4 Hierarchical Modeling How can you make articulated characters move in the world? Move the whole character wrt the world Move legs, arms, head wrt body Move hands wrt arms Move upper vs. lower arm Same for legs

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 5 Symbols and instances Most graphics APIs support a few geometric primitives: spheres cubes triangles These symbols are instanced using an instance transformation.

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 6 Use a series of transformations Ultimately, a particular geometric instance is transformed by one combined transformation matrix: But it ’ s convenient to build this single matrix from a series of simpler transformations: We have to be careful about how we think about composing these transformations. (Mathematical reason: Transformation matrices don ’ t commute under matrix multiplication)

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 7 Connecting primitives

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 8 3D Example: A robot arm Consider this robot arm with 3 degrees of freedom: Base rotates about its vertical axis by  Upper arm rotates in its xy-plane by  Lower arm rotates in its xy-plane by  Q: What matrix do we use to transform the base? Q: What matrix for the upper arm? Q: What matrix for the lower arm? h1h1 h2h2 h3h3 Base Upper arm Lower arm

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 9 Hierarchical modeling Hierarchical models can be composed of instances using trees or DAGs: edges contain geometric transformations nodes contain geometry (and possibly drawing attributes) How might we draw the tree for the robot arm?

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 10 A complex example: human figure Q: What ’ s the most sensible way to traverse this tree?

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 11 Human figure implementation, OpenGL figure() { torso(); glPushMatrix(); glTranslate(... ); glRotate(... ); head(); glPopMatrix(); glPushMatrix(); glTranslate(... ); glRotate(... ); left_upper_arm(); glPushMatrix(); glTranslate(... ); glRotate(... ); left_lower_arm(); glPopMatrix();... }

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 12 Animation The above examples are called articulated models: rigid parts connected by joints They can be animated by specifying the joint angles (or other display parameters) as functions of time.

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 13 Key-frame animation The most common method for character animation in production is key-frame animation. Each joint specified at various key frames (not necessarily the same as other joints) System does interpolation or in-betweening Doing this well requires: A way of smoothly interpolating key frames: splines A good interactive system A lot of skill on the part of the animator

University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 14 Scene graphs The idea of hierarchical modeling can be extended to an entire scene, encompassing: many different objects lights camera position This is called a scene tree or scene graph. Camera Light1 Light2 Object2Object3 Scene Object1