Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design

Maya 4.5 Materials

This chapter is from the book

This chapter is from the book

Adding Texture Mapping to Base Materials

By now, you should have a basic understanding of how textures work with the materials and how to place 2D textures on objects in your scene. In this next tutorial, you'll apply these methods to the house's base materials you created and assigned in the earlier tutorial.

Tutorial: Texturing the Doorknob, Walls, and Windows

Having a solid color for the doorknob isn't as realistic as it could be. Earlier you learned how you can use a material's Diffuse attribute to create a dirty look, which is exactly what you'll do for the doorknob.

On the CD


  1. First, load your scene into Maya. You can continue from the previous house tutorial, or load the file noted below the CD icon.

On the CD


  1. Start by changing the layout you're working with. If you haven't already done so, hide the UI elements, and change to the saved layout for working with materials (Hotbox | Panels | Saved Layouts | Hypershade/Render/Persp).

  2. Hide all the layers except DoorL. To begin, you'll modify the texture on the doorknob. By adding a map to the Diffuse attribute, you can achieve a worn metallic look for the doorknob. Select the outer doorknob and focus on it (hotkey: f). IPR render the doorknob and select it for update in the Render View window.

  3. In Hypershade, make sure the top and bottom tabs are visible (click the Show Top and Bottom Tabs button if they aren't). Double-click the DoorKnob_Blinn material to open the Attribute Editor so that you can map a texture to the Diffuse attribute. Click the checkered button to the right of Diffuse to open the Create Render Node dialog box. Under the 2D Textures section, make sure the Normal radio button is selected for placement, and click the Fractal type. The Attribute Editor switches to show the Fractal attributes. Looking at the IPR render, you'll see that it has updated.

  4. By changing settings for the procedural texture, you can get a brushed effect on the doorknob; as you change the settings, watch the IPR render to see how the texture is affected. Click the fractal1 tab in the Attribute Editor. Under the Fractal Attributes section (see Figure 8.24), change Amplitude to 0.5, Threshold to 0.1, Ratio to 0.77, and Frequency Ratio to 8. Now click the place2dTexture tab. Under the 2D Texture Placement Attributes section, change the second text box (for V) to the right of Repeat UV to 0.15. Last, set the Noise UV to 0 and 0.75. Adding this UV noise to the Fractal attribute "swirls" it more. Close the Attribute Editor.

Figure 8.24Figure 8.24 Using the Attribute Editor, IPR, and Hypershade, you can easily add textures to your materials.

  1. Focus on the door, and redo the IPR render with more of the door in the view. Double-click Door_Blinn in Hypershade to open the Attribute Editor. You'll assign a texture to the Diffuse attribute just as you did with the doorknob, but this time you'll create a Noise texture. To do that, in the noise1 tab, change the values under Solid Fractal Attributes (see Figure 8.25): Set Amplitude to 0.8, Ratio to 0.35, Frequency Ratio to 20, Depth Max to 3, and Noise Type to Wispy. In the place2dTexture tab, change the first text box for Repeat UV to 4. Finally, hide DoorL because you have finished applying textures to it.

Figure 8.25Figure 8.25 Use these settings to change the Noise texture you just mapped to Door_Blinn's Diffuse attribute.

  1. Next, you'll add some texture to the walls. Display the OuterWallsL layer, and IPR render the walls so that you can see them clearly. Open Walls_Blinn in the Attribute Editor, and change the Reflectivity to 0. Map a Noise texture (again confirming that Normal is selected at the top of the Create Render Node dialog box) to the Color attribute of Walls_Blinn. Use the settings shown in Figure 8.26: Set Amplitude to 0.5, Ratio to 0.77, Frequency Ratio to 2, Depth Max to 20, Density to 5, Spottyness to 0.3, and Falloff to Bubble.

Figure 8.26Figure 8.26 Settings to change the Noise texture mapped to the Color attribute for Walls_Blinn.

Maya provides a "color balance" option to easily adjust the brightness and contrast of the noise. You'll use that now to darken and mute the noise effect:

  1. Under the Color Balance section for the Noise, set the Color Gain in the Color Chooser (HSV: 41, 0.315, 0.656). Then change the Color Offset (HSV: 45.5, 0.393, 0.120). After setting those values, click the place2dTexture tab and set Repeat UV to 1 and 5 to make the texture compress in the V direction. Save your scene.

  2. Select Walls_Blinn again and map a 2D Mountain texture to the Diffuse attribute. In the place2dTexture tab, change the Repeat UV to 0 and 3 and set Noise UV to 0 and 0.005. You should also change the values in the mountain1 tab, as shown in Figure 8.27: Amplitude to 0.75, Snow Altitude to 1, and Snow Dropoff to 1.

Figure 8.27Figure 8.27 Settings for the Mountain texture mapped to the Diffuse attribute of Walls_Blinn.

  1. Now you can move on to the foundation. Open the Attribute Editor for Foundation_PhongE by double-clicking on the material in Hypershade. You'll map an image file to the Color attribute by clicking on the checker button for the Color attribute. The texture list should appear. Select File. The Attribute Editor displays the file settings. We could now click the Folder button to select the image map by name, but there's an easier way, shown in the next steps.

  2. In HyperShade, choose Tabs | Create New Tab. In the Create New Tab dialog box, enter M4F maps in the New Tab Name text box, select the Bottom radio button for Initial Placement, select the Disk radio button for Tab Type, and then point the root directory to the Chapter_08\Textures folder on the CD-ROM (see Figure 8.28). Click the Create button.

Figure 8.28Figure 8.28 Adding a new tab to Hypershade.

  1. In Hypershade, click on the bottom tab Shader Library, and then click the new tab you created. You should see swatches appear for all the textures in the selected folder. These are thumbnail images of the available textures that you can zoom and pan. Click cobblestones.tif to select it, and then MMB-drag the texture to the Image Name text box in the Attribute Editor. The file's location is automatically placed in the text box. Press Enter, and the Texture Sample swatch updates to show the new texture. If you do a test render, you'll see the material applied to the foundation, as in Figure 8.29.

Figure 8.29Figure 8.29 The cobblestones.tif texture has been linked to the File node.

  1. Click the place2dTexture tab. Under the 2D Texture Placement Attributes section, change Repeat UV to 3 and 2. Click Foundation_PhongE again to open it in the Attribute Editor. Map the 2D texture Noise to the Diffuse attribute, and in the noise3 tab, change the Solid Fractal Attributes to match Figure 8.30: Set Amplitude to 0.7, Ratio to 0.77, Frequency Ratio to 5, Depth Max to 2, Frequency to 10, and Noise Type to Perlin Noise. This adds a heavy "grime" layer to the texture. Raising the Threshold value will lighten the noise color and therefore diminish the grime effect.

  2. Hide the OuterWallsL layer and display the ChimneyL layer. Zoom in on the chimney and IPR render. If you are having trouble seeing it because some areas are not illuminated enough, select spotLight2 in the Outliner and increase its Intensity to 1.2 in the Channel Box.

Figure 8.30Figure 8.30 Placing this Noise texture on the Diffuse attribute gives the cobblestone a very dirty look.

  1. Click ChimneyBase_Lambert in Hypershade. In the Attribute Editor, map a File 2D texture node (the Normal radio button should be selected for placement) to the Color attribute. Just as you loaded the cobblestone texture for the foundation, in the Shader Library tab, locate bricks.tif and MMB-drag it to the Image Name text box in the Attribute Editor.

  2. The IPR updates, but the brick is stretched. To fix that, RMB-click ChimneyBase_Lambert and choose Graph Network. Click the place2dTexture node for the brick. Under the 2D Texture Placement Attributes, change the Repeat UV to 1 and 6. The brick looks too clean, so you'll add a Solid Fractal 3D Texture map to the material's Diffuse attribute. To do that, in the place3dTexture tab, click the Fit to Group bbox button. Under the Solid Fractal Attributes section, change the Amplitude to 0.8, Frequency Ratio to 5, Ripples to 2, 3, and 5, and Bias to 0.05.

  3. In the Perspective view, rotate around. Notice that on two sides of the chimney, it seems as though the texture is moving in the wrong direction (see Figure 8.31). The surface's direction is going in the opposite direction as the other sides of the chimney. In other words, the U and V coordinates have been switched, which is typical of NURBS cubes in Maya. To change the direction of a surface, select the side of the chimney with the direction problem, and reverse the surface direction (Alt+z | LMB-click | Reverse Surface Direction | option box). Make sure the Surface Direction is set to Swap. Click the Reverse button to see the texture magically repositioned in the Perspective view. You'll need to IPR render again to see the change. There are two sides of the chimney with this problem, so repeat Step 17 on the opposite surface.

Figure 8.31Figure 8.31 Reversing the surface direction will fix the texture mapping on the NURBS object in one step.

  1. Before going any further, be sure to save your scene. The last step is to add a texture to the Transparency attribute for your Window_Anisotropic material. Make all layers visible except for PorchL because the porch isn't anywhere near the windows. You can do an IPR render of the window, but it won't show much without raytracing. In the Attribute Editor for Window_Anisotropic, map a 2D Texture Ramp (select the Normal radio button) to the Transparency attribute.

  2. A Ramp texture can give you a wide range of effects. You can think of it as a gradient, with one color blending into another. Click the ramp1 tab, and select Circular Ramp in the Type drop-down list box (see Figure 8.32). The Texture Sample swatch updates to show what the Ramp looks like. You can specify the areas that will be transparent by setting a ramp color (the circular color buttons) to white. The Interpolation list box, below Type, defines how the blending (intermediate) colors change; it should be set to Linear.

Figure 8.32Figure 8.32 The default Ramp has been changed to a Circular Ramp.

  1. After modifying all the settings, you will have a faded, more transparent look around the edges of the window. Using the IPR render can help you tweak the positions of the fading transparency. In the Attribute Editor for the Ramp texture, notice that three separate colors are displayed by default. If you click anywhere in the Ramp, you create another color. To move the colors, click on the circles to the left; to delete the colors, click the small squares on the opposite side. Click the green square to delete its color, and click the blue circle to select it. Under this color swatch, set Selected Color to almost completely black. Changed Selected Position to 0.810, U Wave to 0.150, Noise to 0.150, and Noise Freq to 0.600. Watch the IPR render update with each change. Change the other color in the ramp to pure white by clicking the red circle and setting Selected Color to white. Change Selected Position to 0.415. Your Ramp settings should now resemble Figure 8.33. Don't forget to save your scene.

Figure 8.33Figure 8.33 The Ramp texture has been set up for the window glass.

At this point, you can continue on your own to apply textures to the rest of the house. You have walked through applying textures for the walls, chimney, door, and glass. The next section of this chapter introduces yet another important attribute for materials—bump mapping.

On the CD


Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive:

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020