Motions and Animation CS 110 – Honors Slides by Wanda Dann, Ithaca College
Composite Objects 4 In the previous lecture, we established that many objects are composites
First-class By default, an object is first-class
Object Parts 4 Object Parts are not first-class
Motion and First-Class Status 4 A first-class object –can be selected and moved by the mouse cursor –can be animated with commands (instructions) 4 Parts (not first-class) –cannot be individually selected and moved by the mouse cursor –but, can be animated with commands
Changing Status 4 A part can be made first class by checking IsFirstClass in the pop-up menu
Mouse vs. Command Motions 4 Mouse is used to –set up the initial scene –approximately position objects in the scene 4 Commands are used to –obtain specific alignments –position one object relative to another object –use instructions that are not available on the menus moveTo turnTo place
Levitation 4 Be cautious about un-intended levitations: –moving parts of objects independent of the composite object can cause the part to disconnect from the body –positioning objects without making sure they are in contact with one another can result in objects just floating around in the air
Creating Animations 4 A 4-step process –define the background of the setting –determine the objects and parts needed –position the objects in the initial scene –supply a list of instructions to perform the animated task 4 Corresponds to the problem-solving process used in any programming language
A First Example 4 Task: Create an animation of a rabbit walking towards a butterfly. 4 Opening Scene: –default world (green grass, blue sky) 4 Objects: –rabbit, butterfly
Initial Scene
Animation Script 4 Will develop in class.