In this tutorial, I will show you how to create a set of vector dice using Adobe Illustrator and the Gradient Mesh Tool. The Gradient Mesh Tool can be tricky to get the hang of, but hopefully this tutorial will shed some light on this great little tool. Let's get stared!
Final Image Preview
Below is the final image we will be working towards. Want access to the full Vector Source files and downloadable copies of every tutorial, including this one? Join Vector Plus for just 9$ a month.

Step 1
First things first, start by opening up a new document in Illustrator (Command + N) and make a 300 px by 300 px gray square using the Rectangle Tool (M).

Step 2
With the square selected, go to Effect > 3D > Extrude & Bevel. The numbers I used in my example are just a guideline. Feel free to experiment with new shapes and angles once you get the hang of it.

Step 3
After applying the 3D effect to the square, go to Object > Expand Appearance. You should now have three shapes that make-up your 3D cube.

Step 4
With all three shapes selected, open the pathfinder window and select Unite. This will merge the three shapes into one.

Step 5
Now go to Effect > Stylize > Round Corners. Give it a radius of 30 px.

Step 6
After applying the Round Corner effect, go to Object > Expand Appearance again. Now you should have a shape similar to this one.

Step 7
Using the Gradient Mesh Tool (U), create a point on your new shape. Make sure that the point is centered within the object and near the top so that the newly created lines intersect as close to the corners as possible. The Gradient Mesh Tool takes some getting used to and if done incorrectly can give you some interesting, unwanted results.

Step 8
Now drag the point we just created using the Direct Selection Tool (A) to where you think the front most corner of the die might be.

Step 9
Adjust the bezier curve using the Direct Selection Tool (A) to straighten out the line. These curves can be finicky, so take your time and be patient. Zooming in can help when fine tuning.

Step 10
Now with the Gradient Mesh Tool (U) selected, add the following points by clicking on the already existing line. You will notice new lines appear whenever a new point is added. Feel free to adjust the locations and curves of the points when making them. This might take some getting used to.

Step 11
Once your shape has all the same points as above, Select All (Command + A) and color the entire shape with 10% black.

Step 12
With the Direct Selection Tool (A) selected, select the following points shown below (in solid blue). In order to select multiple points be sure to hold down the Shift key while selecting. After the points are selected, give them a color of 0% black (or white).

Step 13
Next, select the following points shown below in solid blue (remember to hold Shift while selecting), and give them a color of 20% black.

Step 14
Repeat this process once more for the right side of the cube selecting only the points shown below (in solid blue) and give them a color of 15% black.

Step 15
Now to soften up the front most corner of the cube. Select the point shown below (in solid blue) and give it a color of 15% black.

Step 16
Again, select the points show below (marked in solid blue). This time give them a color of 12% black.

Step 17
Now that the cube part of our die has been created. It's time to create the black dots that represent the numbers. Start by creating a black oval using the Ellipse Tool (L) with a width of 50 px and a height of 30 px. Be sure to center it visually on the top side of the die.

Step 18
Duplicate the oval by Copying (Command + C) and Paste in Front (Command + F). This will ensure that the duplicate of the oval is the exact same size, shape, and in the same position as the original. It also ensures that the newly duplicated shape is in front so we can now work on it.

Step 19
With the front oval selected, we are now going to make it a quarter oval. There are a few ways to do this, but my favorite is as follows. Use the Delete Anchor Point Tool (-) and delete the bottom point. Next, take the left most point and drag it to the center of the oval using the Direct Selection Tool (A). Now with the Convert Anchor Point Tool (Shift + C) select the center point. This will delete the center points bezier handles giving it a sharp vertex.
Finally, still using the Convert Anchor Point Tool (Shift + C), drag the left bezier handle of the top point and the bottom bezier handle of the right point inward until the points are not visible. The left and bottom lines should now be straight.

Step 20
Using the Gradient Mesh Tool (U), create a point directly in the center of the quartered oval. Give it a color of 0% black (or white).

Step 21
Now select the two shapes that make up the black dot and group them (Command + G).

Step 22
Now we are ready to make the numbers on the other sides of the die. First, Copy (Command + C) and Paste (Command + V) the grouped oval. Now, reposition and Transform (E) the oval into its desired place. If this step gives you some issues, you can go back and repeat Steps 17 to 21 for each black dot.

Step 23
Here you can see what it looks like when each black dot is in position. Remember that the die has some perspective on it, so the dots at the bottom right and bottom left would be farther away than the dots closer to the center. Therefore when you make the dots, be sure to decrease their size to give them the illusion that they are farther away. The further the dot from the center, the smaller.

Step 24
Now that we have the die complete, we can make it look like a pair of dice. First, Select All (Command + A) and Group (Command + G). Now you can use the Transform Tool (E) and rotate the die into its desired position. Next, with the grouped die selected, Copy (Command + C) and Paste (Command + V) the die to make a duplicate. Now you can Transform (E) the second die into position.

Step 25
Once the two dice are in the desired position, we can add a small shadow on the back die. Draw, with the Pen Tool (P), a triangle shape that lines up with the outside edge of the back die. Then position it between the two dice by using Object > Arrange > Send Backward. Finally, set it's opacity to 30%.

