In this tutorial we are going to make animation from a single image to imitate 3D effect.
For more advanced tutorial on 3D effect see
tutorial # 2With some 3d and videoFX software (Blender, AE) you can create an amazing 3D video from a single picture.
Gimp does not have those capabilities, yet, you can get a pretty 3D effect using this tutorial.
Requirements: GIMP 2.6 - 2.8.
GIMP experience level: intermediate.
Estimated time: 10-15 minutes.
Extra plugins requirement: Mirror-Layers (see attachment)
Attachment:
File comment: Just unpack and place .py file in plugin folder.
mirror-layers-0.1.7z [1 KiB]
Downloaded 659 times
Let's get started.
The original image is by Grennie6774 on
http://www.flickr.com/photos/grennie6774/6348247295/I modified the background, because I wanted to see more clearly how FG object moves in relation to the BG.
Still photo 3D effect animation
Below is a tutorial with an extra step of adding ping-pong animation effect. So the final animation at the end of this tutorial is somewhat different from the above GIF animation. I also had to scale it down to the GC acceptible file-size.
Step 1. Getting image for animation.
To get a better result you have to use a picture with single FG object. If you like challenges you can try an image with 2-3 objects at different distances from the camera's lens.
Step 2. Creating Depth Map.
Duplicate the original image and name it Depth Map (DM) or just Map.
Now you have to create DM from this layer. For that, use brush and paint your FG object. Use white color for closest parts of the object and for remote parts - grey colors slightly increasing value toward the background, which is supposed to be black.
The final result should look like this (as you can see, it does not have to be perfect)
Step 3. Finalizing DM
For better results DM should not contain any sharp edges. Gaussian blur your DM as shown in this picture. 10 is usually enough for 900x600 px image.
Your map is ready now
Step 4. Creating displacement layers (frames).
Duplicate your original image once more. Name it Displacement+1 or just +1.
Go to Filters>Map>Displace and set X displacement to 1. Uncheck Y displacement (it will become greyed out).
Important: make sure your Depth Map is chosen in the drop down for X displacement. Do not change Mode and Edge Behavior. Hit OK.
Step 5. Dublicate Displacement+1 layer and displace it again with the exact same settings. Repeat this step 3 more times.
You should get 5 displacment layers as shown in this picture (the workflow for this step is easy when you use keyboard shortcuts - Shift+Ctrl+D, Ctrl+F).
Rename you layers to avoid confusion (+1,+2,+3 etc.)
Step 6. Duplicate your original image again. Name it Displacement-1 or just -1. Move it to the bottom. Go to Map>Displace and set X displacement value to -1 (negative 1)
Repeat Step 6 three more times to create 5 displaced layers BELOW the original image.
You should have 12 layers now, from top to bottom: Map,+5,+4,+3, +2, +1, original, -1, -2, -3, -4, -5.
Step 7. Delete your Map layer.
Step 8. Run Animation>Playback. Right and left edges of displaced layers are popping out. Crop your image with the Crop tool to remove those edges.
Step 9. Adding ping-pong effect.
Use mirror-layers Python script or GAP or duplicate manually each layers from +4 to -4 and place them in reverse order.
Your animation is ready. Now you can save it as GIF, MNG or APNG animation (the latter requires APNG plugin)
I prefer saving my animation as XCFs and SWF flash (requires GIMP SWF plugin and SWFtools software installed on your Linux/Windows system == Mac users, sorry, I'm not sure about SWFtools compatibility with MAC OSX).
P.S. For my own collection I colored it a lil' bit to make it look less boring, so to say (here is a snapshot)
P.P.S. If someone's interested I can go on and make a second tutorial on how to make THIS kind of animation from a still image (this is not my own, just posted it here as an example)
Thanks for reading!