Chapter 1 Learning to Program With Alice



Similar documents
2 Programming in Alice: Program Design and Implementation

Petrel TIPS&TRICKS from SCM

CREATE A 3D MOVIE IN DIRECTOR

Objects in Alice: Positioning and Moving Them

Content Author's Reference and Cookbook

Create a Poster Using Publisher

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 9 The Game Engine

SimLab 3D PDF. Settings

AN INTRODUCTION TO ALICE AND OBJECT-ORIENTED PROGRAMMING

Guide To Creating Academic Posters Using Microsoft PowerPoint 2010

Anamorphic Projection Photographic Techniques for setting up 3D Chalk Paintings

Develop Computer Animation

Advanced Presentation Features and Animation

Tutorial: Biped Character in 3D Studio Max 7, Easy Animation

How to create pop-up menus

Content Author's Reference and Cookbook

Maya 2014 Basic Animation & The Graph Editor

What makes a good coder and technology user at Mountfields Lodge School?

Personal Portfolios on Blackboard

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

CREATING EXCEL PIVOT TABLES AND PIVOT CHARTS FOR LIBRARY QUESTIONNAIRE RESULTS

Beas Inventory location management. Version

Animation. Basic Concepts

Instructions for Creating a Poster for Arts and Humanities Research Day Using PowerPoint

Autodesk Fusion 360: Assemblies. Overview

Intro to 3D Animation Using Blender

mouse (or the option key on Macintosh) and move the mouse. You should see that you are able to zoom into and out of the scene.

How to create buttons and navigation bars

Graphic Design. Background: The part of an artwork that appears to be farthest from the viewer, or in the distance of the scene.

Welcome, today we will be making this cute little fish come alive. Put the UltimaFish.bmp texture into your Morrowind/Data Files/Textures directory.

Clay Animation A Interdisciplinary Lesson

Create an Art Collage

Make your own Temple Run game

1.0-Scratch Interface 1.1. Valuable Information

Sweet Home 3D user's guide

HOUR 9. Formatting Worksheets to Look Great

State of Illinois Web Content Management (WCM) Guide For SharePoint 2010 Content Editors. 11/6/2014 State of Illinois Bill Seagle

Microsoft Office PowerPoint Creating a new presentation from a design template. Creating a new presentation from a design template

The Rocket Steam Locomotive - Animation

By Glenn Fleishman. WebSpy. Form and function

How to Build a Simple Pac-Man Game

Importing and Opening an Alignment

Applying a circular load. Immediate and consolidation settlement. Deformed contours. Query points and query lines. Graph query.

Flash MX 2004 Animation Lesson

BUSINESS OBJECTS XI WEB INTELLIGENCE

KaleidaGraph Quick Start Guide

How to Use the Drawing Toolbar in Microsoft Word

m ac romed ia Fl a s h Curriculum Guide

Digital Video-Editing Programs

Adding Animation With Cinema 4D XL

Quick Start Tutorial Metric version

Fireworks 3 Animation and Rollovers

PowerPoint 2007: Basics Learning Guide

Understand the Sketcher workbench of CATIA V5.

Autodesk Fusion 360 Badge Guide: Design an F1 in Schools Trophy

Computer Science Concepts in Scratch

Ortelia Space Builder User Manual

How to Build a Web Site using your Web Host s Web Site Builder

Quick Start Tutorial Imperial version

Module 3 Crowd Animation Using Points, Particles and PFX Linker for creating crowd simulations in LightWave 8.3

COMPUTER SCIENCE (5651) Test at a Glance

Animation Action STUDIO. PROJECT 11 For use with Chapter 8. Objective SUPPLIES

Terminal Four (T4) Site Manager

Mobile App Tutorial Animation with Custom View Class and Animated Object Bouncing and Frame Based Animation

Hotspot Image Connector Page Guide

Welcome to Corel DESIGNER, a comprehensive vector-based drawing application for creating technical graphics.

Enhanced Formatting and Document Management. Word Unit 3 Module 3. Diocese of St. Petersburg Office of Training Training@dosp.

