Georgia Institute of Technology Movies part 4 Barb Ericson Georgia Institute of Technology April 2006.

Slides:



Advertisements
Similar presentations
Continuation of chapter 6…. Nested while loop A while loop used within another while loop is called nested while loop. Q. An illustration to generate.
Advertisements

ManipulatingPictures-Mod6-part21 Manipulating Pictures, Arrays, and Loops part 2 Barb Ericson Georgia Institute of Technology.
Georgia Institute of Technology Movies part 3 Barb Ericson Georgia Institute of Technology April 2006.
Let’s Make a Movie Editing, Special Effects, and Movie Finishing.
Persistence of Vision What makes movies work is yet another limitation of our visual system: Persistence of vision We do not see every change that happens.
Intro-Sound-part21 Introduction to Processing Digital Sounds part 2 Barb Ericson Georgia Institute of Technology Oct 2009.
NestedLoops-part31 Nested Loops – part 3 Barb Ericson Georgia Institute of Technology Nov 2009.
Georgia Institute of Technology Speed part 3 Barb Ericson Georgia Institute of Technology May 2006.
Georgia Institute of Technology Introduction to Media Computation Barb Ericson Georgia Institute of Technology May 2006.
Georgia Institute of Technology Creating and Modifying Text part 4 Barb Ericson Georgia Institute of Technology Oct 2005.
Media Computation Workshop Day 2 Mark Guzdial College of Computing Georgia Institute of Technology
CreatingClasses-part11 Creating Classes part 1 Barb Ericson Georgia Institute of Technology Dec 2009.
Georgia Institute of Technology Movies part 5 Barb Ericson Georgia Institute of Technology April 2006.
Copyright © Curt Hill Turtles The beginning of media computation.
Georgia Institute of Technology Movies part 2 Barb Ericson Georgia Institute of Technology April 2006.
CPSC1301 Computer Science 1 Chapter 14 Creating and Modifying Movies part 2.
Georgia Institute of Technology Processing Sound Ranges Barb Ericson Georgia Institute of Technology July 2005.
UsingSoundRanges-part21 Processing Sound Ranges part 2 Barb Ericson Georgia Institute of Technology Oct 2009.
CSC1401 Classes - 1. Learning Goals Computing concepts Identifying objects and classes Declaring a class Declaring fields Default field values.
Case study Students. Array of objects Arrays can hold objects (ref to objects!) Each cell in an array of objects is null by default Sample: from student.
Georgia Institute of Technology Pictures and Alice Barb Ericson Georgia Institute of Technology September 2006.
Georgia Institute of Technology Manipulating Pictures, Arrays, and Loops Barb Ericson Georgia Institute of Technology August 2005.
NestedLoops-Mod7-part31 Two-Dimensional Arrays and Nested Loops – part 3 Bugs in the garden Originally by Barb Ericson Georgia Institute of Technology.
CSC1401 Classes - 2. Learning Goals Computing concepts Adding a method To show the pictures in the slide show Creating accessors and modifiers That protect.
Georgia Institute of Technology Movies Barb Ericson Georgia Institute of Technology April 2006.
Georgia Institute of Technology Two-Dimensional Arrays and Nested Loops – part 5 Barb Ericson Georgia Institute of Technology August 2005.
NestedLoops-part41 Nested Loops – part 4 Barb Ericson Georgia Institute of Technology Nov 2009.
NestedLoops-Mody7-part51 Two-Dimensional Arrays and Nested Loops – part 5 Rotations Barb Ericson Georgia Institute of Technology May 2007.
Georgia Institute of Technology More on Creating Classes part 2 Barb Ericson Georgia Institute of Technology Oct 2005.
Conditionals-Mod8-part41 Conditionals – part 4 Replace background Barb Ericson Georgia Institute of Technology May 2007.
Georgia Institute of Technology Creating Classes part 4 Barb Ericson Georgia Institute of Technology May 2006.
CreatingClasses-SlideShow-part41 Creating Classes part 4 Barb Ericson Georgia Institute of Technology Dec 2009.
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
CreatingClasses-SlideShow-part31 Creating Classes part 3 Barb Ericson Georgia Institute of Technology Dec 2009.
Georgia Institute of Technology Creating Classes part 2 Barb Ericson Georgia Institute of Technology June 2006.
Georgia Institute of Technology Speed part 4 Barb Ericson Georgia Institute of Technology May 2006.
Georgia Institute of Technology What is new in Java 5.0 (1.5)? Barb Ericson Georgia Institute of Technology June 2006.
Windows Movie Maker Lesson 2 Adding Titles, Transitions, and still pictures to Movie Maker.
SourceAnatomy1 Java Source Anatomy Barb Ericson Georgia Institute of Technology July 2008.
Intro-Sound-Mod10-part31 Introduction to Processing Digital Sounds part 3 while loop, tracing, for loop, parameters Barb Ericson Georgia Institute of Technology.
Georgia Institute of Technology Making Text for the Web part 2 Barb Ericson Georgia Institute of Technology March 2006.
ManipulatingPictures-part31 Manipulating Pictures, Arrays, and Loops part 3 Barb Ericson Georgia Institute of Technology Nov 2009.
04-ManipulatingPictures-part21 Manipulating Pictures, Arrays, and Loops part 2 Barb Ericson Georgia Institute of Technology June 2008.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
What is Windows Movie Maker? Windows Movie Maker is an easy to use video editing software that allows you to make home movies, automated photo albums,
Georgia Institute of Technology More on Creating Classes Barb Ericson Georgia Institute of Technology June 2006.
Georgia Institute of Technology Two-Dimensional Arrays and Nested Loops – part 4 Barb Ericson Georgia Institute of Technology August 2005.
Lesson 6: Enhancing Presentations
Manipulating Pictures, Arrays, and Loops part 2
Barb Ericson Georgia Institute of Technology Dec 2009
Barb Ericson Georgia Institute of Technology August 2005
Manipulating Pictures, Arrays, and Loops part 2
Manipulating Pictures, Arrays, and Loops
Arrays versus ArrayList
Processing Sound Ranges part 1
Barb Ericson Georgia Institute of Technology April 2006
Introduction to Processing Digital Sounds part 3
class PrintOnetoTen { public static void main(String args[]) {
Manipulating Pictures, Arrays, and Loops
Manipulating Pictures, Arrays, and Loops
Processing Sound Ranges part 2
Processing Sound Ranges
More on Creating Classes
Manipulating Pictures, Arrays, and Loops
Processing Sound Ranges part 3
Creating and Modifying Text part 3
Barb Ericson Georgia Institute of Technology Oct 2005
Barb Ericson Georgia Institute of Technology April 2006
Manipulating Pictures, Arrays, and Loops part 6
Barb Ericson Georgia Institute of Technology May 2006
Presentation transcript:

Georgia Institute of Technology Movies part 4 Barb Ericson Georgia Institute of Technology April 2006

Georgia Institute of Technology Learning Goals Media Goals –To generate special effects like a person fading out of a scene –To add an object to an existing movie Computing Concepts –To add parameters to methods to make them reusable –To reuse earlier methods in making movies

Georgia Institute of Technology Fading Out or In You can change the threshold on swapBackground(backgroundPicture, newBackPicture,threshold); –In the loop –To swap more background over time –You can even make the person in the picture disappear over time

Georgia Institute of Technology Fade Out Movie

Georgia Institute of Technology Code for Fade Out Movie public void makeFadeOutMovie(String directory) { // load the pictures String kidF = FileChooser.getMediaPath("kid-in-frame.jpg"); Picture kidP = null; String wallF = FileChooser.getMediaPath("bgframe.jpg"); Picture wallP = new Picture(wallF); String beachF = FileChooser.getMediaPath("beach.jpg"); Picture beachP = new Picture(beachF); // declare other variables FrameSequencer frameSequencer = new FrameSequencer(directory); int framesPerSec = 30;

Georgia Institute of Technology Code for Fade Out Movie - Cont // loop creating the frames for (int i = 0; i < framesPerSec * 2; i++) { kidP = new Picture(kidF); kidP.swapBackground(wallP,beachP,i); frameSequencer.addFrame(kidP); } // play the movie frameSequencer.play(framesPerSec); }

Georgia Institute of Technology Main for Testing public static void main(String[] args) { MovieMaker movieMaker = new MovieMaker(); String dir = "c:/intro-prog-java/movies/fade/"; movieMaker.makeFadeOutMovie(dir); }

Georgia Institute of Technology Exercise Create a new method in MovieMaker Make a movie where you increase the amount of edge detection over time which will make the picture disappear over time –Be sure to start with the original picture each time

Georgia Institute of Technology Changing A Movie You can make a series of JPEG frames from a movie (MPEG) –Using MediaTools Click in Video Tools Click on the Menu Button –Then click on Create Folder of Frames from MPEG –Or use QuickTime Pro

Georgia Institute of Technology Adding Objects to Movies Create a File object on the directory that holds the JPEG frames of the movie Get a list of file names in the directory –Using list() Create a Picture of the image you want to copy Loop through all the file names –Create a picture from the current file name in the movie –Copy into the picture the picture you want to copy Change the location each time through the loop –Add the picture to the FrameSequencer

Georgia Institute of Technology Mommy Watching Katie Dance

Georgia Institute of Technology Code for Mommy Watching Movie public void makeMommyWatchingMovie(String dir) { String barbF = FileChooser.getMediaPath("barbaraS.jpg"); String katieDir = FileChooser.getMediaPath("kid-in-bg-seq/"); Picture barbP = new Picture(barbF); FrameSequencer frameSequencer = new FrameSequencer(dir); Picture currP = null; // get the array of files in the directory File dirObj = new File(katieDir); String[] fileArray = dirObj.list();

Georgia Institute of Technology Code for Mommy Watching Movie - Cont // loop through the array of files for (int i = 0; i < fileArray.length; i++) { if (fileArray[i].indexOf(".jpg") >= 0) { currP = new Picture(katieDir + fileArray[i]); currP.copy(barbP,22,9,93,97,i * 3, i * 3); frameSequencer.addFrame(currP); } // play the movie frameSequencer.play(30); }

Georgia Institute of Technology Main for Testing public static void main(String[] args) { MovieMaker movieMaker = new MovieMaker(); String dir = "c:/intro-prog-java/movies/mommy/"; movieMaker.makeMommyWatchingMovie(dir); }

Georgia Institute of Technology Exercise Create a new method in MovieMaker Make a movie with the turtle in turtle.jpg crawling across the frames of the movie in mediasources/blowhole –How would you vary the speed of the turtle, so that it gets faster as it moves from left to right?

Georgia Institute of Technology Summary You can do movie special effects –Like having a person fade in or out You can add objects to an existing movie –Break the movie into a series of JPEG –Modify the frames Adding parameters to methods makes them easier to reuse You can have more than one method with the same name in a class –As long as the parameter list is different