Entity Animation and 3D Math

Slides:



Advertisements
Similar presentations
Vectors, Points, Lines and Planes Jim Van Verth Lars M. Bishop
Advertisements

Using Thread for Animation. Threads When we are doing multiple things at once we say we are multitasking Computers multitask when they run several programs.
Dependency Analysis We want to “parallelize” program to make it run faster. For that, we need dependence analysis to ensure correctness.
Non-linear digital editing Adobe Premier. Linear editing analog video editing with tapes cut tape or film and splice clip at end LINEAR: assemble front.
CS0004: Introduction to Programming Repetition – Do Loops.
12 Principle of Animation Two-Legged Walk Cycle. 12 Principle of Animation A walk is the first thing to learn to learn walk of all kinds cause walks are.
Program Design and Development
Extending MATLAB Write your own scripts and/or functions Scripts and functions are plain text files with extension.m (m-files) To execute commands contained.
Game Programming Step-22 Learn Control Enemy walk into Game
Agenda Control Flow Statements Purpose test statement if / elif / else Statements for loops while vs. until statements case statement break vs. continue.
CS 122 Engineering Computation Lab Lab 2 Dan De Sousa and Tim Cheeseman Department of Computer Science Drexel University April 2009 ©By the author. All.
Animation in the Classroom Primary ICT Conference 2010 Sue Hodgetts Welcome! Please find a seat and a power socket and turn your laptop on Look for the.
Key Data Management Tasks in Stata
Simulation and Modeling: Predator-Prey Processing Lab IS 101Y/CMSC 101 Computational Thinking and Design Tuesday, September 23, 2014 Carolyn Seaman Susan.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Course Code #IDCGRF001-A 5.1: Searching and sorting concepts Programming Techniques.
One of my favorite math concepts!!.  How do you solve this:  5x 2 (3x + 7)Distribute!! 15x x 2  How about this one:  (3x + 7)(x 2 + x – 4)Distribute!!!
Maths quiz KS 2: Use sequence in programs. Today we are learning about: Programs & Selection ●I can explain what selection is ●I can write a program using.
The four written methods Column addition To do Colum addition fist you must ad the units together 1+7= 8 Next add the tens 8+9= 17 You cant put a two.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
Moving to First Person Scalable Game Design Susan Miller University of Colorado - Boulder.
Collision Theory and Logic
Presentation Companion Slide Pack
Recursion Topic 5.
Manipulating Pictures, Arrays, and Loops part 2
Manipulating Pictures, Arrays, and Loops part 2
Collision Theory and Logic
Rename Fractions and Mixed Numbers
Repetition Structures Chapter 9
Adding animations. To add an animations to text or picture you have to click on the text or animation and on the top navigation bar click on animation.
Implementation of Convolution using C++
SEQUENCES Target: To find the next number in the sequence.
Linear vs. exponential growth
ECS10 10/10
PowerPoint Activity 5: To Be Determined…
Programming Scratch to Control a K’NEX Fairground Ride
Math October 25 N1 and N2.
C ODEBREAKER Class discussion.
Introduction to Computer Science - Alice
Agenda Control Flow Statements Purpose test statement
All 6 icons should not have animation on loop All 6 icons should not have animation on loop. The effect should stop after 4-5 secs.
Sentinel logic, flags, break Taken from notes by Dr. Neil Moore
Call Stacks, Arguments and Returns
When I want to execute the subroutine I just give the command Write()
Sentinel logic, flags, break Taken from notes by Dr. Neil Moore
Programming Logic and Design Fourth Edition, Comprehensive
Building Web Applications
Inserting Sounds.
Sort Techniques.
Solid Edge ST4 Training Exploding assemblies
slides created by Marty Stepp
Lesson Aims Vocabulary In this lesson you are going to:
CISC101 Reminders Quiz 2 this week.
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Remembering lists of values lists
CT1514 Flash -3.
What does this do? def revList(L): if len(L) < = 1: return L x = L[0] LR = revList(L[1:]) return LR + x.
Problem Solving Designing Algorithms.
Learning Objectives Identify different types of event to start and stop loops Decompose a simple problem to help design a program Use abstraction to identify.
ICT Gaming Lesson 3.
Can you put the symbols in?
Beginning Python Programming
Manipulating Pictures, Arrays, and Loops
Stage 6 Maze: Loops.
Processes Creation and Threads
Do Now: Brainstorm and Write your Ideas in your Notebook
Computer Graphics Matrix Hierarchies / Animation
Lists Like tuples, but mutable. Formed with brackets: Assignment: >>> a = [1,2,3] Or with a constructor function: a = list(some_other_container) Subscription.
SEQUENCE Start Initial situation Step 1 Step 2 Step 3 End
GCSE Computing.
Presentation transcript:

Entity Animation and 3D Math

Entity Animation LoadAnimSeq SetAnimKey AddAnimSeq ExtractAnimSeq Animate SetAnimTime AnimSeq AnimLength AnimTime Animating

LoadAnimSeq LoadAnimSeq( Model, fileName$ ) Example Code: Model = LoadAnimMesh(“Model.b3d”) WalkAnimation = LoadAnimSeq(Model,”Walk.b3d”)

Animate Animate model[,mode][,speed#][,sequence][,transition#] Example Code: Model = LoadAnimMesh(“Model.b3d”) WalkAnimation = LoadAnimSeq(Model,”Walk.b3d”) Animate Model or Animate Model,3,1,WalkAnimation,0

SetAnimTime SetAnimTime model, time#[,animationSeq] Use: You can make a time loop in your code to manually animate a model.

AnimTime AnimTime# (model) Use: Returns the current time of the animation

AnimLength AnimLength (model) Use: Returns the length of the current animation Problem: You must be playing the animation

AnimSeq AnimSeq( model ) Use: This function can be used to check if the current animation sequence is playing or has been played last. Problem: If your animation sequence stops playing, the AnimSeq still returns that sequence (can’t check if it is still in play)

Animating Animating( model ) Use: This function can be used to check if the current model is animating Combine this w/ AnimSeq to check if a particular animation sequence has stopped playing

SetAnimKey SetAnimKey model, frame Use: If you have a number of animations and you want to record them or create a new animation using the current few that you have

AddAnimSeq AddAnimSeq (model, length) Use: When you are done setting the animation keys, you can use this command to put what you recorded into an animation to play back later. Example: For frame=1 To 10 SetAnimKey model, frame Next AnimSequence = AddAnimSeq(model,frame-1)

ExtractAnimSeq ExtractAnimSeq(model,first_frame,last_frame) Use: If you have a animation that has multiple animations in it such as walk, run, idle. You can use this command to break up the original animation into multiple sequences Example: model = LoadAnimMesh(filename$) walkAnimSeq = ExtractAnimSeq( model, 0, 30) idleAnimSeq = ExtractAnimSeq( model, 31, 40) Animate model,1,1,idleAnimSeq

3D Math VectorYaw VectorPitch

VectorYaw VectorPitch VectorYaw# (x#, y#, z#) Returns the yaw value of a vector VectorPitch VectorPitch# (x#, y#, z#) Returns the pitch value of a vector