This process contains five steps. You only need to complete those sections you feel are relevant.

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

Publisher 2010 Create an Event Flyer

Dashboard Skin Tutorial. For ETS2 HTML5 Mobile Dashboard v3.0.2

Dreamweaver and Fireworks MX Integration Brian Hogan

How To Insert Hyperlinks In Powerpoint Powerpoint

WEB DESIGN COURSE CONTENT

SketchUp Instructions

Help. Contents Back >>

How to Configure Windows 8.1 to run ereports on IE11

Macros in Word & Excel

MET 306 Activity 6. Using Pro/MFG Milling Operations Creo 2.0. Machining a Mast Step

Microsoft Office PowerPoint 2013

Introduction to Microsoft PowerPoint

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0

REFERENCE GUIDE 1. INTRODUCTION

ANIMATION a system for animation scene and contents creation, retrieval and display

TLMC WORKSHOP: THESIS FORMATTING IN WORD 2010

House Design Tutorial

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Collision Theory and Logic

Clip Art in Office 2000

Tips for optimizing your publications for commercial printing

How to rotoscope in Adobe After Effects

Creating an invitation

3D Drawing. Single Point Perspective with Diminishing Spaces

Watch Your Garden Grow

Curriculum Map. Discipline: Computer Science Course: C++

Fireworks CS4 Tutorial Part 1: Intro

Transcription:

Chapter 1 Learning to Program With Alice (Duke Book) Rather than typing a difficult, long and obscure computer language in the hopes of getting a calculation, with Alice you will be more like a director of a play, where on screen objects act out the script you have created. Why should I even take a programming course? Some benefits of taking even 1 programming course are: o It is a way of learning a new way to think o Increases problem-solving skills Problem-solving is finding an answer to a question or figuring out how to perform a task. Computer programming is a pure, distilled form of problem-solving. Alice was originally developed as part of a research project in virtual reality. Alice is different from traditional computer programming because you use natural English words, like move forward or turn right. You can create 2 things with Alice: o Be a director of a 3D animated film o Create an interactive video game After you have learned how to use Alice, you will understand all of the fundamental ideas involved in programming without all of the frustration of the syntax of a computer language. Computer Program is a set of instructions that tell the computer what to do. Think of computer programming not only as a way of telling a computer what you want it to do, but as a way of telling another human being what you want the computer to do. Elegant a program is considered elegant if other human beings can easily understand and appreciate the intentions of the original programmer.

One can create an elegant program by documentation comments in the program, a web page for reference, or an accompanying written document like a user s manual that helps someone else understand what you were trying to do. All Computer Programs are Made From Very Simple Ideas: 1. A list of Instructions: Sequential programming when you perform a task in a specific order EXAMPLE: a recipe o Beat eggs o Mix in flour, sugar, and shortening o Pour into a baking pan o Bake at 375 degrees for 45 minutes 2. If s: Conditional execution perform an action based on a condition. EXAMPLE: o If you have Dove chocolate, you must share with Mrs. Martin. 3. Repeating Behavior: Looping or Iteration an action that is repeated for a given (numeric or conditional) time If a condition is true/false EXAMPLE: o For a numeric amount of times: Stomp your feet 5 times o Conditional: As long as there are M&M s, keep eating them 4. Breaking things up into smaller pieces: Problem Decomposition; Stepwise Refinement; Top-Down Design; Algorithm the process of doing a complicated task by breaking the task down into a list of smaller, simpler tasks. Once all of the simpler tasks are done, the complicated task is also accomplished. Reductionism an ancient philosophical approach to the process of doing a complicated task by breaking the task down into a list of smaller, simpler tasks.

