preview

Tips for Working with the Gradient Mesh Tool In Illustrator

Tutorial Details
  • Program: Illustrator
  • Difficulty: Beginner
  • Completion Time: 1 hour

A few times a each month we revisit some of our reader’s favorite posts from throughout the history of Vectortuts+. This tutorial by Irmi Arieli was first published on March 9th 2009.

One of the most amazing and confounding tools in Adobe Illustrator is probably the Gradient Mesh tool. Working with this feature allows the user to divide almost any shape into a mesh. Each intersection of two lines (horizontal/vertical) can be colored with a solid color. This tutorial takes a different format than some of our other tuts, and will help you work with the Mesh tool better.

In this tutorial, we’ll show you some tips that will improve your Mesh work. We’ll also show you a proper workflow to get outstanding results with this tool. We’ll take a close look at creating a layer within the detailed file of a meshed boot. The final design is available for review in our freebies section, and is titled Army Shoe. Let’s get started!


1. Introduction

I would like to thank Itai Lustgarten for co-writing this tutorial. Itai is a fellow graphic artist, designer and lecturer. We have both been in the industry since 1990. We both teach Illustrator, Photoshop and pre-press procedure in Mentor academy and several academies in Israel.


2. Creating a Basic Mesh

After selecting a shape (non compound shape, choose Create Gradient Mesh from the object menu. At the command window you can define the structure of the mesh – the number of rows and columns. Notice the mesh lines defined by the original outline of the shape.

1

3. Adding Points to a Mesh

Another way to add a point to a mesh is by using the Mesh tool and clicking anywhere in the shape’s area.

2

4. Colorize The Mesh

After converting a shape into a mesh, you can select points with three tools: Mesh tool, Direct selection tool, and the Lasso tool. All you have to do now to add color to the mesh is select a color from the swatches palette, or use the eye dropper tool to select a color from an image.

3

5. Moving Points

If you need to move a point on the mesh shape, choose the Mesh tool or the Direct Selection tool, then click on a point and drag it (holding the Shift key will drag the point in a horizontal/vertical line only).

4

6. Meshing With Shapes

In order to achieve the best result with a mesh, one has to use a symmetrical shape since the mesh uses an equal number of anchor points on each side of the shape. The problem is what happens when we want to make a complex shape. Look below at the result of the non-symmetrical shape versus a symmetrical shape.

The solution could be split into two parts. The first one is to start with a rectangle or an ellipse, convert them into a mesh and then distort them to the shape we want. The second solution is to work with multi-parts, which are symmetrical shapes – one on top of the other.

5

7. Place The Image

The army shoe image can be download here. When placing an image to work upon, the most efficient way is to place the image into a template layer without dimming.

6

8. Preview and Outline

Going between preview and outline view modes is a must. While meshing 80% of the time will be spent in an outline view mode. An example from the final boot is shown below.

9

9. The Building Process

It’s important to break the image apart into layers. This way you can work separately on the shoelace, shoe sole, and other parts on separate layers. Let’s take a look at working on the shoe sole. First, double-click on “layer1″ and change its name to “Shoe sole.”

8

Step 1

Draw a rectangle at the left side of the shoe sole (and change the view mode to outline).

step_1

Step 2

Use the Mesh tool (u) to click on one of the four anchor points of the original rectangle. This will
convert the rectangle to a mesh object without adding any unused lines.

step_2

Step 3

With the Mesh tool, move the two right points of the rectangle to the right edge of the shoe sole and play a bit with the anchor handles to match the shoe sole.

step_3

Step 4

Pay attention to the color flow direction. Any hoizontal/vertical line that you add to the mesh will flow between the existent two. Use the Mesh tool (u) to click on the bottom mesh line thereby adding a vertical mesh point. Drag it down to fit the shoe sole. Do the same adjustment to the top mesh point.

step_4

Step 5

Make the needed adjustments to correct the shape. Add more points along to the horizontal line of the shape to adjust the mesh to the shoe sole.

step_5

Step 6

After adding the points, it is time to use the Eye Dropper tool to color them. Select each point and
use the Eye Dropper (i) to sample a color from the image below (do it in an outline mode).

step_6

Step 7

Look closely for a change of color. Where you see a color difference place a mesh point and color it.

step_7

Step 8

Follow the horizontal line and move the mesh points along the shape according to color change.

step_8

Step 9

We’ll be making stops in this step. Wherever you identity contrasting colors there is a need to add more points – therefore stopping the color flow. Going from outline to preview mode is advised.

step_9

All there is to do now is just go through all the points and color them. Once you’re done, make a new layer and move on to the next part you want to mesh. You can see a close-up result of the toe and sole in a crop of the final vector shown below.

step_9a

10. Conclusion

Patience when meshing is a must to achieve a good results. Also, keep in mind that symmetrical shapes are the best way to work when meshing. The final design is available for review in our freebies section, and is titled Army Shoe. Have fun practicing these techniques on your own illustrations!

final

Subscribe to the Vectortuts+ RSS Feed to stay up to date with the latest vector tutorials and articles.

  • Ngawang Tsering

    Great job !!!! It will going to help me to dealing with G- mesh. thanx 4r ur great tips.

  • Ngawang Tsering

    nice one thanx for great tips

  • ram

    nice clear tutorial

  • Pingback: 40 best illustrator tutorials plus websites for illustrator tutorials « Free Templates and theme

  • Kyle

    Uhhh… In step 2, the rectangle is being filled by white when I convert it to a mesh object. So I can’t really see where to create the mesh points. No stroke/fill applied on the shape tool. Am I missing out on something?

  • Shreyas

    Wanted to know how to trace a watermelon with mesh tool when the watermelon is shot with foreshortened angle that means the bud of the watermelon is in front. tried to search every where kindly help

  • http://yogideviantart.deviantart.com Yogesh

    Great Tut .. :)

  • Howard Paul

    Thanks… one of the most help and explanatory tutorials on the gradient mesh that I’ve seen!

  • Kala

    Cool stuff! Thanks…

    But how did you get the grunge like texture on the shoe? The G-Mesh usually produces a smooth texture.

    • http://www.irmiarieli.com irmi arieli

      Hi Kala

      i used an expanded brush with a clipping mask.

      Irmi Arieli

  • pundalik

    Good tips

  • togu

    execelente tutorial me encanto el realismo que nle diste me gustaria aprender mas sobre the mesh tool thanks

  • http://www.empfehlenswert-wien.at wien

    great tut. thanks for sharing

  • HR

    Thanks for the tips in first place, for sharing your skills… it’s kind from you…. My question, having seen other photorealistic images done with the mesh tool, is, what if you want to go even further, and simulate the boot leather texture for example ? Would you add more nodes to the base mesh? or would you add new layers containing individual small meshes… let’s say for “used” leather spots, wrinkles, etc ? Thank you in advance….
    I must say I agree with user Matt, on his comment about what you can and cannot get from the books….he’s right. It’s from tuts like yours where I find useful tips

    Thanks again

    HR

    • http://bucketothought.com/loungekat/blog/ LoungeKat

      Most people will add a texture over the top to make it look like leather.

  • HR

    Thanks to LoungeKat for payin atention to my question, very kind of yours ! Oh, sorry for my English, I´m working on it !

  • srishti singhal

    thanks for these tips, its really wonderfull and helped me a lot….

  • Gurd

    Maybe a dumb question but how do i just change the rectangle’s view mode to outline? If i change the mode to outline the ground picture turns white too

  • wesley

    i’ve tired this but for some reason my eyedropper tool picks up the color of the grid not whats underneath so how do i fix this and get my gradient mesh to work

  • http://www.irmiarieli.com irmi arieli

    embed the image so the eye dropper will work right.
    strange but it works…

  • http://hernotepad.wordpress.com/ Anita

    You should replace the army boot link with this one:

    http://www.sxc.hu/photo/724984

    (The original link didn’t work for me.)

  • Pingback: 32 Great Adobe Illustrator Tutorials | Most Inspired: Design Inspiration Blog

  • FBN

    great..!!!

  • I.K.MamuN

    Awesome

  • shayne

    If you’re going to do a tutorial like this, why not would you show the easiest part and not how to do some of the more detailed things like the eyelets or shoelaces? I am grateful for what you did post, and my sole looks great, but now I am lost because I’m not really sure how to do the rest. Oh, well, I’m just lame is all.

    • Carrie

      for the sake of helping others, and not actually responding to a post that is more than two years old, one of the things I have found is to draw an elipse (cirlce) and make that into a gradient mesh with 2 columns and 2 rows. Then you use the direct selection (white arrow) to manipulate the individual anchor points and handles to match the shape. Once you match the shape from your ellipse, you can then use the gradient mesh tool to add more lines into your mesh to match the shape and the direction of the highlights. Press alt while using the mesh tool to remove the lines if you do not like where you placed them or if you accidentally placed too many. If you click on a horizontal line inside the mesh with the mesh tool, it will add a vertical line in that spot. If you click on a vertical line, it will add a horizontal one. If you click in an open space it will add both a horizontal and vertical line.

      Also, too many lines in your gradient mesh can make your image appear blotchy. For your image to look as best as possible, you will need to manipulate the anchor points and the directional handles to match the highlights in the image.

  • Squiggles

    When I do Step One, (change to outline mode), everything goes white, like the boot image disappears.

    Any way I can stop that? I cant use the mesh tool with outline because the image turns white.

    • Maureen

      Make the photo layer a template layer. Double click the layer in the layer panel and select ‘template’. This automatically locks it and drops the opacity, you can change that though as well. Then you will still see the boot when in outline mode.

    • bilal ghani

      aftr placing the image then change the image as a tamplets

  • http://www.design4fantasy.com Saya

    Gradient Mesh tool is such a strong tool in making smooth color transition. You explained it very well

  • http://www.collinscreative.co.uk Steven Collins

    Great tutorial. I use Illustrator a lot and didn’t realise the possibilities with the gradient mesh tool. Will definitely be experimenting with this in future :) Thanks.

    • http://www.moziweb.com mozi

      I Agree Steven. Actually me too was not aware about the possibilities,, Tried the tutorial steps and the thing I got is unbelievable for me.

      Actually I Googled and got spoongraphics tutorial from where I redirected to this

      Thanks you so much for this great article Irmi.

  • Akash

    I got “MESSHED” up….with this tool….!!