Unity3D Animation. The Animation System supports –animation blending, –mixing, –additive animations, –walk cycle time synchronization, –animation layers,

Slides:



Advertisements
Similar presentations
Animation in Video Games presented by Jason Gregory
Advertisements

Animation Parenting 1Copyright © Texas Education Agency, All rights reserved. Images and other multimedia content used with permission.
Blending & State Machines CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005.
1 Characters. 2Introduction The Characters are the Actors of the Games. The Characters are the Actors of the Games. Three Types of Characters : Three.
Animation Following “Advanced Animation and Rendering Techniques” (chapter 15+16) By Agata Przybyszewska.
3D Graphics for Game Programming (J. Han) Chapter XI Character Animation.
Character Setup Character Setup is the process of creating handles and controls for anything that a character animator will need to adjust in order to.
3D Game Programming All in One By Kenneth C. Finney.
Animating With Blender Topics: Making a skeleton. Making a skeleton. Attaching the skeleton to your model. Attaching the skeleton to your model. Posing.
3D Flight Simulator for CE Balaban Nir Lander Shiran Supervisor: Futerman Yan.
Character Animation CSE 191A: Seminar on Video Game Programming Lecture 5: Character Animation UCSD, Spring, 2003 Instructor: Steve Rotenberg.
UFCEKT-20-33D Modelling and Animation 3D Modelling & Animation Character Animation: Skeletons and Joints.
Midterm Review CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2004.
Week 4 Lecture 3: Character Animation Based on Interactive Computer Graphics (Angel) - Chapter 10 1 Angel: Interactive Computer Graphics 5E © Addison-Wesley.
3D Models, Textures and Bone Animations for Games.
Characters.
Chapter 5.2 Character Animation. CS Overview Fundamental Concepts Animation Storage Playing Animations Blending Animations Motion Extraction Mesh.
MrsBillinghurst. net A2 Computing A2 Computing Projects Game Animation in Pascal.
Computer Graphics Group Tobias Weyand Mesh-Based Inverse Kinematics Sumner et al 2005 presented by Tobias Weyand.
Tutorial 5 Making a Document Interactive. XP Objectives Explore the different button states Add a button from the Buttons library Edit a button instance.
Chapter 11 Adding Sound and Video. Chapter 11 Lessons 1.Work with sound 2.Specify synchronization options 3.Modify sounds 4.Use ActionScript with sound.
Course Introduction CSIS 5835: Graphics and Animation for Gaming.
1 Lecture 2 Animation References: [1] Gregory Junker, Pro OGRE 3D Programming, Apress, 2006 [2] Ogre Tutorials – Ogre Wiki
Key Terms: - also see NottsPF assets/production/tech/CW2_AnimationGlossary.pptx Aim Pose Also known as UBIKS or Aim Screen An animation - of 9 key poses.
© 2012 Adobe Systems Incorporated. All Rights Reserved. Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® INTRODUCTION TO FLASH ANIMATION.
Main Navigation  Similar to Unity 3D  Unlike Unity it is a right handed coordinate system  Used to determines whether a positive rotation is clockwise.
Passage Three Multimedia Application. Training target: In this part , you should try your best to form good reading habits. In order to avoid your ill.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Kinematic Linkages.
Character Animation for Realtime Applications Michael Putz Klaus Hufnagl Institute of Computer Graphics Graz University of Technology Austria.
3D Animation 5. Character Animation Dr. Ashraf Y. Maghari Information Technology Islamic University of Gaza Ref. Book: The Art of Maya.
Character Animation. Contents Keyframe animation Mocap Smooth skin by vertex blending Rigging & retargeting Gait analysis (Ragdoll physics) Fall
Learning Unity. Getting Unity
Maths & Technologies for Games Animation: Practicalities CO3303 Week 3.
Multimedia System and Networking UTD Slide- 1 University of Texas at Dallas B. Prabhakaran Rigging.
LIFESTUDIO:LIPSYNC Plug-In for Maya Quick Tour (Optimized for Microsoft Internet Explorer; may have problems in other browsers)
Games Development 2 Entity Update & Rendering CO3301 Week 2, Part 1.
Adobe Flash Professional CS5 – Illustrated Unit D: Creating Animation.
1cs426-winter-2008 Notes  Will add references to splines on web page.
Tutorial 3 Creating Animations. XP Objectives Learn the different elements of animation Create frames and layers Organize frames and layers using the.
CS 450: COMPUTER GRAPHICS ANIMATION SPRING 2015 DR. MICHAEL J. REALE.
Skeletal Animation and Skinning A (hardware friendly) software approach By: Brandon Furtwangler.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Sound and Video.
Chapter 6.7 Animation. 2 Overview When to use animation Feedback to player about interaction with UI and in-game action Communicating environmental* conditions.
Inverse Kinematics CSIS 5838: Graphics and Animation for Gaming.
Computer Animation in Games For The Phoenix IEEE Society Wednesday, November 4, 2009 Ryan Anderson Senior Technology Engineer Rainbow Studios.
06/11/04 SRB ILP Presentation P.Moffitt RT Character Rigging Presented By: Kyle Simmons.
2014 Animation Programming for Music Video Games Jessica Scott Harmonix Music Systems, Inc. October 10, 2014 #GHC
CGDD 4003 Character Animation. The Skeletal Hierarchy (aka the “rig”) Based on the concept of bones Each bone has exactly one parent Each bone has a transform.
Object Animation CMT3317. Do you need to do animation? We consider ways of animating composite objects – that have a number of different parts e.g. a.
Computer Graphics Imaging Ying Zhu Georgia State University Lecture 19 and 20 Character Animation with Armature.
Unity 3D Rolfe Bozier 24-Apr-2017
Quick Intro to Unity Lecture 2.
Character Rigging for Animation in Maya
Software Engineering and Game Development
Computer Animation Ying Zhu Georgia State University
Adding Buttons, Actions, and Sounds
Chapter 6.7 Animation.
Bones Skeletal Unity-2D How & When
Game Development Unity3D.
Chapter 6.7 Animation.
Physics in Games David: Overview of Physics in Games
Flicker Free Animation Using Vray
Chapter XIII Character Animation
INTRODUCTION TO FLASH ANIMATION
More programming with "Processing"
UMBC Graphics for Games
Computer Graphics Practical Lesson 7
Emir Zeylan Stylianos Filippou
2.02D Computer Animation Software and Design Guidelines
Presentation transcript:

