Quick Tip: Create an Animated 3D GIF in Photoshop CS6

Quick Tip: Create an Animated 3D GIF in Photoshop CS6

Tutorial Details
  • Program: Adobe Photoshop CS6 Extended
  • Difficulty: Intermediate
  • Estimated Completion Time: 1 Hour + Rendering Time

Final Product What You'll Be Creating

In this tutorial, we will explain how to take a flat logo and animate it using Photoshop’s new 3D and Timeline features. Let’s get started!


Tutorial Assets

The following assets were used during the production of this tutorial.


Step 1

Open the logo in Photoshop. Note that the PNG file contains transparency—this is important when we convert to 3D. There’s no need to adjust the image size since we will change it at the end when we save it as an animation.


Step 2

Select the Crop Tool and extend the top and bottom to give our scene more space. Hit Enter to commit to the changes.

Use the Rectangular Marquee Tool to select just the ‘envato’ text (the leaf is excluded) and click on the “Add Layer Mask” icon in the Layers Panel. This will isolate just the text.


Step 3

To make things easier, I’ve renamed the only layer to “Text.” Go ahead and make a copy of this layer, rename if “Leaf,” and click on the Layer Mask (this targets the mask, making it editable). Press Command/Ctrl + I to invert the selection and thus, isolating the leaf. The result should look identical to the original image that we opened. The only difference is that the text and leaf icon are now on separate layers.

With the “Leaf” layer still active, go to Layer > Layer Mask > Apply. This will remove all delete all pixels that were hidden by the mask.

Next, go to 3D > New 3D Extrusion From Selected Layer. This will automatically bring up the panels we need to work in our 3D scene.. If not, you can always go to Window > Workspace > 3D to force those panels open. Notice that the “Leaf” layer now appears as a 3D object llayer.


Step 4

In the 3D panel, select the “Leaf” object (denoted by the extruded star icon) and go to the Properties Panel and set the Extrusion Depth to 35. Also, deselect Catch Shadows and Cast Shadows.

We now need to move the “Leaf” object to the exact center of our scene. Before we do this, it will help to change our camera to a better view. Select the “Current View” layer in the 3D panel, then select the “Top” preset in the View setting .

On the canvas, use the onscreen widget to position the leaf in the exact center of our scene (denoted by the intersection of the red and blue lines).


Step 5

Currently, our canvas is showing the Top View. Select “Default Camera” in the 3D panel to reset the camera. Notice that the leaf object does not appear to be in its proper position. We will fix this in the next step.

Currently, the leaf appears out of position. To fix this, use the camera tools in the top menu to move the camera until the logo is properly placed. By moving just the camera, we can make the leaf object appear to be back in it’s proper position. It is important that we do not actually move the leaf object like we did in Step 4.


Step 6

Now, we’re ready to animate—click Create Video Timeline in the Timeline Panel. If you don’t see the timeline panel, then go to Window > Timeline.

When you do this, you will see all the layers displayed as separate video layers in the timeline. In this case, we will have two video layers.


Step 7

Since we want to animate the “Leaf” object, we need to access its properties in the timeline. Twirl-down the “Leaf” layer to show all properties that can be animated. For this aniamtion, we will focus on the “3D Scene Position.”

Click the stopwatch icon to Enable Keyframe Animation. This will add our first keyframe to our timeline (denoted by the yellow diamond).

Since Keyframe Animation is enabled, Photoshop will automatically add a keyframe when we make changes to the scene’s position (or rotation). Before we start rotating our scene, we need to indicate how long it will animate for. Do this by dragging the Current Time Indicator (denoted by the blue slider) to another point in the time bar.


Step 8

Back in the 3D Panel, select the “Scene” layer and go to the Properties Panel. In the Properties Panel, select the Coordinate icon and change the “Y Angle” value to 360. This will rotate the scene around its Y-axis 360 degrees.

Notice that a new keyframe has been added to our timeline. Using the Current Time Indicator, you can scrub back and forth to see how our 3D object animates. Since our “Leaf” object was placed in the exact center of our scene, we should see the leaf spinning in place.


Step 9

Our goal is to have the “Leaf” object appear to continually rotate around its axis while only showing the front face of the object. To do this, we first need to make a copy of our “Leaf” layer. In the Layers Panel go ahead and copy this layer. Notice that a copy of this layer also appears in our timeline.

Next, scrub through the timeline until the “Leaf” object makes three-quarters of a turn.