Step 26
Now for the final touch, we can add a shadow underneath the pair of dice. With the Ellipse Tool (L), draw a large oval under the dice. With the oval selected, go to Object > Arrange > Send to Back. Set the oval's Opacity to 10%. And finally, go to Effect > Blur > Gaussian Blur. Set the Radius to 10 px.

Conclusion
There you have it. A beautiful pair of 3D vector dice created using the Gradient Mesh Tool in Adobe Illustrator.

Subscribe to the Vectortuts+ RSS Feed to stay up to date with the latest vector tutorials and articles.
Plus Members
Source Files, Bonus Tutorials and
More for $9 a month for all TUTS+
sites in one subscription.

























User Comments
( ADD YOURS )Joey June 22nd
Looks Very Interesting. I will read this for sure
.
Regards,
Joey
( )g3niuz June 22nd
nice nice….
( )looks cool and easy to follow
Jonathan June 22nd
I didn’t know you could apply rounded corners to a 3D object! Well done.
( )RobotBear June 22nd
Same here, this is a great tutorial. Keep up the great tuts.
( )joerg June 22nd
Its not really a 3D object any longer. It uses Illustrators stylize effect to add the round corners to the shape.
Joshua Bader June 22nd
Actually, you can’t. As you can see, I expanded and merged all of the shapes to make it a flat, single path. The only reason I used the 3D effect was to get the proper proportions and perspective on the cube. I could have drawn it by had, but why, when I could used the awesomeness that is the 3D Extrude & Bevel Effect.
The end result is that of a 3D cube with rounded corners, but alas… it is not dynamic. Maybe CS5?
( )UsH June 22nd
Phantastic, this puristic work.Perfect for training.
But, sorrily, what I know as a homegambler, the dices have a false conception as the opposing sites of a dice always make 7.
No worries and thank you !
( )Joshua Bader June 22nd
You are correct. The reason behind this was due to a job that needed the dice to show a 1, 3, and 6. We never ended up using it, so I though… heck why not a tutorial!
Keen eye,
- Josh
( )Pawan June 22nd
Seems like there is a small error in step 4
Instead of unite, I guess merge needs to be used in pathfinder, else the given result will not be obtained.
Regards,
Pawan
( )Grafiko June 22nd
simple but nice technique. I didn’t know either that you could do round corners on a 3d object, thanks for sharing.
( )Diego SA June 22nd
Looks very simple to do. Beautiful and easier than I thought! Sometimes I need to think more of using 3D object in Illustrator!
( )snnaqvi June 22nd
Its amazing
( )Fetching Vectors June 22nd
For someone designing game packaging, this tutorial would come in very handy.
( )Fountain-Pen June 22nd
so useful and amazing…
( )thanks a lot
lawrence77 June 22nd
great stuff….
Gonna Install Illustrator after a month
( )cee June 22nd
the light in the holes are right ? oO, If the second dice is rotated the light must be modified right?
( )Vijay June 23rd
I’m not able to do step 4 – not able to unite all the faces. I created the 3d object and expanded it. But when I try to unite it, its not giving me the united face. anything missed out in that step?
( )Chris June 23rd
Thanks for that. 3D isn’t something I would attempt by myself. I’d agree with everyone else, I was surprised how easy it was to do.
( )ee June 23rd
Simply amazing!
( )CgBaran Tuts June 25th
Awesome tutorial
( )websevilla June 25th
Perfect for my.
( )Mario D June 25th
Amazing use of illustrator to achieve a realistic 3D look Joshua.
Great introduction to the gradient mesh tool, thank you for the tutorial.
( )Ali June 26th
nor Unite, neither Merge options are working for me. Tutorial is good, but is not clear.
( )Ali June 26th
Figured it out, had to Alt+Click on the icon to Unite objects.
( )andrew cofield June 27th
very nice demonstration on using the gradient mask. I learned something today, thanks!
( )Lisa July 6th
For those having problems with step 4 you can also go to the drop down menu in pathfinder and select Make Compound Shape. Thanks Ali for the option click solution too.
( )ScriptPlazza July 11th
very nice tutorial
( )aviko-oloo July 29th
splendid!
( )Dai Hoang July 30th
very easy understand and perform. adjust a little bit hightlight down in circle
( )maybe a bit grey.
cidic August 6th
I wrote it first!
( )http://diceandflames.com/bad-ass-3d-dice-tutorial/
nice tutorial though
Clare August 18th
I have literally just finished this, takes a bit of time to get lines right but well worth it.
( )coolgraphs September 7th
Very simple and great way of explaining the tutorial.
( )Love it.
hello123456 September 22nd
Non valid dice my friend, all opposite faces counted up it should give 7 as outcome, clearly not the case here
But who really cares, tutorials are made to learn from and I certainly did, now I understand the mesh tool a bit better
( )Michal September 28th
Thanks you and the comments that made the “unite” ting clear
( )ur mom November 18th
this shit looks like my ball sack
( )Anon November 18th
That mesh tool is worst piece of programming I’ve ever seen in an Illustration program. Its utterly useless and impossible to use.
( )ur mom November 19th
u can mesh my dick in ur mouth
( )Anon November 19th
This tutorial fucking sucks ass.
( )neckface November 20th
if you like guys then you would like this tutorial
( )ur mom November 20th
u can suck my ass bitch
( )ur mom November 20th
u can suck my ass
( )