Adding a Label to a Bottle Method Two
Maya 2012 Tutorial
How to Add a Label to a Bottle Object in Maya
Adding a label to a bottle in Maya is a bit tricky since the bottle and the label have different reflective properties. You also need to apply the label so it wraps around the bottle without any distortion.
In this example we will create a bottle and a separate matching curved label object. The label is reshaped to match the bottle using the bend deformer. Since both the label shape and the label image are both square, there are no distortion issues to deal with.
It is also possible to accomplish this with a Layered Shader or Layered Texture. For more information on adding a label using a Layered Shader, see topic, Adding a Label to a Bottle - Method Three. You may find this method somewhat easier since we will be creating the bottle and label as two separate objects.
Open a new Maya document and start a new project. Be sure to set your project and save your new scene. For more information, see topic, Starting a Project.
Choose Create > CV Curve Tool (include options). In the tool options, set the Curve Degree to 3.
Click multiple times in the front view to define half of the bottle's profile. The profile should be positioned to the right of the y axis and include the inside and outside of the bottle. Press Enter to accept your shape.
Select the profile and choose Surfaces > Revolve (include options) from the Surfaces menu set.
In the Revolve options, choose Axis Preset: y , Surface Degree: Cubic, and Output Geometry: Nurbs. Click Revolve to add your shape.
Add a Nurbs plane to the workspace by choosing Create > Nurbs Primitives > Plane (include options).
In the plane options set the U Patches and V Patches to 10 and click Create.
With the plane selected, open the Channel Box and enter 90 for the Rotate X value.
In the top view, use the Move tool (w key) position the plane so it is slightly outside the bottle shape in the front.
In the front view, use the Move tool (w key) and Scale tool (r key) to scale and position your label. Uniformly scale your label so it retains its square shape. The label should be about 1.5 times the bottle diameter.
Select the plane and choose Create Deformers > Non Linear > Bend from the Animation menu set.
With the bend deformer selected, open the Channel Box and change the Rotate Y value to 90.
In the top view, select the plane and open the Attribute Editor, bend1 tab. Adjust the Curvature setting so the label wraps tightly to the bottle.
Look at your bottle in the front view. The label is a square 10 by 10 grid. Determine where you want your label to reside in the 10 by 10 layout by viewing the plane in Surface Patch mode and clicking the patches. In our example the label will be in rows 4-6 and columns 2-9.
In Photoshop, open a new 1,000 x 1,000 pixel image with a transparent background and design a label based on the 10 by 10 grid of the original Nurbs plane. Once your are finished with your design, choose Merge Visible from the Layer panel menu
Command-click (PC - Ctrl-click) the Label layer icon to select the non-transparent areas of the image, then choose Select > Save Selection. Name the selection Alpha and click OK.
Save the label image as label.tif in your project's sourceimages folder. It is saved as a tif file to retain the alpha channel (transparency) information.
Returning to Maya, select the bottle, then right-click the bottle and choose Assign New Material. In the Create Render Node, click Blinn. In the Attribute Editor, set the Color to blue, decrease the Transparency and drop the Eccentricity to 0.1.
Select the label, then right-click the label. Choose Assign New Material, then select Lambert. Once the texture is applied, open the Attribute Editor, Lambert tab and click the checkerbox next to the Color slider.
In the Create Render Node panel, 2D Textures section, right-click the File button and choose Create Texture.
Step Twenty One
With the label selected, open the Attribute Editor, file tab. Click the folder icon (next to Image Name) in the File Attributes section to connect to your label image in the sourceimages folder.
Step Twenty Two
Click the Render Current Frame icon to view your model. You may need to fine tune and move the label in the top view if is not resting on the glass.
Funny Looking Bottle?
To improve the bottle appearance, select the bottle and click the blinn tab in the Attribute Editor. Open the Raytrace Options section. Activate refractions by clicking the Refractions checkbox and set the Refraction Index to 1.5. Make sure to enable Raytracing in the render options. Try rendering the bottle using Mental Ray. For more information, see topic, Adding Mental Ray Textures.