Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July 2013 Updates.

Slides:



Advertisements
Similar presentations
Visual Lists By Chris Brown under Prof. Susan Rodger Duke University July 2012.
Advertisements

Space Man Sam: Grammar Mistakes By Aleis Murphy Duke University, Under the direction of Professor Susan Rodger July 2010.
Alice Learning to program: Part Four Creating Sounds, Making Billboards, Fun with 3-D Text, New Events, and Rotating Objects by Ruthie Tucker and Jenna.
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 2: Using Methods.
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 3: Billboards, Events, Sounds,
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
How Tall Are You? Introducing Functions By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made June 2014 by.
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
SETTING UP CAMERA VIEWS LESSON Setting camera views using objects, based on a lesson by Bella. Adventures in Alice Susan Rodger Duke University July 2013.
Lights Camera Action! Part 3: BDE Events By Deborah Nelson under the direction of Professor Susan Rodger Duke University July 2008.
Creating a 3D Interactive Story Prof. Susan Rodger Duke University Feb. 24, 2007.
Alice Learning to program: Part 1 Scene Setup and Starting Animation by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke.
Calvin and Hobbes Teach Properties and Functions Created by Daniel MacDonald under the direction of Professor Susan Rodger Duke University June 2013.
Methods Tutorial: Part One By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 9, 2008.
METHODS!.  A method is a sequence of instructions or behaviors that will be carried out when requested.  You can use them to create new methods so that.
Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Princess & Dragon Part 4: Breathing Fire—Adding Effects to Alice By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
Animated Charting Using the Alice Bar Chart Template World By Elizabeth Liang under the direction of Professor Susan Rodger Duke University December 2010.
Lights Camera Action! Part 2: Controlling Light in Alice By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June 2009.
Checking for Collisions Ellen Yuan Under the direction of Professor Susan Rodger at Duke University June 2014.
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
Making a Boat Racing Game in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2010.
Changing Camera Views! Part 2: Simple Scene Change & Lighting Fixes By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July.
3–D Helium Molecule Tutorial Alice Project Duke University Professor Susan H. Rodger Gaetjens Lezin June 2008.
Camera Control: Learning to Use the Camera in Alice By Henry Qin, edited by Jenna Hayes under the direction of Professor Susan Rodger Duke University,
Camera Control: Learning to Use the Camera in Alice By Henry Qin, edited by Jenna Hayes under the direction of Professor Susan Rodger Duke University,
Teaching a character to walk in more than one world: Parameters and Inheritance. By Lana Dyck under the direction of Professor Susan Rodger Duke University.
By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008.
Lists Tutorial By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008.
An Introduction to Alice (Short Version) – Extras! Yossra Hamid Under the Supervision of Professor Susan Rodger Duke University, June 2014 This is a continuation.
Making a Timer in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
Skater World: Part Two By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1,
Alice Learning to program: Part Two Writing Your Own Methods by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University,
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops Susan Rodger Duke University July 2011.
The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
Illuminating Computer Science CCIT 4-6Sep
Creating a Historical Tour in Alice By Jenna Hayes May 2010.
The Essentials of Alice Mrs. Jayne Slease SBMS CTE Computer Science and Animation Credit to Duke Students under the direction of Professor Susan Rodger.
Creating a 3D Interactive Story Prof. Susan Rodger Duke University July 19, 2007.
Learning to Program: Part 1 Scene Setup and Starting Animation by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University,
Skater World: Part Three By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009.
Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 1, 2009.
An Introduction to Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University, June 2009 Updated June 2014 by Ellen Yuan.
BDE tutorial By Deborah Nelson Duke University Under the direction of Professor Susan Rodger July 13, 2008.
Repetition everywhere – comparing while in a method and as an event Susan Rodger Duke University July 2010.
Illuminating Computer Science CCIT 4-6Sep
Using Placeholders to Simplify your Methods: Learning Methods, Part 2 By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008.
Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008.
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
How Tall Are You? Introducing Functions for Alice 3 By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 Updates made.
The Essentials of Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University May 2009.
An Introduction to Alice (Short Version)
Teaching Characters to Walk: Learning Methods, Part 1
Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops
Making Objects Move in Unison: Using Lists
Skater World: Part Three
Making Objects Move in Unison: Using Lists
Making Objects Move in Unison: Using Lists
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
An Introduction to Alice
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events
How Tall Are You? Introducing Functions
Getting Started With Alice
Professor Susan Rodger
Headshots in Alice Duke University Professor Susan H. Rodger
Professor Susan Rodger
Making Objects Move in Unison: Using Lists
Presentation transcript:

Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July 2013 Updates made June 2014 by Yossra Hamid

Introduction! You will become more comfortable: Dropping dummy cameras to create interesting views Using the camera’s vehicle property Using the camera’s set point of view to method Using a walking character In this tutorial, we will set up four camera views that will focus on the main character in our Alice world. As she walks, we will change the camera’s point of view in order to see different sides/angles of the character.

Section 1a: Setting up the World Create a new world  snow template. Save it! After you have saved the file go into the "Layout" mode by clicking on the green button Add Objects. 1) Click more controls  drop a dummy at camera. 2) In the object tree, right click on ‘Dummy Objects’. Rename the folder to ‘cameraViews’. 3) Open the new cameraViews folder. Right click on ‘dummy’ & Rename the dummy to 'originalView’

Section 1b: Adding Objects In the gallery below, click on the People folder. Place the Rockette in the world so it looks like this! Add Rockette to your world! If you look at Rockette’s methods tab, you should see that she already knows how to walk! We will use this later! Update: Rockette is not available in the newer versions of Alice. Instead, use the AliceLiddell object.

