Tips & Techniques 4 Visible and Invisible Objects Alice.

Slides:



Advertisements
Similar presentations
Space Man Sam: Grammar Mistakes By Aleis Murphy Duke University, Under the direction of Professor Susan Rodger July 2010.
Advertisements

Adventures in Animation Alice – Advanced! Michelle Venable-Foster June 2006.
Objects and Properties Alice. Objects in Alice Objects already exist. Hundreds of them.
Class-level Methods Alice. World / Class Method World method A general method that may refer to multiple objects; not closely associated with any particular.
Class-level Methods and Inheritance Part 1 Alice.
Class-level Methods Chapter 6. Class-level Method Is specific to a class of objects We can give a class new abilities/methods Only involves this one class.
Review of Chapter 4 Sections 1 and 2 World-level methods involve two or more objects break a large problem into smaller, logical units follow a design.
Decision Structures Chapter 4. Chapter 4 Objectives To understand: o What values can be stored in a Boolean variable o What sequence structures are and.
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009.
While: Indefinite Loops Alice. Repetition In some situations, we don’t know exactly how many times a block of instructions should be repeated. All we.
While: Indefinite Loops Sec 8-14 Web Design. Objectives The student will: Understand what an Indefinite Loop is Understand how create an indefinite loop.
1 Alice: Beyond the Basics Steve Cooper Michelle Venable-Foster Barbara Ericson May 2007.
1 Alice: Beyond the Basics Steve Cooper Michelle Venable-Foster Barbara Ericson Aug 2009.
Repetition: Definite Loops Alice. Repetition In many kinds of animations, especially simulations and games, some actions happen again and again. Example:
Introducing While loops (and random numbers too) Alice.
Tips & Techniques 6 Random Numbers and Random Motion Alice.
Alice: A Visual Introduction to Programming Chapter 1 Part 2.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 4 OO Programming Concepts.
Programming: Simple Control Structures Alice. Control Statements We have been using Do in order and Do together to control the way instructions are executed.
Princess & Dragon Part 4: Breathing Fire—Adding Effects to Alice By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
Making a Book Report in Alice by Jenna Hayes Under the direction of Professor Susan Rodger Duke University, June 2010.
Line up By Melissa Dalis Professor Susan Rodger Duke University June 2011.
MrsBillinghurst. net A2 Computing A2 Computing Projects Game Animation in Pascal.
Alice: Functions Alice Chapter 6 September 19, 2005.
Class-level Methods Chapter 6 part 1. Classes and Objects Classes o In Alice, classes are predefined as 3D models Objects o An object is an instance of.
Alice Learning to program: Part Three Camera Control, Invisibility, and 3-D Text By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger.
Decision Structures Chapter 4 Part 2. Chapter 4 Objectives To understand o What relational operators are and how they are used o Boolean logic o Testing.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
Events Chapter 7 Part 2. While a Key is Pressed Event Specialized event An event occurs when you press a key and continues until you take your finger.
Creating An Animation Program Part 2 Alice. Method A segment of program code (instructions) that defines how to perform a specific task.
Alice Tips and Techniques. Tips and Techniques I suggest you read the tips and techniques sections at the ends of the chapters. Tells you how to do things.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 7 The Game Loop and Animation Starting Out with Games & Graphics.
Alice: A Visual Introduction to Programming Chapter 1 Part 2.
Functions Alice.
1 ball, 2 ball, red ball, blue ball By Melissa Dalis Professor Susan Rodger Duke University June 2011.
Making Billboards By Deborah Nelson Duke University, Under the direction of Professor Susan Rodger, July 14, 2008.
Repetition: Definite Loops Alice. Repetition In many kinds of animations, especially simulations and games, some actions happen again and again. Example:
Programming: Simple Control Structures
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1, 2009.
Repetition: Definite Loops Sec 53 Web Design. Objectives The Student will: Understand loops and why they are used Understand definitive loops Know how.
CompSci 4 Chap 4 Sec 3 Sept 23, 2010 Prof. Susan Rodger.
Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
Debugging Watch and Text Output Alice. Debugging Techniques Several techniques are helpful in eliminating errors (bugs) in programs: careful design incremental.
Making Billboards By Deborah Nelson Duke University, Under the direction of Professor Susan Rodger, July 14, 2008.
Variables and Inheritance Part 1 Alice. Review: Properties A class defines properties for its own kind of object. When an object is created (instantiated),
Tips & Techniques 4 Visible and Invisible Objects
Skater World: Part Four
Alice Learning to program: Part Three Camera Control, Invisibility, and 3-D Text By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger.
While: Indefinite Loops
Alice Learning to program: Part Three By Ruthie Tucker and Jenna Hayes, Under the direction of Professor Rodger Duke University, 2008.
Programming: Simple Control Structures
Class-level Methods Alice.
Repetition: Definite Loops
Michelle Venable-Foster Barb Ericson Jan 2007
Programming: Simple Control Structures
Alice: Beyond the Basics
Programming: Simple Control Structures
Repetition: Definite Loops
Programming: Simple Control Structures
Repetition: Definite Loops
Functions Alice.
Programming: Simple Control Structures
Learning to Program: Part 3 Camera Control, Invisibility and 3-D Text
Headshots in Alice Duke University Professor Susan H. Rodger
Functions Alice.
Tips & Techniques 4 Visible and Invisible Objects
Programming: Simple Control Structures
Functions Alice.
Functions Alice.
Presentation transcript:

Tips & Techniques 4 Visible and Invisible Objects Alice

Opacity Opacity is a measure of how "see- through" an image or an object is. The less opaque an object is, the more see- through it is. Opacity of 100%, cannot see through the object Opacity of 0%, object is transparent (like clear glass) In Alice, an object with an opacity of 0% is invisible.

Changing the Opacity A change in opacity can be used to simulate real world conditions. Example A fish swimming away from the camera should fade away because water blurs our vision of distant objects.

Demo Ch04Lec4LilfishOpacity Concepts illustrated in this example As opacity is gradually decreased, the fish becomes less visible. At an opacity of 0%, the object is still in the world (can still see it listed in the object tree) but is effectively invisible.

isShowing The isShowing property has a Boolean value, either true or false. Setting an object's isShowing property to false makes the object invisible in the world. Once again, the object is not removed from the world, it is simply not visible in the world.

Demo Ch04Lec4ChickenIsShowing Concepts illustrated in this example A billboard can be used to display a title screen for the animation. A 2-second wait gives the user time to read the billboard. Changing the isShowing property to false makes the title screen disappear.

Two properties isShowing and opacity are two different properties. isShowing works like an on/off switch opacity works like a dimmer switch Although each can be used to make an object invisible, changing one does not automatically change the value of the other!

Practical Uses of Invisible Objects An invisible object is sometimes useful as a stationary marker that creates a target for a move to instruction an external reference point for object rotational motion

Demos Ch04Lec4InvisibleTarget Invisible circle makes it possible to move the object to a landing target. Ch04Lec4InvisibleReferencePoint External reference point acts as a pivot for the rotational movement of each object.

Assignment Read Tips & Techniques 4, Visible and Invisible Objects