graphics movies & games

26
Graphics Movies & Games

Upload: traci

Post on 11-Feb-2016

37 views

Category:

Documents


0 download

DESCRIPTION

Graphics Movies & Games. Jump In!. Feeling sleepy and stupid…. • Extract the Alice from the zip archive and copy it to C:\Programs. A Link on Your Desktop. • This step is optional, but doing it will make your life e asier later on • Click on an empty area of your desktop and - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Graphics Movies & Games

GraphicsMovies & Games

Page 2: Graphics Movies & Games

Jump In!

Page 3: Graphics Movies & Games

Feeling sleepy and stupid…

• Extract the Alice from the zip archive and copy it to C:\Programs.

Page 4: Graphics Movies & Games

A Link on Your Desktop• This step is optional, butdoing it will make your life easier later on• Click on an empty areaof your desktop andchoose “New|Shortcut”• In the dialog that popsup, browse toC:\Program Files\Alice,find Alice.exe, selectit, choose “Next”, andthen “Finish” on thenext dialog.

Page 5: Graphics Movies & Games

Down the Rabbit-hole• Now click on the link (or otherwise start Alice)• Choose “Start the Tutorial”

Page 6: Graphics Movies & Games

The Pool of Tears• Now do the 2nd Tutorial• When you are doneyou have a goodfeeling of whatAlice is all about

Page 7: Graphics Movies & Games

Creating Your Own Movie• Click on File– Then New World

• Click on a template

– Background and ground type

Page 8: Graphics Movies & Games

Add Objects To the World

Page 9: Graphics Movies & Games

Add Objects to the World• Select an object to add

– Click on object to select

• Click Add Instance toworld Button– Or drag the object anddrop it into positionsomewhere in the world

Page 10: Graphics Movies & Games

Position an Object in the World

Page 11: Graphics Movies & Games

Mouse Controls• Use mouse control buttons (from left

to right)– To move object left, right, forward, back– Up and down– Turn left or right– Turn forward or backwards– Tumble the object (free rotation)– Resize object– Copy the object

Page 12: Graphics Movies & Games

Deleting an Object• Click on the object you

want to delete– The object will bedisplayed with a bounding box around it

• Click the right mousebutton– Select delete from thepop-up menu

Page 13: Graphics Movies & Games

Posing an Object

Page 14: Graphics Movies & Games

Objects do Things in Methods• In object-oriented

programming we askobjects to do things– They are born ‘knowing’some things– We can teach them newthings

• In Alice we will do this in amethod– A named set of requeststo objects– The play button executes• world.my first method

Page 15: Graphics Movies & Games

Viewing Methods

Page 16: Graphics Movies & Games

Use Methods• Drag method names from

the details windowMethods area– to world.my first method

• Can Group Methods– Do in order

• One after the other– Or Do together

• At the same time

Page 17: Graphics Movies & Games

Moving and Deleting a Method• You can pick up a method

and move it– Click on left (dotted)edge and drag it– Legal places to drop itwill have a green line

• To delete move to thetrash can– Or right click and pickdelete from the popupmenu

Page 18: Graphics Movies & Games

Posing an Object using the Menu

• You can also use a popupmenu to pose an object– Right click on an object in the object tree to bring up the methods• Select a method to execute it• Click on the Undo button to undo this action

Page 19: Graphics Movies & Games

Quad View

Page 20: Graphics Movies & Games

Camera Controls• Use camera controls to

change the startingcamera view– Move up, down, left, right– Drive forwards,backwards, rotate left,rotate right– Tilt (rotate) cameraforwards or backwards

Page 21: Graphics Movies & Games

Saving a World

Page 22: Graphics Movies & Games

Creating a Method• To teach an object to do a

new thing– Create a new method– Name the method– Drag other methods intothe new method– When you are done usethe new method inworld.my first method

Page 23: Graphics Movies & Games

Creating a Class• A class can ‘inherit’ from an existing class

– Right click on object in object tree and rename it • Right click and select save object (really save class)– Create copies of the object using mouse controls • Know the same methods– To make the methods work on any object of the class • Add a parameter for the object that it is invoked on

• To move sub-parts need part named function – Be careful typing the name of the part » Case sensitive

Page 24: Graphics Movies & Games

Creating People• You can use the she

builder and he builder tobuild custom people– In the people category– Control the skin color,hair, eyes, body, andclothes

Page 25: Graphics Movies & Games
Page 26: Graphics Movies & Games

Threads that Bind Us• I encourage you to learn more about Alice’s

inspirational architect-- Prof. Randy Pausch