Unity Animation. Objectives. Animation Overflow. Animation Clips and Animation View. Computer Graphics Section 2 ( )

Similar documents
ANIMATOR TIMELINE EDITOR FOR UNITY

Tangents. In this tutorial we are going to take a look at how tangents can affect an animation.

Auto Texture Tiling Tool

Very Animation Version 1.0.7

Exit: These control how the object exits the slide. For example, with the Fade animation the object will simply fade away.

Adding a Trigger to a Unity Animation Method #2

Auto Texture Tiling Tool

Working with the Dope Sheet Editor to speed up animation and reverse time.

Setting up A Basic Scene in Unity

The playhead, shown as a vertical red beam, passes each frame when a movie plays back, much like movie fi lm passing in front of a projector bulb.

Creating a 3D Characters Movement

How to work with temporal and spatial keyframe interpolation

Introduction to Keyframing Maya 2012

User manual for animation tools in Norah. User manual for animation tools in Norah

Flowmap Generator Reference

Game Design Unity Workshop

3dSprites. v

Downloaded from

Beginners Guide Maya. To be used next to Learning Maya 5 Foundation. 15 juni 2005 Clara Coepijn Raoul Franker

Motus Unitatis, an Animation Editor

Introduction to Flash - Creating a Motion Tween

LmÉPï C Á npï À ƵÀ ïì itech Analytic Solutions

Sliding and Rotating Objects. Appendix 1: Author s Notes

Adobe Premiere Elements Tutorial

Game Design Unity Workshop

Week 5: Assignment: Animation

Adobe Premiere. Just as Adobe Photoshop is

Movie Maker Tutorial created by Cheryl McKnight

Cláudia Ribeiro PHYSICS

Adobe Flash CS4 Part 3: Animation

Custom Heart-Shaped Wipe

Blender Animation Editors

Mobile Touch Floating Joysticks with Options version 1.1 (Unity Asset Store) by Kevin Blake

Adobe Premiere Pro CC 2015 Tutorial

Adobe Animate Basics

Windows Movie Maker 2 (aka MM2) Tutorial

Adobe Flash CS3 Reference Flash CS3 Application Window

Using Flash Animation Basics

HitFilm Express - Editing

Adobe Flash CS4 Part 4: Interactivity

IAT 445 Lab 10. Special Topics in Unity. Lanz Singbeil

Animation Charts 4. What is in the Animation Charts 4 Package?

Capstone Appendix. A guide to your lab computer software

This lesson will focus on the Bouncing Ball exercise.

Actions and Graphs in Blender - Week 8

MODELING AND HIERARCHY

Game Design Unity Workshop

MIXED REALITY (AR & VR) WITH UNITY 3D (Microsoft HoloLens)

Adobe Flash Course Syllabus

11 EDITING VIDEO. Lesson overview

Character Modeling COPYRIGHTED MATERIAL

Basic Waypoints Movement v1.0

Introducing Autodesk Maya Chapter 2: Jumping in Headfirst, with Both Feet!

Creating a Motion Stabilizer Effect

New Perspectives on PowerPoint Module 2: Adding Media and Special Effects

Autodesk Navisworks Freedom Quick Reference Guide

User InterfaceChapter1:

Review Questions FL Chapter 3: Working With Symbols and Interactivity

Animation Charts 4. What is in the Animation Charts 4 Package?

Keys for selecting tools

Insert a sound clip. Change animation sequence. Here are some tips for changing the order in which animations are sequenced on a slide.

Working with the BCC 2D Particles Filter

Unity Game Development

In this tutorial, you will create a scene with sandman dispersing in sand, as shown in in the image below.

Toon Boom Harmony Advanced V15.0

BCC Particle System Generator

Autodesk Inventor 6 Essentials Instructor Guide Chapter Four: Creating Placed Features Chapter Outline This chapter provides instruction on the follow

MIXED REALITY (AR & VR) WITH UNITY 3D (Microsoft HoloLens)

Workshop BOND UNIVERSITY Bachelor of Interactive Multimedia and Design Beginner Game Dev Character Control Building a character animation controller.

bcc pan and zoom filter description:

PowerPoint 2016 Advanced for Mac

GET FAMILIAR WITH WINDOWS MOVIE MAKER

Introduction to Mercury

Animating the Page IN THIS CHAPTER. Timelines and Frames

Shattering Mirror Effect

Cloth Simulations. 9.2 Physics - Cloth Simulations

Animation Basics. Learning Objectives

Avid FX Tutorials. Understanding the Tutorial Exercises

Flash offers a way to simplify your work, using symbols. A symbol can be

Chapter 3- Creating & Editing Objects

Animation Charts 3. What is in the Animation Charts 3 Package? Horse Gallop Cycle Side View

Adobe Premiere Pro CC 2018

FLASH ANIMATION TUTORIAL

Working with the BCC 3D Image Shatter Filter

animation, and what interface elements the Flash editor contains to help you create and control your animation.

Getting Started with. PowerPoint 2010

Animation: A Moving Experience

MotionGraphix. User Guide. Quick Start. Overview

Getting to Know PowerPoint. Use IT+

SolidWorks Motion Study Tutorial

Premiere Pro Desktop Layout (NeaseTV 2015 Layout)

Introduction. Using Shapes. Word 2010 Working with Shapes. Video: Working with Shapes in Word To Insert a Shape: Page 1

3.3.1 Editors - Animation

Dungeons+ Pack PBR VISIT FOR THE LATEST UPDATES, FORUMS, SCRIPT SAMPLES & MORE ASSETS.

Creating a Basic A/V presentation

How to apply and adjust video effects

Sequence settings for this project. Sequence settings for this project. source monitor. The Program Window: The Bin. The Sequence Window: The Timeline

Workshop BOND UNIVERSITY. Bachelor of Interactive Multimedia and Design. Asteroids

CS770/870 Spring 2017 Animation Basics

CS770/870 Spring 2017 Animation Basics

Transcription:

Unity Animation Objectives How to animate and work with imported animations. Animation Overflow Unity s animation system is based on the concept of Animation Clips, which contain information about how certain objects should change their position, rotation, or other properties over time. Each clip can be thought of as a single linear recording. Animation Clips are then organized into a structured flowchart-like system called an Animator Controller. The Animator Controller acts as a State Machine which keeps track of which clip should currently be playing, and when the animations should change or blend together. Unity s Animation system also has numerous special features for handling humanoid characters which give you the ability to retarget humanoid animation from any to your own character model, as well as adjusting muscle definitions. These special features are enabled by Unity s Avatar system, where humanoid characters are mapped to a common internal format. Each of these pieces - the Animation Clips, the Animator Controller, and the Avatar, are brought together on a GameObject via the Animator Component. This component has a reference to an Animator Controller, and (if required) the Avatar for this model. The Animator Controller, in turn, contains the references to the Animation Clips it uses. Animation Clips and Animation View The Animation Window in Unity allows you to create and modify Animation Clips directly inside Unity. In addition to animating movement, the editor also allows you to Animate variables of materials and components. Augment your Animation Clips with Animation Events, functions that are called at specified points along the timeline. What s the difference between the Animation window and the Timeline window? The Timeline Window The Animation Window Allows you to create cinematic content, game-play Allows you to create individual animation clips as sequence, audio sequence and complex particle well as viewing imported animation clips effects. You can animate many different GameObjects Animation clips store animation for a single within the same sequence. In the Timeline window you can have multiple types of track, and each track can contain multiple clips that can be moved, trimmed and blended between. It is useful for creating complex animated GameObject or a single hierarchy of GameObjects. The Animation Window can only show one animation clip at a time. It is useful for animating discrete items in your This document was prepared by Abdalla Essam Abdalla Page 1

sequence that require many different GameObjects to be choreograpged together. games such as sliding door, or spinning coin. There are many different buttons and different options visible when you first open the Animation View. 1. Animation Dropdown We use it to select out different animation to edit. 2. The Timeline is where you will be able to establish the timing of your animation. The Timeline is measured in frames and seconds. The numbers in the time line are shown as seconds and frames, so 1:30 means 1 second and 30 frames. 3. The Record and Play buttons When the Record button is pressed, changes made to the chosen object in the scene view will be added automatically to the animation of the currently selected frame. The Play button will allow you to preview your animation. The Left and Right arrows Allows you to navigate through the keyframes of the animation. 4. Other buttons which allows you to add Keyframe and events to the currently selected frame. 5. The Sample property Determines how many frame make up one second of animation. Reducing this number makes our animation slower. 6. At the bottom there are two buttons that allow you to transition between Dopesheet mode and Curves view mode. Exercise 1 Create a new Project in Unity in the 3D mode. Add a Cube to the Scene o Change its name to ground. o Change its Transform component, position property, x value and z value to 10; Add another cube to the scene o Change its name to Cube1. This document was prepared by Abdalla Essam Abdalla Page 2

o Change its Transform component, position property, y value to 1 and change z value to -3. Open the Animation View (if it is not already opened) o To open the Animation go to Window > Animation. Figure 1 Animation Window (View) Click the Create button to create a new animation clip. When you create a new animation you will be prompted for a name and a location to save the animation file. Once you have saved this new empty Animation Clip, a number of things happen automatically: o A new Animator Controller asset will be created o The new clip being created will be added into the Animator Controller as the default state o An Animator Component will be added to the GameObject being animated o The Animator Component will have the new Animator Controller assigned to it. The result of this automatic sequence is that all the required elements of the animation system are set up for you, and you can now begin animating the objects. Figure 2 Animation Window After creating and saving an Animation Clip Click the Animation Record button to begin recording keyframes for the selected GameObject. This enters Animation Record Mode, where changes to the GameObject are recorded into the Animation Clip. Once in Record mode you can create keyframes by setting the white Playback head to the desired time in the Animation time line, and then modify your GameObject to the state you want it to be at that point in time. o Select frame number 60,then change the Transformation Component, position property, y value to 4. Notice what happened. Two keyframs has been created one in frame 0 and the second one in freame 60. This document was prepared by Abdalla Essam Abdalla Page 3

A new Property has been created (at the left of the Animation Window) Transform properties are special in that the.x,.y, and.z properties are linked, so curves for all three are added at the same time. Figure 3 Animation Window while in Recording Mode o Stop the Animation Record Mode by clicking again in its button. o Press the play button to see what you created. Now we want to add a keyframe manually to change the position of the cube1 bake to its initial value. o Select the frame number 120 o Click the Add Keyframe button o Change the Position.y value back to 1. o Click the play button to see that happened. To fine tune our animation we use the Curves mode. o Click on the Curves button on the bottom left of the animation window. Here we can see the various curves of our animation by selecting by selecting the corresponding component on the left. To modify a value on a curve, click and drag a keyframe to the desired value. To create a new keyframe click the create keyframe button, or double click on a curve. o We can see that the Cube1 height is interpolated in-between the keyframes. You notice that the default interpolation is not quite linear. This document was prepared by Abdalla Essam Abdalla Page 4

The default setting for key is Clamped Auto. Figure 4 The Default interpolation Editing Tangents A key has two tangents - one on the left for the incoming slope and one on the right for the outgoing slope. The tangents control the shape of the curve between the keys. You can select from a number of different tangent types to control how your curve leaves one key and arrives at the next key. Tip: Right-click a key to select the tangent type for that key. - Clamped Auto: This is the default tangent mode. The tangents are automatically set to make the curve pass smoothly through the key. When editing the key s position or time, the tangent adjusts to prevent the curve from overshooting the target value. If you manually adjust the tangents of a key in Clamped Auto mode, it is switched to Free Smooth mode. o Select all keyframes by pressing ctrl+a and then right click on part of the time line, then choose Both Tangents > choose linear. Figure 5 o Play the animation and try to observe the difference. This document was prepared by Abdalla Essam Abdalla Page 5

Exercise 2 We know that there are 12 Principle of Animation. One of them is Timing. When animating to mimic physical movement, how much time each action takes is very important. Picture an object accelerating, if it were move from left to right, we would draw more frames toward the left side when it is moving slower and fewer frames on the right when it is moving quickly. Figure 6 In the case of our jumping cube, the critical actions are jumping time, hang time and impact time. Assuming that there is no loss of energy. When the cube start jumping it will accelerate, the point at which it is moving fast would be the moment after start jumping (few frames). Its speed will drop until it reaches the hang position where it will stop momentarily (more frames). After the momentarily suspend in air it will accelerate down due to the force of gravity, the point at which it will be moving fastest would be the instant before it strikes the ground. Figure 7 the second image on the right is a falling ball Let s fix the time of our animation to better reflect how physics would act on it. This document was prepared by Abdalla Essam Abdalla Page 6

We want the Cube to start jumping fast and then its speed will decrease till it stop in the hang position. To do that we will change frame number 60, so we will set this keyframe to flat. Editing Tangents - Flat: The tangents are set to be horizontal (this is a special case of Free Smooth). We will switch the tangent of the y-value at the jumping point to broken-free. Editing Tangents -- Sometimes you might not want the curve to be smooth when passing through a key. To create sharp changes in the curve, choose one of the Broken tangent modes. When using broken tangents, the left and right tangent can be set individually. Each of the left and right tangents can be set to one of the following: - Broken-Free: Drag the tangent handle to freely set the tangents. - Broken-Linear: The tangent points towards the neighboring key. TO makea linear curve segment, set the tangents at both ends to be Linear. - Broken-Constant: The curve retains a constant value between two keys. The value of the left key determines the value of the curve segment. Now we can move these handle to manipulate the curve by bringing in these handles or allocating fewer frames to the time around impact and more frames to the hang time. We can fix the point of impact action in the same way. The final curve of the y-value should look like the figure below. Figure 8 This document was prepared by Abdalla Essam Abdalla Page 7

Exercise 3 Now let s try to manipulate another property but this time we want to use the Curves Mode. Let s try to manipulate the Rotation property. We want to make to cube to rotate form 0 (when start jumping) to 180 (when it reaches the hang point) and then continue rotation to 360 while falling Select the Cube we want to add the rotation property to it. Click the Add Property button, choose Transform from the opened menu then choose Rotation and click the Plus sign. Figure 9 Expand the rotation property; we will manipulate the rotation over y-axis. Choose Rotation.y from the property list. Select frame number 60 and change the Rotation.y value to 180. Select frame number 120 and change the Rotation.y value to 360. Play the animation and observe the changes. This document was prepared by Abdalla Essam Abdalla Page 8