Βαζηθέο αξρέο γηα Game Animation



Σχετικά έγγραφα
Οδηγίες Αγοράς Ηλεκτρονικού Βιβλίου Instructions for Buying an ebook

VBA ΣΤΟ WORD. 1. Συχνά, όταν ήθελα να δώσω ένα φυλλάδιο εργασίας με ασκήσεις στους μαθητές έκανα το εξής: Version ΗΜΙΤΕΛΗΣ!!!!

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

SPEEDO AQUABEAT. Specially Designed for Aquatic Athletes and Active People

The Simply Typed Lambda Calculus

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

9.09. # 1. Area inside the oval limaçon r = cos θ. To graph, start with θ = 0 so r = 6. Compute dr

department listing department name αχχουντσ ϕανε βαλικτ δδσϕηασδδη σδηφγ ασκϕηλκ τεχηνιχαλ αλαν ϕουν διξ τεχηνιχαλ ϕοην µαριανι

Δημιουργία Λογαριασμού Διαχείρισης Business Telephony Create a Management Account for Business Telephony

The challenges of non-stable predicates

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

DESIGN OF MACHINERY SOLUTION MANUAL h in h 4 0.

PortSip Softphone. Ελληνικά Ι English 1/20

Section 8.3 Trigonometric Equations

Εργαστήριο 9. Styling with Javascript

Instruction Execution Times

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

Εγκατάσταση λογισμικού και αναβάθμιση συσκευής Device software installation and software upgrade

Right Rear Door. Let's now finish the door hinge saga with the right rear door

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

Finite Field Problems: Solutions

Advanced Subsidiary Unit 1: Understanding and Written Response

Code Breaker. TEACHER s NOTES

2 Composition. Invertible Mappings

Ρύθμιση σε whitelist

Galatia SIL Keyboard Information

Solutions to the Schrodinger equation atomic orbitals. Ψ 1 s Ψ 2 s Ψ 2 px Ψ 2 py Ψ 2 pz

derivation of the Laplacian from rectangular to spherical coordinates

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 24/3/2007

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

Srednicki Chapter 55

LESSON 12 (ΜΑΘΗΜΑ ΔΩΔΕΚΑ) REF : 202/055/32-ADV. 4 February 2014

Block Ciphers Modes. Ramki Thurimella

Living and Nonliving Created by: Maria Okraska

ΑΛΛΗΛΕΠΙΔΡΑΣΗ ΑΝΘΡΩΠΟΥ - ΥΠΟΛΟΓΙΣΤΗ. Διδάσκων: Κωνσταντίνος Στεφανίδης

Στο εστιατόριο «ToDokimasesPrinToBgaleisStonKosmo?» έξω από τους δακτυλίους του Κρόνου, οι παραγγελίες γίνονται ηλεκτρονικά.

Partial Trace and Partial Transpose

Section 7.6 Double and Half Angle Formulas

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

Οι αδελφοί Montgolfier: Ψηφιακή αφήγηση The Montgolfier Βrothers Digital Story (προτείνεται να διδαχθεί στο Unit 4, Lesson 3, Αγγλικά Στ Δημοτικού)

( ) 2 and compare to M.

CYTA Cloud Server Set Up Instructions

Calculating the propagation delay of coaxial cable

Συστήματα Διαχείρισης Βάσεων Δεδομένων

b. Use the parametrization from (a) to compute the area of S a as S a ds. Be sure to substitute for ds!

Οδηγίες χρήσης. Registered. Οδηγίες ένταξης σήματος D-U-N-S Registered στην ιστοσελίδα σας και χρήσης του στην ηλεκτρονική σας επικοινωνία

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

(C) 2010 Pearson Education, Inc. All rights reserved.

ΕΠΙΧΕΙΡΗΣΙΑΚΗ ΑΛΛΗΛΟΓΡΑΦΙΑ ΚΑΙ ΕΠΙΚΟΙΝΩΝΙΑ ΣΤΗΝ ΑΓΓΛΙΚΗ ΓΛΩΣΣΑ

Dynamic types, Lambda calculus machines Section and Practice Problems Apr 21 22, 2016

ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΥΠΡΟΥ - ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΕΠΛ 133: ΑΝΤΙΚΕΙΜΕΝΟΣΤΡΕΦΗΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ ΕΡΓΑΣΤΗΡΙΟ 3 Javadoc Tutorial

How to register an account with the Hellenic Community of Sheffield.

Concrete Mathematics Exercises from 30 September 2016

PARTIAL NOTES for 6.1 Trigonometric Identities

Physical DB Design. B-Trees Index files can become quite large for large main files Indices on index files are possible.