5. Compute a Result: Perform a sequence of steps to obtain a result that is an answer to a question. EXAMPLE: o Look in the phone book and find the phone number for John Brown. This action actually asks a question of, What is John Browns phone number? Function in computer programming, a function is just a question. Calling a Function is asking a question so that you can compute a result. Computer programming is really just using the previous 5 ideas in various combinations. In reality, most computers really only understand about 100 different instructions. The millions of programs that run on computers use the same 100 instructions, but each in different orders and combinations. These different orders and combinations is what causes the complexity of computer programming. o EXAMPLE: Think of the game of chess There are only 6 kinds of chess pieces Each piece can only move in a simple pattern What makes chess hard or complex is all of the possible combinations of moves. Learning how to think about arranging a sequence of instructions to carry out a task-such as how to design a program-is probably the most valuable part of learning to program. Object - Oriented Programming (OOP) Most modern computer programming languages in which programs are organized into a set of methods that manipulate the properties of objects stored in a computer.

Why did they name this software Alice? o The Alice system is based on the use of objects. What makes Alice different from traditional OOP languages is that you can actually see the objects on the screen. o The team that developed Alice named it so in honor of Charles Lutwidge Dodson. Dodson was an English mathematician that wrote under the name, Lewis Carroll. He wrote, Alice s Adventures in Wonderland and Through the Looking Glass. Dodson and the developers of Alice both had a common belief: the most important thing to doing something complex was to make things simple and fascinating to a learner! Virtual World is a video game or simulation implemented in 3D. All Alice virtual worlds begin with a scene of a ground and sky. Some objects such as trees and houses provide a setting, while other objects such as people and animals play the role of actors in your script. Alice has a large number of 3D models these models are like a blueprint used to design a house. The blueprint provides the size, color and other attributes of the model. 3 Dimensions and 6 Directions Objects in Alice are 3 dimensional. Each object has width, height, and depth; these properties are in relation to the object, not in relation to the camera s view. o Height vertical, top to bottom o Width horizontal, left to right o Depth front to back, forward and backward

Each object in Alice has what is known as 6 Degrees of Freedom ways it can move around in the world; possible directions of motion. o Each object knows the 6 directions of movement in relation to itself. Orientation the 6 degrees of freedom in relation to the object, not the camera. Bounding Box is a yellow box that is displayed when you mouse-click on an object. (See picture above) Center of an Object Each object in Alice has a unique center it is not based on a calculation, but rather determined by the graphic artist when they first created the 3D model. The center point provides a reference for a pivot or spin type of movement, so not all centers for an object are at the center of mass. Objects that sit or stand have their center located at the bottom of the bounding box; for people it would be between their feet. Objects that are held also do not have their centers at the center of mass. This is so that when you rotate the object, it will swing, or rotate, about that point. Distance Distance is measured from one objects center to another object. Position Position is the point used from the center of an object within a world.

Alice automatically puts the center of the ground at the center of the world at position (0,0,0). Exercise: o Select a template to start a world o In the Object Tree, select the ground object o In the Details Area, select the properties tab o If you look at the pointofview you will see the coordinates, or position, as (0,0,0), which is the center of the world. Any object in the world is located relative to the center of the world. Animation Animation is a fantasy of vision, an illusion. In Alice, you move objects about creating an illusion of movement, and Alice renders, or creates; the animation. 3D Text In Scene Editor mode click on Create 3D Text in the Local Gallery. A text dialog box pops up and lets you choose font, bold, italics and a box to type in the text you want. Once you click OK the text is entered into the world as an object and is also displayed in the Object tree. To change a text object: o Click the object in the object tree o Click the properties tab in the Details Area o Click the text and then a pop-up box will appear and you can change the text. Modifying a String in the text object does not modify the name of the object.

Billboards You can create flat 2D images in any paint tool program and then import them into Alice. Billboards The flat images you created elsewhere and imported into Alice. The images must be saved as either;.gif,.jpg, or.tif Steps to import an image into Alice: o Create an image using a paint tool program o Save the image with any of the 3 extensions listed above o Open Alice o Go to File/Make Billboard o Navigate to wherever you saved your image o Click Import One use of billboards is an instruction box providing information to the user about how to play a game or simulation. Instructions: Up Arrow - - forward Down Arrow - - backward