Sunday, March 23, 2008

Achieve photorealism with Gradient Mesh



To create a Gradient Mesh object, choose the Mesh tool from the Toolbox and click any vector path in your document. You don’t draw Gradient Mesh objects from scratch in Illustrator; you convert existing vector shapes to mesh objects. Each click with the Mesh tool adds additional mesh points to the mesh object. You’ll also notice that as you add mesh points to an object, the paths that connect the mesh points match the contours of the object.



In this example of using a circle, notice how the mesh points that are added create curved paths, not straight ones.

Once you have mesh points defined, you can switch to the Direct Selection tool and select each individual mesh point to adjust its position and its direction handles.


Editing a mesh point is no different than editing an anchor point.

With a mesh point selected, you can choose a color from the Control, Swatches, or Color palette to define the color for that point. Each mesh point can contain only one color. Each mesh point’s direction handles and paths define how its color blends with other colors from other mesh points.


The paths that connect the mesh points define how colors blend and the shapes and contours of the gradient.

As needed, you can switch back to the Mesh tool and click to add additional mesh points.

You can also create a gradient mesh from an existing vector object. With the object selected, choose Object > Create Gradient Mesh. You can then choose how many rows or columns you want in the mesh, and if the object is filled with a color, you can specify a highlight towards the center or the edge of the object. Once the gradient mesh is created, you can continue to tweak it using the methods mentioned previously.

Note: If you converted a path to a mesh object and then want to get the path back, you can select the mesh object and use the Offset Path function with a setting of 0. This action creates a new path that you can edit and color as you wish.

Courtesy of the Adobe Blog!


No comments: