Create Imitation 3D Graphics in Illustrator and Freehand

Tweet

In this second article of our vector graphics series, we’ll take the basics that were covered in part one and make use of them in a fun application of vector graphics programs: Faux 3D Graphics.

There are plenty of powerful programs that create "true" 3D graphics — graphics that can have lighting and textures applied to their surfaces, and can be rotated in space. In fact, later versions of Adobe Illustrator and Macromedia Freehand have 3D capabilities that allow you to "extrude" shapes (e.g. take a 2D rectangle and turn it into a 3D box), rotate them, and apply different lighting. For more information on Illustrator and Freehand’s 3D functions, see the links at the end of this article.

1403_faux1

So, if even Illustrator and Freehand have 3D graphics capabilities, why would anyone try to make vector graphics that "look" 3D, but aren’t truly 3D?

  • Just for the challenge! There is something quite satisfying about a 3D-looking image that you’ve created yourself in Illustrator or Freehand. But if you don’t have anything to prove, these next reasons might be more compelling…
  • To make fast buttons and other interface elements. Create round bullet-type buttons, beveled rectangular or rounded rectangular buttons, and other 3D-looking objects for your website or graphic user interface. Here’s an example:
  • 1403_faux15

  • To create stylized logos or images. Some illustration or logo projects might require a more stylized look, perhaps involving skewed edges, imperfect perspective, or non-linear lighting. Here’s an example of a "funky shape" that takes less than a minute to create in Illustrator or Freehand:
  • 1403_faux2

  • To make XP-style icons. This graphic of a computer is an example of a more complex vector graphic that looks 3D, but isn’t "truly" 3D. And it’s a graphic that can be created using a vector graphic program!
  • 1403_faux3

Are you convinced? Let’s get started! As you follow this tutorial, you’ll hone your skills with the use of gradients, and you might even pick up a few other skills, too.

Note: I’ll be making my diagrams and commands using Adobe Illustrator 8. I’ll also add a few comments for people who use Macromedia Fireworks to make it easy for you to follow along.

Faux 3D Round Shapes