Grab the beginning of the “Leaf copy” video layer and drag it to the red line. This video layer is now cropped and will start animating right after the three-quarter turn.

Now, scrub over the first part of our animation and find the point at which the object makes its first quarter turn. This time, drag the ending of the “Leaf” video layer so it stops at the red line.

Finally, slide the “Leaf copy” video layer over to the red line. Scrub through the timeline to check that the animation is smooth.


Step 10

Before we render any frames, we have to tell Photoshop which frames we want rendered. Use the Current Time Indicator to scrub through our animation to locate the point where our object appears to make a full rotation. Use the slider immediately below the timebar to set the end of the work area. Now, only these frames will render.


Step 11

With our scene complete we can set up the final animated GIF. We will cover two options to save out our animation: Option 1 will quickly save out a low-quality GIF; Option 2 will take more time, but allow us to produce a high-quality GIF.

The first option is to go to File > Save for Web. This option skips the rendering process and will save out the frames as they appear on our canvas. Go ahead and change the settings as you see fit. Click Save when done.

Here is an example of the final animation using Option 1. Notice that the edges of the leaf appear jagged.


Step 12

The second option will require our scene to be rendered first. It is highly recommended to save at this point. Now, go to File > Export > Render Video and make the changes as shown. Make sure to select “Photoshop Image Sequence” as the output. This will render our scene as individual frames.

After all the frames have rendered, we can open them as an animation. Go to File > Open As and navigate to the folder we just created with all of our rendered frames. Select the first frame and click “Image Sequence” at the bottom of the window. Click Open. You will also see a dialogue box for the Frame Rate, just click OK.

The rendered images should automatically appear in a new timeline as a new animation.


Final Rendering

The last step is to save out the animation as a GIF. Just repeat Step 11 and you’re done!.

