Академический Документы
Профессиональный Документы
Культура Документы
Programming
Introduction to Alice
Mike Scott
(Slides 1-1)
Visual Programmin
g
Introduction to Alice
What is Alice?
Named in honor of Lewis Carrolls (pen
name) Alice in Wonderland
Charles Lutwidge Dodgson was also a
mathematician and logician
Animation
Objects can be made to move around virtual
world (a simulation or a video game. Simple
Pixar.)
Visual Programmin
g
Introduction to Alice
Computer Programs
General purpose programming languages
can be used for almost any task
Alice is not a general purpose
programming language.
It is an application specific language
designed for a specific task, creating 3D
animations
lots of application specific languages.
Example: language for working with DNA data
Visual Programmin
g
Introduction to Alice
Fundamental Tools
Visual Programmin
g
Introduction to Alice
Introduction to Alice
Fast Start Up
Can quickly learn to create
a simple animation in a matter of minutes
a non-trivial animation in a few class periods
Visual Programmin
g
Introduction to Alice
Installing Alice
If you want to install Alice on you computer at home
use the CD that comes with the textbook
CD installation is straightforward
Visual Programmin
g
Introduction to Alice
Memory Management
Alice automatically manages memory
But, writing and testing an animation is an
intense load on the computing system
a crash can occur.
Best solution:
Alice (the program) reminds you every so often
so save your work
save your programs often!
if working in lab when you logout the computer is
wiped -> save to your account or to a backup
system such as a memory stick
Visual Programmin
g
Introduction to Alice
Visual Programmin
g
Introduction to Alice
10
Demo
Starting Alice
Loading a World
Running A World
Saving a World
How to Exit
Visual Programmin
g
Introduction to Alice
11
The World
Alice Programs / Movies take place in a
virtual world
When you start a new world in Alice you
select the background
The world consists
of a sky and the ground
Cant be changed after
creating the world
the world is not infinite
DEMO
(I dont like roller
coasters any more)
Visual Programmin
g
Introduction to Alice
12
Objects in Alice
Objects already exist. Hundreds of them
Visual Programmin
g
Introduction to Alice
13
Program an Object
Visual Programmin
g
Introduction to Alice
14
Sources of 3D objects
the local gallery that comes with the software
Alice web gallery
Visual Programmin
g
Introduction to Alice
15
Adding Objects
Click on the green Add Objects button
World expands and local gallery displayed
Visual Programmin
g
Introduction to Alice
16
Adding Objects
Local gallery divided into a directory based
on subject
add instances of objects to world by
dragging and dropping or
click on object and select add instance option
Visual Programmin
g
Introduction to Alice
17
star cookies
star cookie objects
Introduction to Alice
18
penguin class
Visual Programmin
g
Introduction to Alice
19
Introduction to Alice
20
Object Dimensions
Objects in Alice worlds are 3 dimensional
height
Visual Programmin
g
width
Introduction to Alice
depth
21
Object Position
Objects
are positioned in 3-D space
Have six degrees of freedom (directions of movement)
Visual Programmin
g
Introduction to Alice
22
Introduction to Alice
23
Exercises
if you want to work at home, install Alice on
your computer
Complete Appendix A, Part 1, using Alice
a walkthrough of using Alice
Visual Programmin
g
Introduction to Alice
24
Starting Tutorials
Visual Programmin
g
Introduction to Alice
25