VECTORTUTS has covered Illustrator's 3D effects a few times, so the basics should already be familiar to you. In this tutorial, we'll be taking those skills up a notch and discussing how Illustrator deals with transparency in 3D objects. In just a few steps you'll have created a plastic cola bottle, which is ideally suited for those of you involved in product marketing.
Working with 3D Objects and Transparencies to Make a Vector Cola Bottle Design
Aug 14th in Designing by Ian YatesFinal Image Preview
This is what we're looking to build with this tutorial.

Step 1
We need two symbols for mapping to our final 3D object; a bottle label and some texture for the screw top. Make yours with similar proportions to those shown below and use whatever designs you wish. Group the label components (Objects > Group) to make a label group and also group the top texture components.
One thing to bear in mind is the use of gradients within these symbols. Illustrator will rasterize gradients when applying the symbols to 3D surfaces. This is fine and may well give you the desired effect, but in doing so you'll limit the scaleability of your final object.

Step 2
Open the symbols panel (Window > Symbols) and drag each of the two groups into the window. Depending upon which version of Illustrator you're using, you'll either be presented with the Symbol Options dialogue automatically, or you may have to double-click the symbols once they're in the panel.
Either way, enter a name for each of your two symbols within the Symbol Options dialogue and click OK. You may also find it useful to display the Symbols panel as a list (as shown in the image below), which allows you to see the symbol icons plus their assigned names. Existing instances of the symbols on your artboard may now be deleted.

Step 3
I'm now in Outline mode (Command + Y to switch between Preview and Outline) while working with simple vectors, but you can choose which view mode you prefer.
Use the various drawing tools to form the shapes needed for a silhouette of a cola bottle. Align them all centrally, but don't worry if the whole thing isn't perfectly symmetrical, we're going to slice it down the middle anyway. There are many approaches to preparing shapes for revolving, this way gives you a reasonable impression of the final form before you applied the 3D effect.

Step 4
Use the Pathfinder tools to join the shapes. Then expand your shapes so you then have one complete object.

Step 5
Draw a line vertically down the middle of your bottle object. Then align the two together centrally. Now click the Pathfinder's Divide tool and Expand the result. Your object will have been split neatly in two.
Ungroup the two halves (Objects > Ungroup) and delete one of them. It makes little difference which of the two halves you delete; more on this later.

Step 6
We're going to continue splitting our object up, this time with a series of horizontal lines. What we're aiming for is a collection of pieces so each area of the bottle can have it's own color and transparency properties.
Start with a line to separate the bottle top from the rest, then one which will begin the label, and another for the plastic underneath the label. Continue with this method until your design matches the image shown below.

Step 7
Once again we turn to our Pathfinder Tools. You've no need to group the horizontal lines together, just select everything on the page and click Divide. Expand your object as you've done before. Then ungroup (Object > Ungroup) to release your bottle sections from each other.

Step 8
Use the Direct Selection Tool to select four of the nodes along the edge of your object (as highlighted below). Then press Delete to remove them. This should leave you with a segmented vector defining the outer edge of half of your bottle.

