You are on page 1of 29

Java Fundamentals

Add and Position Objects

1

Copyright © 2013, Oracle and/or its affiliates. All rights
reserved.

Add and Position Objects

Objectives
This lesson covers the following objectives:
• Open a saved version of a project
• Add multiple
lti l objects
bj t tto a scene ακριβής προσδιορισμός της θέσης
• Describe the difference
between precise positioning and
ασαφής
drag-and-drop
drag
and drop (or imprecise) positioning
ακριβη προσδιορισμο θεσης
• Use a one-shot procedure to precisely position an object
in a scene

2

Copyright © 2013, Oracle and/or its affiliates. All rights
reserved.

) This lesson covers the following objectives: • Edit properties of an object in the Scene editor • Describe D ib th three-dimensional di i l positioning iti i axes • Position the sub-parts of an object in the Scene editor 3 Copyright © 2013. Oracle and/or its affiliates. .Add and Position Objects Objectives (cont. All rights reserved.

Oracle and/or its affiliates. 4 Copyright © 2013. • Browse for the project using the File System tab. There are two Th t ways to t open an existing i ti Alice Ali 3 project j t fil file after launching Alice 3: • Select the project from the My Projects tab tab. All rights reserved.Add and Position Objects Open an Existing Project Saved Alice 3 project files can be opened and edited. .

3.Add and Position Objects Steps to Open an Existing Project Using the My Projects Tab 1. select the My Projects tab. 5 Copyright © 2013. From the Select Project dialog box. Select the name or thumbnail of the project and click OK. Scroll to the name or thumbnail of the project to open. Oracle and/or its affiliates. . 4. Open Alice 3. 2. All rights reserved.

From the Select Project dialog box. 3. Select the Browse button. All rights reserved. Open Alice 3. 4.Add and Position Objects Steps to Open an Existing Project Using the File System Tab 1. select the File System tab. Click OK after the Alice 3 file has been selected. Oracle and/or its affiliates. Use the navigation window to navigate to the directory structure on your computer where the Alice 3 file is located. Note: Alice 3 cannot open animations created with the Alice 2 software software. 5. . 6 Copyright © 2013. 2.

προσανατολισμός • Orientation of objects relative to other objects in the scene. All rights reserved. • Position of the object's sub-parts (arms. etc. Oracle and/or its affiliates.Add and Position Objects Positioning Objects Within Initial Scene Positioning objects within your initial scene includes choosing the: • Direction the object should face face. legs.). . • Position of objects in the scene. 7 Copyright © 2013.

Oracle and/or its affiliates. and z axes. All rights reserved. • A center t point. 8 Copyright © 2013. y. • Sub Sub-parts parts that can move move.Add and Position Objects Positioning Features of Objects All Alice 3 objects share the same positioning features: • 3D coordinates on x. . i t where h it own axes intersect its i t t (usually ( ll att the center of mass).

programmed p g to move forward 2 meters.Add and Position Objects προσανατολισμος Object Orientation Objects and their sub-parts move relative to their own αισθηση orientation. or sense of direction. 9 Copyright © 2013. προς τα πισω An object that is facing toward the back of the scene. All rights reserved. Oracle and/or its affiliates. . moves 2 meters further toward the back of the scene.

10 Copyright © 2013. procedure – Enter values for the x. ασαφη • Imprecise positioning using the drag-and-drop method with your cursor. All rights reserved. and z coordinates and press the Enter key. y. Oracle and/or its affiliates.Add and Position Objects Ways to Position an Object There are two ways to position an object: σαφη • Precise positioning using one of two methods: – Use a one one-shot shot procedure. .

OR • Click the instance in the scene window. • Click the name of the instance from the object list in the upper left corner of the scene window. Oracle and/or its affiliates. Rings or arrows surround the object once it is selected. 11 Copyright © 2013. . All rights reserved. .Add and Position Objects Select Instance to Position There are two ways to select the instance that you want to position.

. however. dit Th They are th the same as th the procedures in the Code editor.Add and Position Objects One-Shot Procedures Precise Positioning One-shot procedures: διορθωσεις • Are used to make scene adjustments and position objects. or programmed code. Oracle and/or its affiliates. unlike in the Code editor where they will execute every time the Run button is clicked to play the animation. objects • Are not executed when the Run button is selected to play p y the animation. All rights reserved. A procedure is a set of instructions. One-shot procedures are available il bl iin th the S Scene editor. for how the object should perform a task. they only execute one time to re-position the object. 12 Copyright © 2013.

13 Copyright © 2013.Add and Position Objects Positioning Objects in the Scene Precise Positioning After adding multiple objects to the center of a scene. use one-shot procedures to precisely place them in different locations in the scene so that all objects are visible. All rights reserved. . Oracle and/or its affiliates.

Add and Position Objects Steps to Open the One-Shot Procedures Menu Precise Positioning 1. 2. Right-click on an object in the Scene editor. OR 1. Select the one shots procedure menu in the Properties panel. 14 Copyright © 2013. All rights reserved. 2 Select procedures 2. Oracle and/or its affiliates. Select procedures. procedures. .

Specify the argument values (direction and distance). . 15 Copyright © 2013.Add and Position Objects Steps to Use One-Shot Procedures Precise Positioning 1. From the one-shots procedures menu. All rights reserved. 3. select the desired procedure. Oracle and/or its affiliates. 2. The object will automatically re-position based on the procedure selected and the arguments specified.

. • Move them with one-shot p procedures as opposed pp to trying to drag-and-drop them into the correct location on top of the floating ice floe. For example: αρκουδα ιμαλαιων παγετωνας • If you want to put several yetis on a floating ice floe floe. 16 Copyright © 2013.Add and Position Objects Positioning Example Precise Positioning Sometimes it is convenient to have many instances positioned in the center of the scene. add the ice floe and yetis to the center of the scene first. Oracle and/or its affiliates. All rights reserved.

All rights reserved. Oracle and/or its affiliates. 17 Copyright © 2013. . y. and z axes.Add and Position Objects Position Property Precise Positioning The Position property tells you where the object is positioned in the scene on the x.

In the Properties panel. Enter a value in the z axes and press enter.Add and Position Objects Steps to Position an Object Using Coordinates Precise Positioning 1. 18 Copyright © 2013. Enter a value in the x axes and press enter. Oracle and/or its affiliates. All rights reserved. . 2. and z axes fields. You must press the enter key after entering each value. 3. locate the Position property. The object will automatically re-position to the coordinates entered in the x. 4. y. Enter a value in the y axes and press enter.

Select a handle style. 3. Position the object j with yyour cursor by y selecting g and dragging gg g the rings that surround the object. . All rights reserved. Oracle and/or its affiliates. For example. or the sub-part of the object. the Translation handle style will present three arrows to use in positioning the object along the x.Add and Position Objects Steps to Use the Drag and Drop Method Imprecise Positioning 1. 19 Copyright © 2013. 2. using the cursor. y. Each handle style presents rings or arrows to assist you with your positioning. Select the object. and z axes.

y. and then select the Resize handle. Note: If you select a very large object in the scene. and z axes. y. Change the size of the object and stretch it along the x. and z axes.Add and Position Objects Types of Handle Styles Imprecise Positioning Handle Style Description Default Simple rotation and movement. select the Resize handle and then use the scrolling button on your mouse to resize the object object. Rotation Rotate about the x. . T Translation l ti M Move along l th the x. Resize 20 Copyright © 2013. All rights reserved. Oracle and/or its affiliates. and d z axes. If this happens. y. the positioning arrow that helps you resize the object may appear off of the screen.

. 21 Copyright © 2013. All rights reserved.Add and Position Objects Selected Object Properties Menu The Selected Object Properties menu in the Scene editor provides you with the ability to change the properties of the instance that is currently selected in the scene. Oracle and/or its affiliates.

. Oracle and/or its affiliates. For example: • Change the Opacity property of an instance to 0 during scene setup to make it disappear. 22 Copyright © 2013. All rights reserved. • Create a p programming g g statement to set the Opacity p y property of the instance to 1 so the instance reappears in the scene during execution of the animation.Add and Position Objects Modifying Properties Properties can be modified during scene setup and during animation execution.

opacity. Oracle and/or its affiliates. . 2. If the property fields for an instance are not displaying. The triangle in front of the Selected Object Properties button can hide or display the properties of an instance instance. Change properties such as its paint (color). Select the instance in the Scene editor. 23 Copyright © 2013.Add and Position Objects Steps to Change an Instance’s Properties in the Scene Editor 1. All rights reserved. click the triangle to display them. or size using the menus in the properties panel.

For example. All rights reserved. 24 Copyright © 2013. you may want an object’s head looking to the left when the animation begins. Oracle and/or its affiliates.Add and Position Objects Positioning an Object’s Sub-Parts Use handle styles to position an object’s sub-parts during scene setup. .

2. p Use the Undo feature when necessary. Use the rings around the sub-part to position it. All rights reserved. The right-pointing triangle next to the instance name indicates that there are additional cascading menus for the instance’s sub-parts. .Add and Position Objects Steps to Position Object Sub-Parts 1. Oracle and/or its affiliates. Select the sub-part that you want to position. Select the instance from the object properties menu. 25 Copyright © 2013. Repeat these steps p to p position additional sub-parts. 3.

. All rights reserved.Add and Position Objects Terminology Key terms used in this lesson included: • Orientation • One-shot O h t procedure d • Procedure • Properties 26 Copyright © 2013. Oracle and/or its affiliates.

.Add and Position Objects Summary In this lesson. you should have learned how to: • Open a saved version of a project • Add multiple lti l objects bj t tto a scene • Describe the difference between precise positioning and drag-and-drop drag and drop (or imprecise) positioning • Use a one-shot procedure to precisely position an object in a scene 27 Copyright © 2013. Oracle and/or its affiliates. All rights reserved.

Add and Position Objects Summary (cont. Oracle and/or its affiliates. . All rights reserved.) In this lesson. you should have learned how to: • Edit properties of an object in the Scene editor • Describe D ib th three-dimensional di i l positioning iti i axes • Position the sub-parts of an object in the Scene editor 28 Copyright © 2013.

Add and Position Objects Practice The exercises for this lesson cover the following topics: • Adding multiple objects to a scene • Using U i precise i positioning iti i ttechniques h i tto position iti an object in a scene • Using imprecise positioning techniques to position an object in a scene • Editing an object’s properties • Positioning the sub-parts of an object 29 Copyright © 2013. Oracle and/or its affiliates. . All rights reserved.