DOC PREVIEW
Duke CPS 004 - Lecture

This preview shows page 1-2-3-4-5 out of 16 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 16 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CompSci 4Starting AliceSept 5, 2006Prof. Susan RodgerAlice is named in honor of Lewis Carroll’s Alice in WonderlandAnnouncements• Research Study• Reading quiz – announced by email, must be completed before next class– Normally turn off 8:30am day of class– This time only, get a second chance…• Due Thursday – on your web page– Assignment 2– Classwork from Aug 31 and Aug 29 (added)• HELP – How do I get help? • Alice is free – www.alice.org• Laptop cart – Put back in slot and plug in!How this class will work•In class– Lecture/Demos – Work in assigned pairs – create new folder to work in for each class period– Checkoffs – show work to TA/UTA/Prof– Save your work until the grade appears on Blackboard!• Outside of class– Finish work done in class in pairs or singly– Reading before coming to class– Reading Quizzes– Assignments – individual work unless statedWhat Is Alice? • A modern programming tool• 3-D objects – automatically keeps track of– Which objects are in virtual world– Types of objects– Positions of objects in the world• Animation– Objects can be made to move in world• Written in Java – runs on PC and MacMemory Management• Alice automatically manages memory• Crashes can occur– Writing and testing an animation is an intense load on a computer• SOLUTION– Save your world every 15 minutes• Alice will remind you!– Save a backup copy, maybe on another system– Don’t need all backups (take up a lot of space)Object Position• Objects– Are positioned in 3D space– Have six degrees of freedomGalleries of 3D Objects• Sources of 3D objects– Local gallery – comes with Alice– Alice web galleryTypes of Animations• In Appendix A – you will see two kinds of animations– Movie• User “watches” animation• “machine-centric”– Interactive• User “participates” – clicks mouse, types a key• “user-centric”Events• Animations that are “interactive” depend on user’s actions– Mouse click– Keypress– Others (HeadMountedDevice, etc.)• Actions are “events”• Interactive programs are “event-driven”• More on this later in Chapter 5Interactivity in Alice• No interaction –ice skater routine• Animation with interaction –Simple Ice Skater– What are the events?– What response does the skater make to each event?Objects• What is an object?– Can be identified as unique from other things• How is an object unique?– Has a name– Has properties• Width, height, color, location, age, ss#, id#– Has a purpose• Associated actions it can perform• Tasks it can carry outClass• Objects are categorized into classes• Each object is an “instance” of the class• All objects in a class – Have similar properties– Generally can perform the same tasksObjects in a Virtual World• In Alice, each 3D model is a class of objects– chicken, chicken2, chicken3– Has colors• red, white, blue, grey, black, …Object Parts• Objects may be composed of partsCenter• At the center of mass• Where it stands on the ground• Where it is heldToday’s Class• Assigned groups• Classwork (see sheet for details)– Appendix A – Part 1 and Part 2 (NOT Appendix B)– Problems in Chapter 1• Get Checked off when finished• For today only, you do not need to complete your work outside of class if you do not finish• Do copy your work to Duke account, put in folder public_html/compsci4, new folder “chapter1”– Save your work until grade appears on


View Full Document

Duke CPS 004 - Lecture

Documents in this Course
Lecture

Lecture

18 pages

Chapter 7

Chapter 7

18 pages

Chapter 9

Chapter 9

15 pages

Java 1

Java 1

24 pages

Java 3

Java 3

11 pages

Lecture

Lecture

10 pages

Chapter 4

Chapter 4

28 pages

Chap 2

Chap 2

16 pages

Graphics

Graphics

20 pages

Lecture

Lecture

12 pages

HTML

HTML

16 pages

Java 1

Java 1

6 pages

Chapter 4

Chapter 4

16 pages

The Plan

The Plan

25 pages

Lecture

Lecture

16 pages

Chapter 6

Chapter 6

21 pages

Lecture

Lecture

18 pages

Lecture

Lecture

23 pages

Lecture

Lecture

19 pages

Lecture

Lecture

12 pages

Lecture

Lecture

5 pages

Lecture

Lecture

26 pages

Lecture

Lecture

16 pages

Chapter 7

Chapter 7

23 pages

Lecture

Lecture

21 pages

Lecture

Lecture

4 pages

Lecture

Lecture

4 pages

Lecture

Lecture

8 pages

Lecture

Lecture

4 pages

Lecture

Lecture

10 pages

Chapter 4

Chapter 4

32 pages

Java

Java

4 pages

CompSci 4

CompSci 4

18 pages

Lecture

Lecture

26 pages

CompSci 4

CompSci 4

12 pages

HTML

HTML

17 pages

Lecture

Lecture

16 pages

Chapter 5

Chapter 5

22 pages

Lecture

Lecture

4 pages

Chapter 4

Chapter 4

10 pages

Chapter 2

Chapter 2

15 pages

Chapter 8

Chapter 8

14 pages

Lecture

Lecture

15 pages

Load more
Download Lecture
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?