13
A Media Computation A Media Computation Cookbook Cookbook Manipulating Images and Sounds for Use in Alice Part 1: Image Manipulations Part 2: Advanced Image Manipulations, e.g., changing colors in an area Part 3: Chromakey for digital video effects Part 4: Manipulated Alice images Part 5: Sound manipulations Part 6: Manipulated sounds in Alice

A Media Computation Cookbook

  • Upload
    more

  • View
    34

  • Download
    3

Embed Size (px)

DESCRIPTION

A Media Computation Cookbook. Manipulating Images and Sounds for Use in Alice Part 1: Image Manipulations Part 2: Advanced Image Manipulations, e.g., changing colors in an area Part 3: Chromakey for digital video effects Part 4: Manipulated Alice images Part 5: Sound manipulations - PowerPoint PPT Presentation

Citation preview

Page 1: A Media Computation Cookbook

A Media Computation A Media Computation CookbookCookbookManipulating Images and Sounds for Use in AlicePart 1: Image ManipulationsPart 2: Advanced Image Manipulations, e.g., changing colors in an areaPart 3: Chromakey for digital video effectsPart 4: Manipulated Alice imagesPart 5: Sound manipulationsPart 6: Manipulated sounds in Alice

Page 2: A Media Computation Cookbook

How to use image How to use image manipulation with Alicemanipulation with AliceA. Create an image to appear as

a Billboard in an Alice world.B. Create images in Alice that

you can manipulate as snapshots.◦Like with chromakey

C. Make movies in Alice that you can then manipulate as video.

Page 3: A Media Computation Cookbook

A. Loading images as A. Loading images as billboards in Alicebillboards in AliceStep 1: Make a cool image that

you want to appear as an object in your Alice world.

Step 2: Import the image as a Billboard.

Page 4: A Media Computation Cookbook

Step 3: Move it around and Step 3: Move it around and use it like an objectuse it like an object

Page 5: A Media Computation Cookbook

B. Manipulating an Alice B. Manipulating an Alice world snapshotworld snapshotStep 1: Set up an Alice world the way you

want it.◦ If you want to chromakey,

drag the “Ground” into the trash make the “Atmosphere Color” of the world blue

(default) or green.

Page 6: A Media Computation Cookbook

Creating the snapshotCreating the snapshotStep 2: Program your objects to move

where you want them to go.Step 3: Play your world, and at the

right time, hit “Pause” and “Take Picture”

Page 7: A Media Computation Cookbook

Snapshot from Tutorial,Snapshot from Tutorial,Moved to the MoonMoved to the Moon

>>> capturedbirds = makePicture( getMediaPath("capture00.jpeg"))>>> capturedbirdsPicture, filename W:\mediasources\capture00.jpeg height 360 width 666>>> birds = scale(capturedbirds, 0.75)>>> birdsPicture, filename None height 271 width 500>>> chromakeyBlue(birds,moon)

Page 8: A Media Computation Cookbook

C. Manipulating an Alice C. Manipulating an Alice videovideoStep 1. Tell Alice not to remove frames after making a video!

(Change Preferences.)Only have to dothis once.

Page 9: A Media Computation Cookbook

Record your videoRecord your videoStep 2: From File menu, choose

“Export Video.”Click “Record” then “Play”When done, “Stop Recording”

and “Export Video.”

Page 10: A Media Computation Cookbook

Your frames are now Your frames are now savedsaved

Page 11: A Media Computation Cookbook

Doing Chromakey to a Set of Doing Chromakey to a Set of FramesFramesimport osdef chromakeySet(frames,background): newdir = "C:/temp/" for file in os.listdir(frames): if file.endswith(".jpg"): printNow(file) frame = makePicture(frames+file) chromakeyBlue(frame,background) writePictureTo(frame,newdir+file)

Page 12: A Media Computation Cookbook

Using Chromakey to put Using Chromakey to put Penguin in the junglePenguin in the jungle

>>> jungle = makePicture( getMediaPath("jungle.jpg"))>>> chromakeySet( "W:/mediasources/frames/", jungle)

Page 13: A Media Computation Cookbook

Try it!Try it!Take a snapshot of an Alice world

and put it on a new background.Put yourself into an Alice world.Put an Alice character into our

world.Create a collage with various

pieces of the pictures we have.