ΣΕΧΝΟΛΟΓΙΚΟ ΠΑΝΕΠΙΣΗΜΙΟ ΚΤΠΡΟΤ ΣΜΗΜΑ ΠΟΛΤΜΕΩΝ ΚΑΙ ΓΡΑΦΙΚΩΝ ΣΕΧΝΩΝ

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1

ΕΠΙΧΕΙΡΗΣΙΑΚΗ ΑΛΛΗΛΟΓΡΑΦΙΑ ΚΑΙ ΕΠΙΚΟΙΝΩΝΙΑ ΣΤΗΝ ΑΓΓΛΙΚΗ ΓΛΩΣΣΑ

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 7η: Consumer Behavior Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών

SOAP API. Table of Contents

TOOLBOOK (μάθημα 2) Δεκηνπξγία βηβιίνπ θαη ζειίδσλ ΠΡΟΑΡΜΟΓΗ: ΒΑΛΚΑΝΙΩΣΗ ΔΗΜ. ΕΚΠΑΙΔΕΤΣΙΚΟ ΠΕ19 1 TOOLBOOK ΜΑΘΗΜΑ 2

the total number of electrons passing through the lamp.

C.S. 430 Assignment 6, Sample Solutions

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions

Door Hinge replacement (Rear Left Door)

Παλεπηζηήκην Πεηξαηώο Τκήκα Πιεξνθνξηθήο Πξόγξακκα Μεηαπηπρηαθώλ Σπνπδώλ «Πξνεγκέλα Σπζηήκαηα Πιεξνθνξηθήο»

Final Test Grammar. Term C'

Οδηγίες χρήσης υλικού D U N S Registered

Example of the Baum-Welch Algorithm

Section 9.2 Polar Equations and Graphs

The municipality of Apokoronas has created a new app for your smart phone.

