1 Animation & Java3D ©Anthony Steed 2002. 2 Overview n Introduction to Animation Kinematics Dynamics Boids n Java3D Scene graph Animation Vehicles.

Slides:



Advertisements
Similar presentations
Animation Marco Gillies. Computer Animation Making things move A key aspect of computer graphics Non-realtime for films Realtime for virtual worlds and.
Advertisements

Animating Speed Position and Orientation Presented by Kailash Sawant Hemanth Krishnamachari.
Beams and Frames.
Animation Following “Advanced Animation and Rendering Techniques” (chapter 15+16) By Agata Przybyszewska.
3D Graphics for Game Programming (J. Han) Chapter XI Character Animation.
CSCE 641: Forward kinematics and inverse kinematics Jinxiang Chai.
Particle Systems 1 Adapted from: E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012.
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 24: Animation Many slides courtesy Adam Finkelstein,
Lecture21 Other Java Gamming technologies – Java3D (This lecture will not be assessed)
1 7M836 Animation & Rendering Animation Jakob Beetz Joran Jessurun
UNC Chapel Hill M. C. Lin Reading Assignments Principles of Traditional Animation Applied to 3D Computer Animation, by J. Lasseter, Proc. of ACM SIGGRAPH.
CSCE 641: Forward kinematics and inverse kinematics Jinxiang Chai.
Rotational Kinematics
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
CSCE 689: Forward Kinematics and Inverse Kinematics
Animation. Outline  Key frame animation  Hierarchical animation  Inverse kinematics.
Introduction to Java3D 1 3D-Pool Game Simulator CS491B Aslan Neishaboori.
Animation CMSC 435/634. Keyframe Animation From hand drawn animation – Lead animator draws poses at key frames – Inbetweener draws frames between keys.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
INTRODUCTION TO DYNAMICS ANALYSIS OF ROBOTS (Part 5)
Computer Animation Thesis “brief” Vic, CS 288, 10/22/98.
Basic 3D Graphics Chapter 5. Bird’s Eye View  Basic 3D Graphics –Basic concepts of 3D graphics, rendering pipeline, Java 3D programming, scene graph,
1 7M836 Animation & Rendering Animation Jakob Beetz Joran Jessurun
Definition of an Industrial Robot
Java ME & Blackberry APIs for Game Dev Week III. Overview Java 2D API Java 3D API SVG Blackberry APIs
College of Physics Science & Technology YANGZHOU UNIVERSITYCHINA Chapter 11ROTATION 11.1 The Motion of Rigid Bodies Rigid bodies A rigid body is.
Java3D Overview Scene graph Java 3D classes Describing objects Groups, transforms Behaviors, interpolators Lighting.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 8 This presentation © 2004, MacAvon Media Productions Animation.
Lecture 2: Introduction to Concepts in Robotics
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Introduction to Advanced Animation Types of animation Low Level Control (a start) (Ch. 15) We’re.
Chapter 10 Rotational Kinematics and Energy. Units of Chapter 10 Angular Position, Velocity, and Acceleration Rotational Kinematics Connections Between.
CSC418 Computer Graphics n Animation Principles n Keyframe Animation.
 The creation of moving pictures one frame at a time Literally 'to bring to life' e.g. make a sequence of drawings on paper, in which a character's position.