Section 1b: Adding Objects (cont..) Click on Local Gallery. Open the Roads and Signs folder. Add a Road to the world. Once you resize the Road, use the buttons in the upper right-hand corner to position the scene like this. Right click on Road in the object tree. Resize the Road to be 3 times bigger: Methods  Resize  other  3

Section 1b: Adding Objects (cont..) Click on Local Gallery. Open the Buildings folder. Use the buttons in the upper right-hand corner to position the scene like this. Add an Igloo to the world.

Section 1b: Adding Objects (cont..) Click on Local Gallery. Open the Holidays folder. Open the Christmas folder. Use the buttons in the upper right-hand corner to position the scene like this. Add a ChristmasTree to the world. Update: The ChristmasTree object no longer exists in newer versions of Alice. Instead, open the Nature folder, and add PineTree object.

Section 1c: Adding Dummy Cameras We want to drop 3 additional dummy cameras around the Rockette: 1)rightSideView 2)frontView 3)leftSideView Method 2: Using Alice built-in methods (Right click on camera in object tree) 1)camera set point of view to rockette 2)camera move (right, forward, or left) 5 meters 3)camera turn to face rockette 4)camera move up ½ meter Method 1 : Using the camera buttons You will need to use the middle set of buttons for most of the camera movement. The leftmost set of buttons will also be useful. You will not need to use the rightmost set of buttons. Screen shots of the camera views that you need to have are on the next slide Once you get the camera in the proper position, drop a dummy camera, and rename it appropriately & repeat for the other views.

Section 1c: Adding Dummy Cameras (cont…) originalViewrightSideView leftSideView frontView Click DONE when you are finished. You should now have these 4 camera views setup!

Section 2: Writing the Code! At the same time that the Rockette is walking down the road, we want to change the camera’s point of view to the leftSideView, frontView, rightSideView, and then Rockette’s point of view, a default camera view. DO TOGETHER rockette walk DO IN ORDER camera set POV to leftSideView camera set POV to frontView camera set POV to rightSideView camera set POV to rockette.head I’ll show you exactly how to write this code in the next few slides!

Section 2: Writing the Code! (cont…) In world.my first method, Drag in a Do together and then drag in a Do in order inside of the Do together Next, we will make the rockette walk! Click on rockette in the object tree. Drag and drop the walk method into the Do togther, and above the Do in order. Select for the rockette to move 20 meters. Play the world to see what happens!

Section 2: Writing the Code! (cont…) The rockette moves really fast because she needs to cover 20 meters in one second! To fix this, we will make a loop that runs 20 times. Each time the loop runs, the rockette will walk 1 meter, in 1 second. Try this: Make sure you change the distance that rockette walks to be 1 meter! Play the world to see what happens now!

Section 2: Writing the Code! (cont…) Alright! Now that we have the rockette walking, we can worry about how to move the camera around her as she walks! Click on camera in the object tree. Go to the methods tab, and click and drag camera set point of view  originalView. Place this in the Do in order Change the duration to 3 seconds!

Section 2: Writing the Code! (cont…) Do the same thing for the other views in the cameraViews folder that you created earlier! Click on camera in the object tree. Go to the methods tab, and click and drag camera set point of view to 1)rightSideView 2)frontView 3)leftSideView Place these in the Do in order Change the duration to 3 seconds! Play the world to see what happens now!

Section 2: Writing the Code! (cont..) Oh no! The rockette walked right out of the camera’s view! We need to figure out how to make the camera follow the rockette, no matter where she goes! We will use the vehicle property! We must set the vehicle for each of the camera views to be the rockette. This will “glue” the camera to the rockette. Click on camera in the object tree. Click on the properties tab. Change the vehicle to be the entire rockette. Change the vehicle for each of the camera views (originalView, rightSideView, frontView, leftSideView) by clicking on each, one at a time, in the object tree. Select the properties tab. Change Vehicle to the entire rockette. Play the word now to see what happens!

Section 2: Writing the Code! (cont…) Let’s add one more camera view! This one will be from the point of view of the rockette. Click on camera in the object tree, go to the methods tab, and drag set point of view to Rockette  hips  stomach  torso  collar  head  entire head so that it is the last thing in the Do in order command.

Section 2: Write the Code! (cont…) The last thing we will do is turn the rockette left ½ revolution: Click on rockette in the object tree. Change the duration to 2 seconds. Drag turn to the bottom of the method editor, outside of the do together.

Section 2: Write the Code! (cont…) Here is the final code for world.myfirstmethod:

Section 3: Finishing up! Play the world! Now you should feel more comfortable with manipulating the camera to create interesting views!

Section 3: Finishing up! We set up a camera view for the original scene view called “originalView,” but we later moved it with our character. However, if you would easily like to go back to that original scene in your animation, here is a simple solution: Set the camera’s POV to originalView, in place Drop a dummy camera & rename it backView Set the vehicle of backView to the rockette Set the vehicle of the originalView to world Now you can move the backView with the rockette, instead of the originalView You will essentially replace originalView with a dummy object called backView in the Do in order NOTE:

Section 4: Challenges and more! You up for a challenge?! Want to learn how to make a simple scene change? Check out Part 2 of this tutorial! 1)Add more dummy cameras (new camera views) 2)Check out what happens when you tell the camera to turn 1 revolution around rockette (try using “as seen by”!) 3)What happens next? Add more characters to create a more interesting scene