Creating imitation 3D round shapes is quite easy.

  1. Start with a round shape using the ellipse tool.
  2. 1403_faux4

  3. Our current shape has no fill and a black stroke. We’ll change this to no stroke (1), then choose the fill square by clicking on it (2) and choose the gradient fill option (3). (You can skip #2 and just click on the gradient fill square if you wish.)
  4. 1403_faux5

    This fills the shape with a gradient:

    1403_faux6

  5. Now, open the Gradient palette and change the type of fill from Linear to Radial.
  6. 1403_faux7

  7. Choose the Gradient tool from the toolbar, or hit "g" for the keyboard shortcut.
  8. 1403_faux8

  9. To make it look like the light source is coming from above and to the left, click in the upper left of the round shape, hold, and drag down to the bottom left to change the centering of the radial gradient.
  10. 1403_faux9

Easy! Now, remember that these are imitation 3D shapes. The shading and highlights won’t be perfect for round shapes that aren’t perfect circles.

Faux 3D Beveled Shapes

Beveled shapes can be used to make buttons. Here, I’ll demonstrate how to make a round beveled button and a rectangular beveled button.

  1. Start with two circles (see Create Vector Graphics in Illustrator and Freehand for tips on how to make two circles inside one another).
  2. 1403_faux13

  3. Select the circles, set the stroke to "none", and the fill to a linear gradient fill.
  4. 1403_faux14

  5. Use the Gradient Tool to set the inner circle’s gradient in one direction and the outer circle’s gradient in the opposite direction. This makes it look as if the inside of the button is indented slightly, with a beveled edge.
  6. 1403_faux15

OK, a round beveled button was pretty easy. But the creation of beveled shapes with "hard"-edged objects will take a few extra steps. In this demonstration, I’ll create a basic rectangular beveled shape.

  1. Let’s start with two rectangles.
  2. 1403_faux16

  3. Select the inner rectangle and Edit > Copy (Ctrl-C or Command-C). Then go to Edit > Paste In Back (Ctrl-B or Command-B).
  4. 1403_faux17

  5. With the inner rectangle selected, go to Object > Hide Selection (Ctrl-3 or Command-3). This now-hidden shape will eventually be our top "surface."
  6. 1403_faux18

    Freehand side note: If you’re using Freehand, you’ll want to put the duplicate inner rectangle on its own layer, then hide the layer from view.

  7. Select the Scissors tool.
  8. 1403_faux19

    Freehand side note: You’ll want to select the Knife tool.

  9. Use the Scissors tool and click on each corner of the two rectangles.
  10. 1403_faux20

    This cuts the shapes into eight individual line segments. It will still look like you have two rectangles until you try to use the black arrow tool; the individual line segments are now independent of each other.

  11. Use the black arrow tool to select the line segments from three sides of the shape. In the diagram below, we’ve marked the line segments to select in orange so that you can see them clearly. The right side of the diagram shows what it looks like in Illustrator.
  12. 1403_faux21

  13. Now, go to Object > Lock (Ctrl-2 or Command-2). This fixes the line segments in place so that you don’t select them by accident.
  14. 1403_faux21b

  15. Use the white arrow tool to select the top pair of endpoints.
  16. 1403_faux22

  17. Go to Object > Path > Join (Ctrl-J or Command-J).
  18. 1403_faux23

    This takes the two open endpoints and connects them with a line segment.

    1403_faux24

    Freehand note: Sometimes, using the Join command in Freehand doesn’t work as expected. If you’re having more trouble than you think it’s worth, use the Pen tool to connect the line segments together instead!

  19. Repeat the same process for the bottom endpoints (select with white arrow tool, then Join command), then set the Stroke to none and the Fill to a gradient. The first beveled edge is complete!
  20. 1403_faux25

  21. We will repeat these steps to create the other beveled edges. First, unlock the other line segments by going to Object > Unlock All (Ctrl-Alt-2 or Command-Option-2).
  22. 1403_faux26

  23. Now, select everything but the two line segments that you want to work with and lock them (Ctrl-2 or Command-2). Again, I’ve colored the selected objects orange in the diagram below.
  24. 1403_faux27

  25. Use the white arrow tool to select the endpoints, then Join them.
  26. 1403_faux28

  27. Repeat for the other side. You may then change the stroke and fill colors.
  28. 1403_faux29

  29. Continue the "Unlock > select > Lock > select points > Join > select other points > Join > change stroke and fill" sequence for the other sides. Here’s the result:
  30. 1403_faux30

  31. Now, let’s put the middle part back by selecting Object > Show All (Ctrl-Alt-3 or Command-Alt-3).
  32. 1403_faux31

  33. The middle rectangle will reappear. You may then add a gradient fill to the middle area.
  34. 1403_faux32

  35. Here’s our final beveled rectangle. I’ve split up the different shapes just for demonstration purposes:
  36. 1403_faux33

Feeling good about your imitation 3D shapes so far? Let’s move on to something more complex…

Faux 3D Box Shapes

Let’s try to create a "funky box shape" that you can use as a base for lots of other types of imitation 3D objects.

  1. Use the pen tool to create three different shapes that, lined up together, make a box shape.
  2. 1403_faux10

    Here are the individual shapes, in case you’re wondering what they look like separately:

    1403_faux10a

  3. Use the black arrow tool (selection tool) to select all of the shapes. Select the Stroke option in the tools palette, then click the "none" option to remove the black stroke. (You can also use the keyboard shortcut "/" to remove the stroke.) Then, click the gradient option to fill all three shapes with a gradient. (You can use the keyboard shortcut "." or ">" to select the gradient option.)
  4. 1403_faux11

  5. Use the black arrow tool to select the individual shapes, then use the gradient tool to "fix" the coloring.
  6. 1403_faux12

    Here’s the result:

    1403_faux2

Is this box too boring for you? Let’s look at a couple ways that you can use this "funky box" for other purposes…

  1. Use the pen tool to create a distorted square on the front side of the box (roughly following the lines of that side) and fill it with a grey-white gradient. Can you see where this is going?
  2. 1403_faux38

  3. Use the gradient tool, if necessary, to fix the direction of the gradient.
  4. 1403_faux39

  5. Finally, use the pen tool to create two long, thin triangles to create a funky TV graphic. Just what you’ve always needed!
  6. 1403_faux40

In the next example, we’ll take the funky box and lay text over it to use in a retro-style Website catalog as a "no product image available" placeholder.

  1. First, copy and paste the box into Photoshop and create a text layer.
  2. 1403_faux34

  3. Right-click on the text layer and choose Rasterize Layer.
  4. 1403_faux35

  5. Go to Edit > Transform > Distort.
  6. Use the cursor to drag on the corners of the text so that it conforms to the same lines as the surface of the object.
  7. 1403_faux36

  8. Double-click inside the text area to commit your changes, then save for Web. Use it in your local retro or fun-and-funky-style Website.
  9. 1403_faux37

    Side Note: If you have Illustrator 10+, you may use the Envelope Distort command to fit the text to the object. This tutorial shows you how to use the Envelope Distort command.

Congratulations!

You now know how to create common imitation 3D shapes:

  • round shapes
  • beveled shapes
  • box shapes and variations

And you’ve also realized that creating these 3D-looking 2D shapes really comes down to fancy use of the gradient tool. So, to use the gradient tool well, you’ll want to spend some time looking at photographs or real-life objects to see how lighting affects the shadows and shading of the object. Below are a few links to resources that might be helpful in understanding light and shadow.

Furthermore, because these imitation 3D graphics simply combine shapes and gradients, you can use the same gradient tool techniques to create quick 3D-like graphics in Photoshop or Fireworks as well (using vector tools or selections!). Just remember that you’ll want to use vector graphics if there’s a chance that you’ll want to be able easily to resize and reuse the graphic later.

Finally, I mentioned earlier that later versions of Illustrator and Freehand have some 3D rendering capabilities. If you wanted to learn more about that, these links might be helpful:

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

No Reader comments