CSCE 441: Computer Graphics Forward/Inverse kinematics Jinxiang Chai.
CLASS 10 SCENE GRAPHS BASIC ANIMATION CS770/870. A scene Graph A data structure to hold components of a scene Usually a Tree of a Directed Acyclic Graph.
Character Setup In addition to rigging for character models, rigging artists are also responsible for setting up animation controls for anything that is.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Computer Animation 고려대학교 컴퓨터 그래픽스 연구실.
Interface Opportunities for 3D Data and Media User Interface Software TechNote Panel Virginia Tech CS Fall 2002 Nicholas F. Polys Umur Yilmaz Will Lee.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
1cs426-winter-2008 Notes  Will add references to splines on web page.
Java 3D Web Apps and Services. Presentation Overview l Java3D Overview l Software l Java3D API l Scene Graph Programming Model l Java3D Terminology l.
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 11 Animation.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 9.
Robotics II Copyright Martin P. Aalund, Ph.D.
INTRODUCTION TO DYNAMICS ANALYSIS OF ROBOTS (Part 4)
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 5 Basic 3D Graphics.
Computer Graphics Chapter 12 Computer Animation.
1cs426-winter-2008 Notes. 2 Kinematics  The study of how things move  Usually boils down to describing the motion of articulated rigid figures Things.
CSCE 441: Computer Graphics Forward/Inverse kinematics Jinxiang Chai.
Particle Kinematics Direction of velocity vector is parallel to path Magnitude of velocity vector is distance traveled / time Inertial frame – non accelerating,
Procedural Animation.
Physically-Based Motion Synthesis in Computer Graphics
Computer Graphics.
Done already for your convenience!
Character Animation Forward and Inverse Kinematics
Simulation Analysis: Estimating Joint Loads
Computer Animation cgvr.korea.ac.kr.
Graphical Analysis Of Motion
Reading Assignments Principles of Traditional Animation Applied to 3D Computer Animation, by J. Lasseter, Proc. of ACM SIGGRAPH 1987 Computer Animation:
Hierarchical and Object-Oriented Graphics
Rotational Kinematics and Energy
CSCE 441: Computer Graphics Forward/Inverse kinematics
Hierarchical and Object-Oriented Graphics
Prepared by: Engr . Syed Atir Iftikhar
UMBC Graphics for Games
Hierarchical Modeling & Constructive Solid Geometry
Synthesis of Motion from Simple Animations
Computer Graphics Lecture 15.
Special English for Industrial Robot
Chapter 4 . Trajectory planning and Inverse kinematics
Presentation transcript:

1 Animation & Java3D ©Anthony Steed 2002

2 Overview n Introduction to Animation Kinematics Dynamics Boids n Java3D Scene graph Animation Vehicles

3 Animation n Kinematics Position, velocity and acceleration only n Dynamics Based on forces, masses

4 Kinematics n Two forms Forward – specify each joint in hierarchy by hand Inverse – specify position of end-effector and compute joint steps

5 Forward Kinematics n Two joints S and E can be rotated. n End position is determined by rotational angle of S and E n Point p can be calculated from the matrices SE (and H, B which are fixed) S E p

6 Inverse Kinematics n End effector (point p) is specified n E and S must be calculated n This is simple in this situation S E p

7 Inverse Kinematics n For complex situations where more degrees of freedom in joints that required to specify p n Solve using a non- linear optimiser and further constraints Energy minimisation p

8 Kinematics n Key-framing Specify transformations of individual joints or transformation of end-effectors at fixed points (key-frames) Interpolate between them n Interpolation Linear interpolation will look jerky, so use a spline interpolation

9 Dynamics n Solve for a set of forces acting on a number of bodies n Discrete time-step integration Car dynamics Human gait patterns Boids

10 Boids n Boids Avoid each other Head in the same direction Gravitate towards each other n Emergent behaviour is very complex

11 Avoid Close Neighbours

12 Head Toward Centre of Group

13 Turn Towards Group Direction

14 In Code n For each boid Keep position and velocity n On each frame for group Find centre Find average velocity n On each frame for each boid Forces are –Attraction towards centre –Attraction towards average velocity –Repulse neighbours Calculate new velocity Calculate new position

15 Java3D Summary n Java3D is a 3D API for Java n Broad support across 3D graphics layers immediate mode rendering through to HMD and free space tracker support n No built-in support for any file format Limited VRML97 file reader available promised in near future n Not 100% Pure Java (currently) relies on native bindings to graphics library for acceptable speed

16 Nodes n Similar basic components to VRML Geometry, Attributes, Groups, Sounds n Super-structure Canvas3D, View, VirtualUniverse, Locale n Behaviors Scheduling bound - scope for action potential WakeUpConditions - triggers for behaviour –time / frames elapsed n Input Devices

17 Scene Graph Actions n Designed so that parts of scene graph can be compiled to lower layers n Capability bits determine access to internals of scene graph n Support for copying scene graphs n Supports immediate mode rendering n pre/postRender for background/overlay graphics

18 Example - Boid Set Scene Graph RunTime Calls Event Source Boid Boid Boid Locale BoidSet(BranchGroup) FlockBehaviour (Behavior) WakeupOnFramesElapsed(0) setTransform

19 Example - Boid Scene Graph Run Time Call Reference Boid (TransformGroup) Morph FlapBehaviour (Behavior) WakeupOnTransformChanged Shape Shape Shape Alpha TriangleArray TriangleArray TriangleArray

20 Recap n Kinematics Motion independent of force Used in “traditional” key-frame animation n Dynamics Boids n Java3D Scene graph