Unity3D Animation

The Animation System supports –animation blending, –mixing, –additive animations, –walk cycle time synchronization, –animation layers, –control over all aspects of the animation playback (time, speed, blend-weights), –mesh skinning with 1, 2 or 4 bones per vertex as well as supporting physically based rag-dolls and procedural animation.

AnimationClip Stores keyframe based animations. length Animation length in seconds (Read Only)length frameRate Frame rate at which keyframes are sampled (Read Only)frameRate wrapMode Sets the default wrap mode used in the animation state.wrapMode

WrapMode Once –When time reaches the end of the animation clip, the clip will automatically stop playing. Loop –When time reaches the end of the animation clip, time will continue at the beginning. PingPong –When time reaches the end of the animation clip, time will ping pong back between beginning and end. Default –Reads the default repeat mode set higher up. ClampForever –Plays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing.

AnimationState In most cases the Animation interface is sufficient and easier to use.Animation Variables –enabled Enables / disables the animation.enabled –weight The weight of animationweight –wrapMode Wrapping mode of the animation.wrapMode –time The current time of the animationtime –normalizedTime The normalized time of the animation.normalizedTime –speed The playback speed of the animation. 1 is normal playback speed.speed –normalizedSpeed The normalized playback speed.normalizedSpeed –length The length of the animation clip in seconds.length –layer The layer of the animation. When calculating the final blend weights, animations in higher layers will get their weightslayer –clip The clip that is being played by this animation state.clip –name The name of the animationname –blendMode Which blend mode should be used?blendMode

Animation Blending Void Update() { If(Input.GetAxis(“Vertical”) > 0.2f) { animation.CrossFade(“walk”); }else { animation.CrossFade(“idle”); }

Animation Layers Void Start () { animation.wrapMode = WrapMode.Loop; animation["shoot"].wrapMode = WrapMode.Once; animation["shoot"].layer = 1; animation.Stop(); }

Animation Mixing void Start () { Transform mixTransform; mixTransform = transform.Find("root/upper_body/left_shoulder"); animation["wave_hand"].AddMixingTransform(mixTransform); }

Using Animation Events function PrintFloat (theValue : float) { Debug.Log ("PrintFloat is called with a value of " + theValue); } 1 2 3

Additive Animation Example private var leanLeft : AnimationState; private var leanRight : AnimationState; function Start () { leanLeft = animation["leanLeft"]; leanRight = animation["leanRight"]; leanLeft.layer = 10; leanRight.layer = 10; leanLeft.blendMode = AnimationBlendMode.Additive; leanRight.blendMode = AnimationBlendMode.Additive; // 하략 } function Update () { var lean = Input.GetAxis("Horizontal"); leanLeft.normalizedTime = -lean; leanRight.normalizedTime = lean; }

Modeling Optimized Characters Use one Skinned Mesh Renderer –Your character should use only a single skinned mesh renderer.skinned mesh renderer Don't Use Many Materials –You also want to keep the number of materials on that mesh as low as possible.materials Reduce Amount of Bones –Medium Desktop games use bone hierarchies with bones. The fewer bones you use the faster; with 30 bones you can achieve very good quality on Desktop platforms and fairly good quality on Mobile Platforms.. Polygon Count –How many polygons you should use depends on the quality you require and the platform you are targeting. Anything between triangles on Mobile Platforms and triangles on Desktop Platforms is reasonable. Separate Out IK and FK –Separate out inverse kinematics (IK) and forward kinematics (FK). When animations are imported, the IK nodes are baked into FK, thus Unity doesn't need the IK nodes at all. Use Reusable Rigs –Create a rig which you can reuse. This allows you to share animations between different characters. Name Bones Correctly –Name the bones correctly (left hip, left ankle, left foot etc.). Especially with characters, naming your bones correctly is very important.

Quality