Article

Home » Design and Layout » Software Tutorials » Create Imitation 3D Graphics in Illustrator and Freehand

About the Author

Corrie Haffly

author_corrie Corrie is the lead designer and developer for PixelMill and their in-house brand, jgtemplates. This would-be triathlete has a mathematics degree but wishes she had double-majored in computer science and art instead. Maybe next time...

View all articles by Corrie Haffly...

Create Imitation 3D Graphics in Illustrator and Freehand

By Corrie Haffly

September 24th, 2004

Reader Rating: 9

Page: 1 2 Next

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…

If you liked this article, share the love:
Print-Friendly Version Suggest an Article

Sponsored Links