Step 9
If you're currently working in Outline mode, switch to Preview (Command + Y) so we can determine some colors. Give each of the five bottle sections a color and leave the stroke width at it's default of 1px (the stroke width will effectively determine the thickness of your bottle's plastic, you may want to play around with this).

Step 10
Select all your bottle sections and group them together (Object > Group). This is a simple but crucial stage in the 3D revolving process. We want all the sections to be treated as one unit and for the effects to be applied to the group as a whole. Without grouping them, the revolve effect would be applied to each section individually, creating five random 3D objects. Try it for yourself!

Step 11
Select your now grouped bottle vectors. Go to Effect > 3D > Revolve and click Preview in the Options dialogue that appears. You'll be presented with a revolved 3D rendering of your vector, turned 360° around the left edge by default.
This brings us back to Step 5 when I mentioned "more on this later." Well later is here now. When I split the whole bottle object into two halves I chose to delete the right hand side, leaving me with the left. If you did the same, your bottle will have rendered as below.
You'll need to alter the settings so that the object is revolved around the right hand side, as shown in the second image below.


Step 12
Within the 3D Revolve Options dialogue click on Map Art, which opens the Mapping dialogue. Select the surfaces you need using the surface navigation arrows and map the appropriate symbols to them from the symbols dropdown. There will be a lot of surfaces to choose from with a complex object like this, so it may take a while to find the ones you're after. This is particularly true when revolving a vector, as surfaces on the inside of your object can also be mapped.
Click Shade Artwork then click on OK. Once back in the 3D Options dialogue, play around with the angle, perspective, and lighting (under More Options) until you're happy with the result. Then click OK.

Step 13
We now have a nice 3D bottle with a label and a bit of lid texture, but the plastic and the cola is opaque; we need to resolve the issue of transparency (here comes the most important part of the tutorial). There are several ways in which you may think to approach this, so I'll first cross off the incorrect ways, and then demonstrate how it should be done.
1. By selecting the 3D bottle and reducing the opacity in the transparency panel the whole object will fade. Furthermore, you won't even be able to see the reverse side of the object, it will have been treated as a 2D image. This is because when Illustrator renders an object in 3D it first flattens the transparency of that object (see the first image below).
2. Instead we could expand the group in the Layers panel or double click the object to reveal the group elements. By selecting just those we need and altering their opacity we can give our bottle a transparent look (see the second image below). The correct approach! Right? Wrong!


Step 14
Technically we've just achieved the look we wanted, but in terms of best practices this method isn't going to win a gold star. Illustrator has flattened the transparency of the main object (in this case the group of vectors) though now we've altered the properties of an object within our group. This transparency isn't flattened and the effect works.
However, imagine that we didn't have a group. Imagine instead that we'd built a single vector to make a green glass bottle and we also wanted to apply a transparency. We wouldn't have a group to expand, yet we'd still need to alter the transparency of an element within our vector, so this is where the third correct method comes into play.
3. Open your Appearance panel (Window > Appearance) and use the Direct Selection tool to click on a vector whose transparency you wish to alter. In the Appearance panel you can now isolate this object's stroke transparency properties. You do this by clicking on the Stroke attribute and changing the value in the transparency panel. You aren't altering the properties of the object, but the properties of it's stroke, which is as far down the properties hierarchy as possible! Guaranteed transparency!
Give the strokes of the plastic sections a Multiply Transparency of 40% and the stroke of the cola section a Multiply transparency of 60%.

Step 15
If you feel the bottle needs to be standing on something, make an ellipse, give it a radial gradient from 50% black to white and scale it vertically, as in the image below. Position it underneath the base of the bottle. Make another (larger) ellipse, give it a radial gradient from 20% black to white. Then Mask (Command + 7) the top half with a rectangle. Position it behind the bottle as a horizon.
Unfortunately, Illustrator doesn't (yet) cater for ambience such as dedicated 3D programs, so you'll have to fake your own shadow.

Conclusion
There we have it! A transparent 3D plastic cola bottle! Duplicate your final bottle if you want to really demonstrate it's transparency. Scale it to allow for distance. Bear in mind that when altering the scale of 3D rendered objects (or the stroke width, etc.) your image mapping may need to be reapplied. It's likely that your surfaces will have been assigned different numbers and that your symbols are attached in different places.

Plus Members
Source Files, Bonus Tutorials and
More for $9 a month for all TUTS+
sites in one subscription.


























User Comments
( ADD YOURS )Joe Allam August 14th
Nice tut here, you should show how you made the logo look so “generic” with branding a certain company
( )Daniel August 14th
Great tutorial
Daniel
( )preisselbaer August 14th
is the vecta- or coca cola logo always vertical? … ö.0
( )Lee Milthorpe August 14th
Fantastic looking final image!
Thanks for publishing, learned a lot from this one!
( )Andrew August 14th
mmmmm who doesn’t love a nice bottle of Vector Cola!
( )Geoff August 14th
Thanks Ian - this tut shows some great techniques.
( )Fº August 14th
MAD Techniques! Impressive! I really enjoyed this one.
( )luca August 14th
great…..
( )Josh August 14th
Awesome tutorial! Love the specifics on cutting up individual parts of the bottle to do different things with them.
( )Douglas Neiner August 14th
Top notch tutorial! I use 3D Rotate all the time, Extrude+Rotate some of the time, and Revolve almost none of the time, so I have not experimented with all that it can do. Your tutorial challenges me to do just that and use that feature more often. I never would have thought of cutting up the line a-head of time.
Awesome! Great job.
( )Nate August 14th
Dood this is crazy cool. Thanks for sharing it with us.
( )K3v August 14th
Sweet! Awesome stuff!
( )Daniel August 14th
very nice tutorial! thank you !!
( )Moksha August 14th
thanks, clean and easy
( )Shane August 14th
Wow! Great stuff - I love the 3D tools.
Thanks for posting.
( )Alfonso de Tomás August 15th
Great work!
If you can read (or understand) spanish, come and see mi blog. I have a post with a wine bottle… and a cup… and wine…
http://desfaziendoentuertos.prepress.es/2008/06/dibujos-en-3d-con-adobe-illustrator.html
greetings from Spain!
( )Gary Spedding August 18th
Was able to get a good rendition or two based upon your excellent tutorial details. Had to work around one issue though. I could not divide and expand from pathfinder. I could divide but then had to (expand button was greyed out) expand via menu commands.
Any thoughts or suggestions as to what I might have done wrong to get this issue?
Otherwise (using grids on to help my cruder pen drawing skills) I was able to get this down quite well.
Thanks for this wondewrful tutorial. I look forward to more from you on using Illustrator to its max. potential.
Gary.
( )Ian Yates August 18th
@Gary - Glad to hear you followed the steps to the gritty end! Regarding your question “Any thoughts or suggestions as to what I might have done wrong ” the answer is: Nothing.
My mistake I’m afraid. It’s not necessary to expand a divided object, just ungroup the result to split everything up. I was apparently getting carried away… too much cola.
( )Daniel Geraldi August 18th
really cool!!!
( )Gary Spedding August 18th
Ian, Thanks for the reply and your openess over the error. I played with the transparency of parts tonight and I think that part is worth its weight in gold. I think you ought to get high votes or an award for this tutorial. It is one of the best I have ever seen and dealt with. Please share more!
Cheers,
Gary.
( )WAR August 20th
Great tut!
( )Braden Keith August 21st
Someone care to inform me on how coca cola owns a color?
( )Dee August 21st
I learned something new. thanks for sharing this technique.
( )Kasule August 26th
Man this is awesome, am new at this and home to learn more and perhaps also share. thanks alot.
( )Vector Graphics August 26th
Nice tutorial like usual. Thanks Ian!
( )grEvenX August 30th
Absolutely brilliant tutorial!
( )I had NO idea you could do stuff like this in Illustrator
Kudos^1000
Gary Spedding August 31st
Ian,
A really nice new Tutorial over at the Photoshop PS-Tuts that refers to yours. Any way to map a picture/surface to and entire rotated/revolved shape?
gary.
( )RUGRLN September 1st
Do you know if it wasn’t for your Dramatic Wine Cup tut in PSDTUTS I wouldn’t have seen this tut! I saw itb ut the preview was the logo and I thought it was for creating the logo; not the actual bottle. Your previews are misleading, and made me ignore such an amazing tutorial!!!!!!!! And now I”m using a *** PC, and it can barely run PS CS3, forget AI CS3!!!
( )Noha September 1st
Amazing
( )Thanks alot
Mohd. Amir September 9th
Hi,
This tutorial is amazing.
I like the 3D rotation in Illustrator.
thanks
( )- M. Amir
info@thewebsol.com
Dev October 1st
3d Options is wonderfull…. tnks…
( )toml October 2nd
Hey will this work in CS2. I can’t seem to get the transparency to work. I followed your directions to a T. But I can’t see threw to the liquid in the bottle
( )Debster October 7th
I am so happy with this tutorial! But I do have problems with the transparency as well. Does it has something to do with the version of Illustrator? I am still running CS1. (shame on me)
( )arun (india) October 12th
Very useful tutorial for designers
( )mahesh November 4th
nice n great tutorial thanx
( )monxx November 27th
tha was great tutes friend
( )dc3 January 2nd
great tut, but i’m also wondering if others have the same issue with transparency, I’m using cs3 but nothing happens when i alter the transparency of the strokes. it just remains looking opaque. any idea what I’m doing wrong ?
( )sindhu June 12th
this was a good example to know about the 3d in illustrator…..
( )ASM June 16th
This comes from a 3D environment but the great thing is to be able to simulate that on illustartor without having to go all the way to 3D app.
That’s a great tutorial, thx very much for sharing.
( )