Tags: CS6Tips
  • http://www.creativebeacon.com James George

    Stephen, this is an absolutely excellent tutorial! I am actually working on a 3D animation tutorial as well (completely different from yours). Being able to create an animated gif like this will truly add a sense of “awesomeness” to any site. This is very cool, and very well written. Great job Stephen!

    • Robbie

      i can only imagine that in the far future, we’ll see a lot of 3D looking animated gifs which will “add a sense of awesomeness to the web”… hehe… so let’s bring back the 90′s and just forget that 3D packages even exist!

      don’t get me wrong, in a situation where someone ONLY has photoshop as a tool, this is a pretty nice tutorial to scratch the surface of 3D a little, but really only that.

      • DisasterMan

        I couldn’t agree more. The result is nothing to get over excited about. A well written tutorial about a basic technique. Applying it for the kind of usage shown here is unlikely to win you many plaudits. I cringe at the memory of my 3d gifs in the 90′s!

        However, the point about pre-rendering is well made, and suitably explained. That’s the take-away for me.

  • http://tricksngeeks.wordpress.com Ritvik

    this is awesome !!!

  • http://www.animhut.com/ Sri Ganesh.M

    I dont have a 3D option. what to do. using a trial version of master collection. But it Doesn’t have 3D option !

    • http://psd.tutsplus.com/ Grant Friedman

      Are you using CS6 Extended?

  • Jan

    There’s a little error in it. The leaf doesn’t really rotate the 360 deg in the final rendering. The litte part of the leaf is at no time on the right side.

    • http://www.starkvaliant.com/ Steph

      Hahaha, now I can’t un-see that snap, and it looked so smooth before, too!
      Still, very cool tutorial for animating in Photoshop, thanks!

    • http://www.graphicrangers.com Yuzer

      And you had to mention that :D.

      Nonetheless a good tutorial :)

    • kevin

      looks like the only error was in you not reading the tutorial. he states in step 9 that his goal is to ‘appear’ to fully rotate but only show the front face of the leaf. so the tutorial does exactly what he says it should do.

  • http://david-rosseljong.com David Rosseljong

    Awesome tutorial. Good job and thanks Stephen, have to use this right know! :)

  • Flashinstinct

    This is all nice and dandy but I would never add a 195k Gif file to a website.

    • sprrocket

      You do realize that a file that size loads in about half a second, right?

  • http://favwork.com/CaosCoding Andrea

    Is there a clever way to reduce image size of this?

    Maybe make split the image in two parts: the moving and the fixed one and reassemble them with HTML code.

  • Adam Pominski

    its not a full 360 rotation, is there anyway to make it a full 360 instead of rotating and just starting over in a sense

    • http://stephenpetrany.com Stephen G. Petrany
      Author

      Absolutely, just ignore step 9 and stop the animation at one full rotation (Step 10), then save out as a repeating GIF.

  • http://www.creare-webdesign.co.uk/ Bradley West

    Wow this is just amazing, CS6 is simply just getting better and better from what I am hearing about it. There seems to be just so much details that have been put into this and its just really incredible to see. I can’t wait to download and get my hands on it. Thank you for sharing this, the tutorial is fantastic.

  • ger

    Can you do the same thing with cs5??

    • http://stephenpetrany.com Stephen G. Petrany
      Author

      Technically, yes. Although, it’s not as intuitive.

      • Anon

        Is there a tutorial for CS5 that does the same thing like this because I’m having difficulty accomplishing the same task as this?

  • Angel

    Great! Very easy to understand!

  • jakub

    “Being able to create an animated gif like this will truly add a sense of “awesomeness” to any site.”
    You are coming directly from 1998, aren’t you?
    :)

    • Hexi

      This made me laugh :) But true.

    • George

      Good one. ;)

  • http://www.facebook.com/vietdesigner Việt Designer

    Nice tips, thanks :)

  • Dipankar Jana

    This tutorial is shared by Adobe Photoshop. :)
    http://www.facebook.com/Photoshop

  • George

    Thanks for the nice idea. File size is to big. It doesn’t make a full rotation. It is extruded way too deeply for a leaf, IMHO. Otherwise, a decent job. Makes for a great starting point.

    • re-read

      If you read step 9…the first sentence…he says he wants it to ‘appear’ to make a full rotation…while only showing the front face of the leaf. And i’m sure as critical as you are, it was probably a simple mistake that you used ‘to’ big in your comment, IMHO. Otherwise, a decent comment.

  • FDGod

    Tutorial is common sense, the mask option doesn’t even work for me and I just bought CS6 EXTENDED at the adobe store. And NO 3D THING IN MY PHOTOSHOP.

  • Chris

    Great tutorial, it is very helpful for me. There is just one issue, on mine when I export and render the file, it always comes out with a black background and I can’t figure out how to fix it :(

  • http://www.unsalkorkmaz.com Ünsal Korkmaz

    195 kb?
    No ty. I would use html5+css3 for flipping.

  • Fish

    Ffter export I have black background! Author say please how fix it?

  • Katsumoto

    Hello Stephen,
    Can i ask a question. Why did you just cut the animation at the 1st Leaf Layer (the tree quarter part), and then kept going with a second Leaf Copy Layer?
    Couldn’t we do the whole 360 degree rotation on one layer?
    Besides, i just duplicated the layer as you suggested, but the keyframes didn’t apply to the copied layer. Did i miss something there? Thanks

    • http://stephenpetrany.com Stephen G. Petrany
      Author

      Katsumoto,
      I designed the animation to purposely not show the back of the logo since the back of any logo is never intended to be visible. It also allowed me to demonstrate how to edit a video layer.

      Concerning duplicating the layer, it appears using the shortcut Cmd + J does not copy keyframes. Instead, try dragging and dropping the existing layer into the Create New Layer icon at the bottom of the Layers Panel. This will duplicate the layer and preserve all keyframes.

      Hope that helps.

  • Pancho

    I agree with those who think it looks wrong, not rotating 360. It’s a nice tutorial and the movement is cool, but it looks weird in the transition. You said ” back of any logo is never intended to be visible”, huh? Who made that rule? I think to rotate it 360 would look fine and more professional. Besides, what would look better, the logo spinning all the way around, or the weird cut off on the bottom when it flashes from front to front again?

  • http://www.shanirbhar.com/ Jahan

    Creative and very effective thanks..

  • Jimmy

    Hi,
    Great tutorial! Especially for a newbie like me…
    But I have a problem and hope someone can help: I can’t change the looping option in the “Save for Web” window. It’s grayed out and says “Once”.
    I’m using CS6 Extended.
    Does anybody have an idea why this happens and how I could fix it?
    Thank you.

  • yinka

    I can’t find any 3d panel in my photoshop cs6 extended, any help please

  • ArBixD

    Hi, a greate tut. Thanks for that. I have the problem that the second keyframe does not appear as i set the 360° on y angle. You may know why?

    Thanks in advance

  • mahsa

    without picture?!!!!
    :((( i cant :((

  • She

    Noticed several people saying they ended up with a black background – so did I? Solution?