It is currently Thu Apr 25, 2024 12:24 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: 3D effect animation tutorial
PostPosted: Fri Oct 19, 2012 11:48 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
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 # 2
With 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.
Image

Still photo 3D effect animation

Image

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.
Image

The final result should look like this (as you can see, it does not have to be perfect)

Image



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.
Image

Your map is ready now
Image
Image

Step 4. Creating displacement layers (frames).
Duplicate your original image once more. Name it Displacement+1 or just +1.

Image

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.


Image

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.)
Image

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)

Image

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.

Image

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.

Image

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.
Image

Your animation is ready. Now you can save it as GIF, MNG or APNG animation (the latter requires APNG plugin)

Image

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)
Image


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)
Image

Thanks for reading!


Last edited by K1TesseraEna on Wed May 29, 2013 10:07 am, edited 3 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 12:35 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Nice one, K1TesseraEna :bigthup
For sure another tutorial would be welcome!

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 12:56 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Really nice tutorial and would love to see another on the boat type effect.

_________________
Image


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 7:21 am  (#4) 
Offline
GimpChat Member

Joined: Sep 08, 2012
Posts: 24
Location: Germany
This is so cool!
Yes please - another tutorial :)


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 7:39 am  (#5) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Very cool. nice work...more tutorials are always welcome.

_________________
Image


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 7:41 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Very nice. Thanks!
I love the picture you chose. You can really see a 3D effect on the final result.
A tutorial to make that last animation would be great too.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 8:16 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7309
Location: Göteborg at last!
Nice tutorial. There's some work here as well. viewtopic.php?f=11&t=4647


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 9:03 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Erisian wrote:
Nice tutorial. There's some work here as well. viewtopic.php?f=11&t=4647



Thank you, Erisian!

It's an interesting effect, but totally different approach/technique is used. And no doubt, more time-consuming.
You can also see the borders between fg, bg and mid-point slices.

I don't slice my image and get its parts move in different directions to create a depth effect. If I had to do all that hard work of slicing and moving manually, it would probably be no tutorial from my part at all (I'm too lazy, :hehe)


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 10:05 am  (#9) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
:wow K1te. That is great. Thanks for the tutorial.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 7:26 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Both effects are really good!


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 11:03 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Great tutorial and easy to follow, here is my results

Image

Don't know if mine is maybe a bit slow, thats about the only thing missing from the tutorial is a guide to what frame rate should be used.

_________________
Image


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sat Oct 20, 2012 11:41 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Nice job, he4rty!

If you saved xcf version of your work with D-map, I would recommend trying one more thing. Instead of displacing in X-coordinate, try Y-displacement with the same workflow and see how it works out. Instead of going east-west the fg object (man in this case) will move south-north, or should I say, the hypothetical observer would move up, over and down. I would love to see the final animation!!!

he4rty wrote:
Don't know if mine is maybe a bit slow, thats about the only thing missing from the tutorial is a guide to what frame rate should be used.


I set mine to the default 100, then changed to 140 ms, because it was a little bit faster than I'd expected. But in GIMP it's easy to change frame delays using scripts, there's actually quite few of them out there.

Thanks, he4rty!


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sun Oct 21, 2012 12:01 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
I did save the depth map (after all the work of creating it I sure wasn't going to just delete it :mrgreen: )

Good suggestion on the change of direction, it works well, heres the outcome

Image

I did speed up the animation a bit compared to the other image and K1TesseraEna you don't have to be polite the man in the photo is me.

_________________
Image


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sun Oct 21, 2012 12:07 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
he4rty wrote:
I did save the depth map (after all the work of creating it I sure wasn't going to just delete it :mrgreen: )

Good suggestion on the change of direction, it works well, heres the outcome

I did speed up the animation a bit compared to the other image and K1TesseraEna you don't have to be polite the man in the photo is me.


Great job again, he4rty! And nice to meet you in person! :hi5


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sun Oct 21, 2012 12:18 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
K1TesseraEna wrote:
Great job again, he4rty! And nice to meet you in person! :hi5


Its only a great job because your tutorial was easy to follow, also in the past I think I've tried to be to precise with depth maps and hadn't realised they could be so rough and ready.

_________________
Image


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sun Oct 21, 2012 3:21 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
Loving this tutorial, so decided to browse the fb photos for a possible good one, came across this one. Its my daughter on stilts, she took the previous photo, hence the strange perspective.

Image

_________________
Image


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sun Oct 21, 2012 4:15 am  (#17) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
That's very good, he4rty!

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sun Oct 21, 2012 6:47 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
HA HA she looks a bit wobbly on those stilts. Perfect photo to illustrate this. Great Job! :bigthup

_________________
Image


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sun Oct 21, 2012 6:56 am  (#19) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
wow, that stilts one is cool...what a perspective shot that is.

_________________
Image


Top
 Post subject: Re: Still photo 3D effect animation
PostPosted: Sun Oct 21, 2012 12:51 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Here's just one more still photo 3D effect animation that I particularly like.
Don't know the author, there is no tutorial. Found it online.

Image

As far as I can tell the waves function and mathmap were used in addition to displacement. Similar to 'boat' animation.
More about it in my next tutorial.


Last edited by K1TesseraEna on Sun Oct 21, 2012 12:59 pm, edited 1 time in total.

Top
Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Sparkler Animation Effect - Filter

15

No new posts Attachment(s) Lurid text effect plugin from Conbagui's tutorial (Edited)

18

No new posts Attachment(s) LED Animation from Animation Plug-in

6

No new posts Attachment(s) How to acheive this kind of effect (the holographic effect)

5

No new posts Animation

1



* Login  



Powered by phpBB3 © phpBB Group