Animated GIFs -- Putting a spin on the World
Creating an Animated Globe
Okay, you've gotta be asking yourself, why with so many spinning globes available on the 'net should I take the time to learn how to create one myself? EASY! With an animation you create yourself you're in total control. You choose the colors, the size, the shading (if any), etc... You could even paste your logo over the globe or have some text spinning around the world (if you've got the time and the inclination to undertake such a project).
You may also be wondering why I've chosen a higher-end animation to start with. Well... that's a bit more tricky. I've said before, in a previous animated GIF tutorial that I'm not all that fond of "cheesy" animations and I was having a hard time coming up with an idea for a good tutorial. I really believe, though, that if you follow through with this you'll accomplish something pretty cool.
For this tutorial you'll need either Paint Shop Pro, Photoshop or some other image editing software and some GIF animation software. I'll be using Gamani.com's GIF Movie Gear. You can get a demo from their website at Gamani.com.
You'll also need a flat picture of the world. I'll be using this one:
If you can't get your hands on one you can borrow this one.
You may notice that the world is actually repeated twice. This is so there won't be any seams in the image as we animate it.
Well, I think you've got everything you need to start so let's get at it.
You may recall, if you read the previous tutorials, that an animation is merely a collection of frames that make up the movie or animation. That said, what needs to be done here, to put a spin on the globe, is create a series of globes from the map image.
Paint Shop Pro Specifics (Photoshop below)
In Paint Shop Pro you need to create the water part of the globe first. To do so:
Create a new 120x120 pixel image.
Select the Shapes tool and set the Shape to Circle and the Style to Fill.
Place the cursor at 10,10 and draw a 100xx100 circle (see figure 3.1).
|figure 3.1 - the Oceans|
NOTE: You can use the info displayed at the lower-left corner of the main window to help you place the cursor and to size the shape.
You'll need 11 (eleven) of these and they need to be exactly the same. One way to do this is to select the first one you've created (Selections, Select All) and paste the selection 10 times into new images (Edit, Copy -- done once then Edit, Paste , As New Image -- 10 times). These 11 blue circles are the oceans for each frame.
Select the Selection tool, set the Selection Type to Square and the Feather value to 0.
Position the cursor in the top-left corner and drag a 100x100 square selection.
Choose Edit, Copy then Edit, Paste, As New Selection (see figure 3.2).
|figure 3.2 - first portion of map|
You need the new image because you'll want to deform the portion of the map image into a circular shape.
Set the background color to white.
Choose Image, Enlarge Canvas and set both the Width and Height values to 120. Place a check mark in the Center box.
Choose Image, Deformations, Circle. This will warp the map image a little so that it's more circular or spherical.
Choose Edit, Copy.
Make one of the blue circles the active image by clicking on its title bar.
Choose Edit, Paste, As Transparent Selection (see figure 3.3).
|figure 3.3 - first frame of globe|
To create the next frame(s) make a 100x100 square selection starting 20 pixels to the right (i.e. for the second frame start at 0,20 for the third start at 0,40, etc...).
Make sure that you enlarge the canvas from 100x100 to 120x120 and that you run the Circle deformation filter on each portion of the map.
Once you've got all the frames (all 11 of them) you can save each one as a GIF. I suggest numbering them w01.gif, w02.gif, w03.gif ... w11.gif.
You PSP users can skip over the Photoshop part that comes next and move on to the animating portion...
Don't tell the Paint Shop Pro users, but the process is a little easier with Photoshop. Instead of creating separate images you can create one, multi-layered image.
Start off with the same double map as above.
Create a new 130x130 RGB image.
Select the Marquee tool and use the Options tab to set the Shape to Rectangular and the Style to Constrained Aspect Ratio.
Make a selection in the map image starting at 0,0. This will be a 100x100 pixel square selection using the map file provided above.
Choose Edit, Copy.
Make the 130x130 image active by clicking on its title bar and choose Edit, Paste.
Make the Map image active by clicking on its title bar. Move the selection 20 pixels hitting Shift-Right Arrow twice.
Choose Edit Copy.
Make the 130x130 image active and choose Edit Paste.
Continue moving the selection to the right and pasting it into the 130x130 image until you have 11 layers (plus the background.
Make the first layer active.
Set the Marquee tool's Shape to Elliptical and draw a round selection in the layer starting at the upper-left corner.
With the selection active choose Filter, Distort, Spherize. In the Spherize dialog box set the Amount to 100 and the Mode to Normal.
You should have a layer that resembles figure 3.4.
|figure 3.4 - first frame of map|
Activate the second layer and press CTRL-F to repeat the Spherize filter. Repeat this for all of the layers.
NOTE: If you notice small pieces of the map outside of the selected area simply choose Select, Invert and press the delete key to get rid of the bits.
Add a layer above the background layer.
Draw a 120 pixel circular selection in it starting at 5,5.
Set the foreground color to a deep blue and press ALT-Backspace to fill the selection with the blue color.
You may notice that the Photoshop image is green instead of black. This was easily accomplished in Photoshop. Set the foreground color to green. On each map layer set the Preserve Transparency on and press ALT-Backspace. This will turn the map image green.
Now that you have each of the map layers and the ocean (blue circle) it's time to save the file.
Because Gamani.com's GIF Movie Gear can open Photoshop files using the layers as frames I simply saved the file as a .psd (native Photoshop) file.
Now that you have all of the frames it's time to animate them.
Fire up GIF Movie Gear (or whichever animation program you're using).
In GIF Movie Gear choose File, Open.
In the Open dialog box, move to the folder that you saved the frame files in, whether you saved a collection of GIF files from Paint Shop Pro (or another image editor) or you saved a Photoshop .psd file.
If you saved your images as separate GIF files use the mouse to select the last file (w11.gif), hold down the SHIFT key and select the first frame file. This will automatically select all of the frames and put them in the proper order.
If you saved the file from Photoshop, you can simply open the layered Photoshop file.
Click Open to add all of the frames to the animation file.
You will, by default, see your animation previewed in the Preview Animation window.
After viewing the animation click the Stop button in the Preview Animation window.
Choose Animation, Optimize.
Select Shrink Palettes (Global and Local).
Turn on all of the options under Frame Reduction.
Click OK to optimize the animation.
Choose Animation, Reduce Colors and set the number of colors (you can go quite low for this animation) and select No for Dither to Palette. Click OK.
Click Save As and give the file a name.
That's it! You've put your own spin on the World.
Be sure to check out some of our other Animation tutorials.
If you need highly-optimized animated GIFs and you need to create them quickly and easily using all of the features of a professional-level program, then you need to take a look at GIF Movie Gear from Gamani.com. Read our GIF Movie Gear review or test drive the free demo by visiting Gamani.com. Once you see how easy it is to use you'll become an instant fan!
Discount Coupon Code:
As a reader of GrafX-Design.com you can get a special discount by using the discount coupon code "grafx_300" when you purchase GIF Movie Gear!
We'd like to hear from you... If there are any animated GIF techniques you'd like to see covered, send us an e-mail.
Here's of list of our most popular graphics tutorials:
Quick Mask Have you ever wanted to do a little cutting and pasting and make it look as if your head was on someone else's body? Read more....
Transparent GIFs This technique demonstrates how to create transparent GIFs in Paint Shop Pro Read more....
Illustrating a Guitar - Part 1 It may seem to be quite an undertaking to create a realistic illustration of something like an electric guitar, but I wanted to challenge the ease-of-use of this software. Read more....
Creating Complex Shapes Drawing circles, squares, triangles , etc. is easy with a vector program. How do you combine these shapes to create something more complex, though? Follow this tutorial and you'll see how easy it can be to create just about any shape you need.
Download and try out the free demos and then save 10%, 20% and more when you decide to buy!
GrafX-Design.com has partnered with some of the best graphics software companies in the World to offer you terrific savings on your favorite programs.
We've been using AlienSkin's Photoshop Plug-ins for over a decade and they are still our favorites.
Create amazing, high-quality 3D graphics
Read our review of Xara 3D 6
or click the graphic below to download a free trial version