Assigning textures

 
 
 

For an orange, one color may be all that you need. In this section, you will go a step further by making a logo stamp appear on the orange skin. For this and other color effects, you need to apply a texture to your material.

In visual arts, a texture is any kind of surface detail, both visual and tactile. In Maya, a texture is a collection of attributes that creates surface detail. Textures have a more specialized display purpose than materials. For example, you can use textures to create the appearance of a marbled pattern, bumps, or a logo image on the side of a can.

In the Maya Help, a texture is also referred to as a texture node. A node is a collection of attributes (or actions) with a common purpose. A shader is sometimes called a shader node or material node.

To display a texture on a surface, you apply a texture node to an attribute of the surface material. In the next steps, you apply a texture to the Color attribute of the Phong E material.

To apply a texture to a material

  1. Click the Map button next to the Color slider. This is a quick way of applying a texture to an attribute. This is also called mapping a texture.

    TheCreate Render Node window displays a list of the textures you can apply. The texture names and their icons help you to decide which texture is appropriate for the effect you want.

    To create the logo stamp effect, you will use the Maya > 2D Textures > File texture. A File texture uses an image file that you or someone else created separately, such as a drawing from a paint program. For this lesson, you’ll use an image we created for you.

  2. Before you create the texture, in the 2D Textures list, right-click the File texture and select Create texture.

    This option means Maya will apply the texture normally and stretch the texture evenly around the surface. The other settings—Create as projection and Create as stencil — are other ways you can apply a texture. You will learn about these settings at the end of the lesson.

  3. The file1 node appears in the Attribute Editor.

    The file texture also causes the sphere to turn white in the scene view and black in a rendered view. This is a temporary color until you specify the actual file name of the file texture.

  4. Click the folder icon to the right of the Image Name attribute. A browser window opens.
  5. Navigate to the GettingStarted2014LessonData\Rendering\sourceimages directory and open mayakist.iff.

    Maya looks for source images in a default sourceimages directory. However, Maya can use file texture images anywhere on your workstation or local network. For example, you could have them on a central disk drive that is shared among your coworkers.

    The file texture with a Mayakist logo now appears on the sphere. The logo is somewhat jagged, which will simulate the look of an ink stamp on rough orange skin.

  6. In the Attribute Editor, click the place2dTexture1 tab.

    The place2dTexture1 tab is a node with attributes that control the texture’s position on the surface.

    If you select another object and the Attribute Editor no longer displays the file texture attributes, it’s easy to restore the display. Right-click the sphere, select Material Attributes, and click the texture map icon next to the Color attribute.

  7. As an example of the place2dTexture1 placement controls, move the Rotate UV slider slightly to the right, to a value about 5.9. This rotates the Mayakist logo on the surface.

    In this case, the texture placement needs almost no adjustment. For the ease of this lesson, we created a file texture that conforms to the sphere’s shape by default. In practice, placing file textures requires more adjustment. For details, see Preparing for the lessons.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License