Assalamu `alaikum wr. wb.

ΟΔΗΓΙΕΣ ΕΓΚΑΤΑΣTΑΣΗΣ ΓΙΑ ΠΑΤΩΜΑ WPC INSTALLATION GUIDE FOR WPC DECKING

Bounding Nonsplitting Enumeration Degrees

Πρόβλημα 1: Αναζήτηση Ελάχιστης/Μέγιστης Τιμής

14 Lesson 2: The Omega Verb - Present Tense

Modbus basic setup notes for IO-Link AL1xxx Master Block

LESSON 14 (ΜΑΘΗΜΑ ΔΕΚΑΤΕΣΣΕΡΑ) REF : 202/057/34-ADV. 18 February 2014

Other Test Constructions: Likelihood Ratio & Bayes Tests

«Εικονικοί κόσµοι και καλλιτεχνική δηµιουργία».

Οδηγός εκκαθάρισης ιστορικού cookies περιηγητή

ΑΚΑ ΗΜΙΑ ΕΜΠΟΡΙΚΟΥ ΝΑΥΤΙΚΟΥ ΜΑΚΕ ΟΝΙΑΣ ΣΧΟΛΗ ΜΗΧΑΝΙΚΩΝ ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ

7 Present PERFECT Simple. 8 Present PERFECT Continuous. 9 Past PERFECT Simple. 10 Past PERFECT Continuous. 11 Future PERFECT Simple

Example Sheet 3 Solutions

ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =?

ΦΥΛΛΟ ΕΡΓΑΣΙΑΣ Α. Διαβάστε τις ειδήσεις και εν συνεχεία σημειώστε. Οπτική γωνία είδησης 1:.

ΕΛΛΗΝΙΚΗ ΔΗΜΟΚΡΑΤΙΑ ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΡΗΤΗΣ. Ψηφιακή Οικονομία. Διάλεξη 10η: Basics of Game Theory part 2 Mαρίνα Μπιτσάκη Τμήμα Επιστήμης Υπολογιστών


ΚΥΠΡΙΑΚΟΣ ΣΥΝΔΕΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY 21 ος ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ Δεύτερος Γύρος - 30 Μαρτίου 2011

Μηχανική Μάθηση Hypothesis Testing

Reminders: linear functions

5.4 The Poisson Distribution.

Overview. Transition Semantics. Configurations and the transition relation. Executions and computation

ΟΔΗΓΙΕΣ ΧΡΗΣΗΣ USE INSTRUCTIONS

Scratch Διδακτική του Προγραμματισμού. Παλαιγεωργίου Γιώργος

Démographie spatiale/spatial Demography

Πώς μπορεί κανείς να έχει έναν διερμηνέα κατά την επίσκεψή του στον Οικογενειακό του Γιατρό στο Ίσλινγκτον Getting an interpreter when you visit your

ΠΑΝΕΠΙΣΤΗΜΙΟ ΘΕΣΣΑΛΙΑΣ ΤΜΗΜΑ ΠΟΛΙΤΙΚΩΝ ΜΗΧΑΝΙΚΩΝ ΤΟΜΕΑΣ ΥΔΡΑΥΛΙΚΗΣ ΚΑΙ ΠΕΡΙΒΑΛΛΟΝΤΙΚΗΣ ΤΕΧΝΙΚΗΣ. Ειδική διάλεξη 2: Εισαγωγή στον κώδικα της εργασίας

Transcript:

ΠΓΣ518: ΥΕΔΙΑΜΟ ΠΑΙΥΝΙΔΙΩΝ ΗΛΕΚΣΡΟΝΙΚΩΝ ΤΠΟΛΟΓΙΣΩΝ Δέζποινα Μιταήλ Σμήμα Πολσμέζων και Γραθικών Σετνών Σετνολογικό Πανεπιζηήμιο Κύπροσ Διάλεξη 12 Animation Βαζηθέο αξρέο γηα Game Animation 1. Cycles: Almost every game character animation should be a cycle The first and the last keyframe of each motion should match Examples: For walks, animate from left foot fall to left foot fall In an idle animation, have the character return to exactly the same pose as he began. 1

Βαζηθέο αξρέο γηα Game Animation 2. Cycles should be short For example, a common problem is the jump animation. In a non-game situation has a lot of great squash and stretch that when used in game means the character hasn't even gotten ready to jump before they should be in the air. This doesn't mean that good concepts of animation (i.e., squash and stretch) shouldn't be used in fact it's critical that they are. They just often need to happen quicker and subtler Exception: idle animation the animation a character does when it's waiting for other instructions. A longer idle animation keeps the repeating cycle from being quite so obvious. Βαζηθέο αξρέο γηα Game Animation 3. Do the animations in place For animations like walk, run, or jump, imagine that the character is on an invisible treadmill and while his feet are moving as though he's covering ground, he needs to stay put, walking in place. The actual translation of the character will take place programmatically and the character will move forward, backward, or side to side based upon user input. [Demonstration: frames 300-330 in the AegisChung_SingleMesh.mb] 2

Βαζηθέο αξρέο γηα Game Animation 4. Keep it in one file and note the range. There are actually different ways to attack this issue. On the one hand Unity allows you to import several files, each with its own animation. Then these animations can be called up later and assembled on one mesh. However, its easier to have all the animations created in one Maya file and take note of the ranges (idle: frame 1 240, walk: frames 300 330, etc.). Then when Unity imports the.fbx, you can tell Unity to interpret these different animation clips by defining the range of frames that that animation occurs in. This just keeps all the animations contained in one file and makes the housekeeping easier inside of Unity. 2 ηξόπνη γηα animation 1. Φηηάρλεηο ην animation κε εξγαιείν κνληεινπνίεζεο θαη ην εηζάγεηο ζην Unity 2. built-in animation system ηνπ Unity 3

1. animation με εργαλείο μονηελοποίηζης Animation ζην Μaya Animation ελόο απινύ αληηθεηκέλνπ Timeline bar ζην θάησ κέξνο Η θαηάζηαζε ηνπ αληηθεηκέλνπ κπνξεί λα θαζνξηζηεί όπσο αθνινύζσο επηιέγνληαο: Σν ρξόλν πνπ ζέινπκε λα θαζνξηζνπκε ηελ θαηάζηαζε Σν αληηθείκελν θαη ην ηνπνζεηνύκε ζηελ επηζπκεηή ζέζε Από ην menu-set Animation επηιέγνπκε ην Animate Set Key ή παηώληαο ην πιήθηξν S Η πην πάλσ δηαδηθαζία ζα δεκηνπξγήζεη έλα keyframe ζηνλ επηιεγκέλν ρξόλν, γηα ην επηιεγκέλν αληηθείκελν Γεκηνπξγνύκε έλα keyframe γηα ηελ «αξρηθή» θαηάζηαζε θαη έλα keyframe γηα ηελ «ηειηθή» θαηάζηαζε θαη νη ελδηάκεζεο θαηαζηάζεηο ππνινγίδνληαη απηόκαηα. 4

ΠΡΟΟΧΗ ΙΚ animations - Export animation από ην Maya Αλ ην animation ζαο ρξεζηκνπνηεί IK ηόηε πξηλ ην export θάλεηε ην αθόινπζν βήκα αιιηώο πξνρσξήζηε απεπζείαο ζην επόκελν. Bake the animation. In the Outliner select the Root bone. Then choose Edit>Keys>Bake Simulations (Options). In the Bake Simulation Options window, in Hierarchy click the Below radio button. In Time Range: click the Start/End option and for Start Time: enter 1 and for End Time: enter the last frame of all the animations you have. When everything is set, press the Bake button. Export from Maya MAYA Export as.fbx. Choose File>Export All Change the file type to FBX Export and (as we've done in the past) be sure that Embed Media is checked (in the Include section) 5

Import in Unity UNITY Σνπνζεηείζηε ην exported κνληέιν ζαο ζην Assets folder ηνπ project ζαο ζην Unity θαη αλνίμηε ην Unity. In the Project panel select the object prefab. This will show it in the Inspector panel. Import in Unity Change the Scale Factor to 1. Then look carefully (you may have to scroll down) to the Animation section and an area that has columns of Name, Start, End, WrapMode, and Loop. Click the little + symbol to tell Unity you wish to define/add an animation. As soon as this is done a new animation will appear already named idle. The Start column should read 1, but change the End entry to read e.g. 48. Change the WrapMode to Loop (not the Loop checkmark this is something else.) By changing the WrapMode to Loop, the animation will, well, loop until told to stop. If you have animated other animations, add them here now. When done, click the Apply button 6

Import in Unity name start frame stop frame WrapMode loop frame Defines the Animation Clip's name within Unity. The first frame of the animation. The frame number refers to the same frame as in the 3D program used to create the animation. The last frame of the animation. Defines how should time beyond the playback range of the clip be treated (Once, Loop, PingPong, ClampForever). If enabled, an extra loop frame is inserted at the end of the animation. This frame matches the first frame in the clip. Use this if you want to make a looping animation and the first & last frames don't match up exactly. Animate on request Γξάςηε ην πην θάησ script θαη θάληε ην attach κε ην αληηθείκελν ζαο function Update () { if (Input.GetKeyDown(KeyCode.LeftControl)){ rotateobjectonce(); function rotateobjectonce(){ animation.play("rotateanim"); yield WaitForSeconds(animation["rotateAnim"].length); animation.play("idle"); 7

2. built-in animation system ζηο Unity Γεκηνπξγία built-in animation ην Hierarchy panel, επηιέμηε ην αληηθείκελν ην νπνίν ζέιεηε λα θάλεηε animate. Choose Window>Animation. This will pull up the Animation window and timeline. (εκεηώζηε όηη κε ην Animation window, κπνξείηε λα δείηε (ζαλ readonly) θαη animations πνπ έρεηε θάλεη import) In the top-left corner is a little red dot (for record). Click this and a Create New Animation dialog box will appear. Enter nameofyouranimation.anim in the File Name input field and click Save. 8

Δμήγεζε γηα built-in animations Think of animations as components of GameObjects. Whenever an object is to be animated in Unity, Unity will create a separate editable file (with a.anim label) that will store the information. What this means is that the animation can be used again and again on other objects (which is powerful in itself ). It also means that there is this new asset that will be in the assets folder that is important not to delete. Note that after the.anim file is created, the Animation window will show the record button in the top left highlighted in red as if pressed. This is Unity's way of telling you that you can now record animations by creating and editing keyframes Play built-in animation Γηα λα πξνζζέζεηε έλα λέν θαηλνύξην animation παηείζηε ην Create New Clip Σα animations πνπ δεκηνπξγείηε κε ην built-in animation system ηνπ unity κπνξείηε λα ηα θαιείηε κε κώδικα με ακριβώς ηνλ ίδην ηξόπν όπσο θαη ηα animation πνπ θηηάμαηε κε ην Maya. 9

Play built-in animation function Update () { if (Input.GetKeyDown(KeyCode.LeftControl)){ moveobjectonce(); function moveobjectonce(){ animation.play("leftright"); yield waitforseconds(animation["leftright"].length); Γεληθά γηα animations Σα animations είηε ηα θηηάμαηε ζην Maya είηε ζην built in system ηνπ Unity, κπνξείηε λα ηα ρξεζηκνπνηήζεηε ζε νπνηνδήπνηε Game Object δεδνκέλνπ όηη έρεη Animation Component. Tα animations πνπ ζα ρξεζηκνπνηνύληαη πξέπεη λα είλαη elements ηνπ animation component Πξνζζήθε animation component. Δπηιέμηε ην αληηθείκελν Component Miscellaneous Animation 10

Γεληθά γηα animations Γηα λα πξνζζέζεηε έλα element ζην animation component απμήζηε ην size θαηά 1. Κάληε click ζην κηθξό θύθιν πνπ ζέιεηε λα πξνζζέζεηε θαη επηιέμεηε ην animation ηε ζπλέρεηα γξάςεηε script γηα λα θαιείηαη θάπνην animation λα παίδεη, θαη θάληε attach ην script ζην αληηθείκελν πνπ ζέιεηε λα έρεη ην ελ ιόγσ animation Γεληθά γηα animations Animation Component - Inspector Animation Animations Play Automatically The default animation that will be played when Play Automatically is enabled. A list of animations that can be accessed from scripts. Should the animation be played automatically when starting the game? Animate Physics Should the animation interact with physics. Animate Only If Visible When enabled, the currently playing animation will not play if the object is not visible on the screen. 11