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

Bump Mapping

Another powerful and useful method to add to texture mapping is bump mapping. This kind of map does not change the geometry in any way, but it tweaks the way the surface responds to lighting to give the impression of bumpiness based on an applied map. Only the luminance of the applied bump image is used to create the bump effect, so grayscale images are the norm for bump maps. A middle gray is considered flat, lighter areas are higher, and darker areas are lower. In areas where the bump map's brightness is changing, the surface will look like it's bumpy. Because the bump map effect will not affect the silhouette of a surface, you can't use bump mapping to simulate large features that you'll get near to or the effect will be ruined. For example, you wouldn't normally bump map a character's nose; however, you might bump map the pores on that nose. For many surfaces, bump mapping is perfect—fabrics, craggy surfaces, wood grain, or even metal vents, provided the camera doesn't get too close.

TIP

To see a bump effect, the material usually needs to have at least a minimal amount of shininess.

Coordinating Texture and Bump Mapping

When you combine texture mapping and bump mapping artfully, you can get an extraordinary amount of detail from even fairly simple models. Artists often create these maps in a paint program, and carefully match the placement of the bump effects in the grayscale bump map to the corresponding colored areas in the color texture map. Maya uses the bump map's luminence to set the "height," with white being all the way "out" and black being all the way "in." If you try to use an image as its own bump map, it rarely works; the shiny areas appear as large bumps and darker areas that protrude look recessed. It's important to keep bump maps slightly soft; ultra–high-contrast black-on-white images do not work as well as softer images with gradations between the extremes.

Tutorial: Applying Bump Maps

In this tutorial, you'll apply a procedural noise effect to the Bump Mapping attribute of the flower pot's clay material to give it a more natural, rough appearance.

On the CD

Chapter_08\movies\ch08tut07.wmv

  1. In Hypershade, MMB-drag the pottery material to the bottom tab area. If the bottom tab area is cluttered, you can clear it by selecting the materials you are done with and clicking the Clear Graph button (refer to Figure 8.1).

On the CD

Chapter_08\ch08tut05end.mb

  1. Double-click the pottery material to open the Attribute Editor. Click the checkered button to the right of the Bump Mapping attribute near the top of the Common Material Attributes section to open the Create Render Node dialog box.

  2. Click the Solid Fractal type in the 3D Textures section of the Create Render Node dialog box. The Attribute Editor will show the Bump Value and Bump Depth settings. Notice that the Bump Depth defaults to 1.0. You can intensify or reduce the bump amount with this slider. Click the right-arrow icon next to Bump Value to take you to the solid fractal that's driving the bump. The Solid Fractal Attributes section will appear in the Attribute Editor.

  3. Set Ratio to 1.0 to intensify the bump.

  4. Click the place3dTexture tab in the Attribute Editor. You can also find this node in Hypershade, connected to the left side of the Solid Fractal swatch that connects to the pottery swatch. In the Attribute Editor, increase the scale of the Solid Fractal: Set Scale X, Y, and Z to 50. Note the size icon that appears in the 3d panels.

  5. Render the scene to see the flower pot's bumpy appearance.

On the CD

Chapter_08\ch08tut07end.mb

Tutorial: Applying Bump Maps to Your House

Applying a bump map to the textures for your house requires a little more work. In this tutorial, we'll guide you through applying a bump map for three materials: the chimney, foundation, and outer walls.

On the CD

Chapter_08\movies\ch08tut08.wmv

  1. Load your scene with the textured house (see the file noted below the CD icon). Because bump maps are determined with values taken from a grayscale image, you can often take the color version of a texture you have and modify it to become the bump map, as shown in Figure 8.34. After you have a bump map, all you have to do is set the placement so that it lines up with the texture already applied to the object.

On the CD

Chapter_08\ch08tut06end.mb

  1. Switch into the Hypershade/Render/Persp saved layout. Hide all layers except for DoorL. The material for the door will be the easiest one to add a bump map to. There are no sharply defined lines for the door, so you can use almost any type of bump map. Maneuvering in the Perspective view, focus on the door from an angle. If you look at the door straight on, it's more difficult to see the results of the bump map. Do an IPR render.

  2. Double-click the Door_Blinn material to open the Attribute Editor. Click the checkered button next to Bump Mapping. Select the Normal radio button in the Create Render Node dialog box, and then click File as your texture type. In the File tab, load the file noted below the CD icon into the Image Name text box.

On the CD

Chapter_08\BumpMaps\planks_bump.tif

Figure 8.34Figure 8.34 The grayscale bump maps in the bottom row were created by desaturating and altering the original color textures in the top row, so that "higher" areas are lighter.

TIP

If you load the bump map files from the CD-ROM, you'll need the CD-ROM every time you load the scene. A good plan would be to copy the files from the CD-ROM into the sourceimages folder in your project directory.

  1. The bump map is applied almost perfectly, with the wood grain running vertically. In the bump2d tab, decrease the Bump Depth to 0.6. In Hypershade's Work Area, click the place2dTexture tab for the bump map, and set Repeat UV to 1 and 0.7. Add some Noise UV set to 0.01 and 0 to make the vertical lines "wiggle" a little. Look at Figure 8.35 to see the difference before and after the bump map was added.

  2. Now you'll add a bump map to the walls of the house. Make the OuterWallsL layer visible. Focus on the front left side of the house in the Perspective view, and IPR render. With Walls_Blinn open in the Attribute Editor, click the checkered button next to Bump Mapping and click File as the texture type. In the bump2d tab, decrease Bump Depth to around 0.5. Next, drag and drop planks_bump.tif (see the file noted here) to the Image Name text box as before. Double-click on Walls_Blinn in Hypershade, and you can find the values for the place2dTexture node in the Channel Box (hotkey: Shift+C) by clicking on the place2dTexture entry under Inputs. Close the Attribute Editor to get it out of your way.

On the CD

Chapter_08\BumpMaps\planks_bump.tif

Figure 8.35Figure 8.35 The door, before and after adding a bump map to its material.

  1. The Inputs section of the Channel Box contains information about the material's connections (textures and mapping placement). There are currently three place2dTexture nodes, with the most recent one at the bottom. Click on the last place2dTexture node to see a plethora of attributes (see Figure 8.36). Change Rotate Frame to 90, and set Repeat U to 7 and Repeat V to 4.

Figure 8.36Figure 8.36 In the Channel Box, you can modify values for your material's placement nodes.

  1. When adding the bump map to the foundation, you have to set the map's placement to fit with the cobblestone texture. Open Foundation_PhongE and connect a 2D texture File to the Bump Mapping attribute. Be sure the Normal radio button is selected for the placement. Because the original color texture is set up as normal placement, the easiest way to align the two maps is to use an identical placement setup. Open the file cobblestones_bump.tif, and drag it to the Image Name text box.

On the CD

Chapter_08\BumpMaps\cobblestones_bump.tif

  1. The default placement for the bump map is way off, which you can see by doing an IPR render. The cobblestones_bump.tif file is the modified version of the foundation's texture. If the bump map is mapped overlaying the texture, you'll have a much more realistic look. RMB-click on Foundation_PhongE, and choose Graph Network. Rearrange the graph in the Work Area (RMB-click | Graph | Rearrange Graph).

  2. Delete the place2dTexture node that connects to the File node for bump by clicking to select it, and then pressing Delete. Now hold down the Ctrl key while MMB-dragging from the remaining place2dTexture node to the File node for Bump. When you release the mouse button over this node, all the connections should instantly appear.

  3. Select the Bump2d node, and in the Attribute Editor, adjust the Bump Depth level to around 1.2, so that it looks like stone with deep grooves. The foundation should look similar to Figure 8.37 after you're finished.

  4. The last bump map you'll apply is for the chimney base. Having gone through the mapping process for the foundation, try doing the chimney on your own. The directions are basically the same, except that you'll load the bricks_bump.tif file (noted below the CD icon) and apply the bump map to the ChimneyBase_Lambert material.

On the CD

Chapter_08\BumpMaps\bricks_bump.tif

Figure 8.37Figure 8.37 Applying the bump map to the foundation adds a lot of detail.

Going Further

To further your understanding of materials and texturing, try setting up the remaining materials for the house and experimenting with different methods of applying textures, such as projection methods, 3D textures, and so forth. You could also add some objects inside the house. You could model a coffee table, a lamp, or even a chair, or you can import a file with these objects already created for you.

To import the scene, go to File | Import | option box. Reset the settings to the default, and click the Import button. Then browse to the file's location on the CD-ROM, and click the Import button again. A ground material has been created as well as some objects for inside the house.

On the CD

Chapter_08\ch08importObjects.mb

You might have to reposition some of the objects, but if you're having trouble, you can load the scene file noted below the CD icon. Figure 8.38 shows the scene with the objects imported.

On the CD

Chapter_08\ch08tut08end.mb

Figure 8.38Figure 8.38 The objects have been imported.

For your viewing and rendering pleasure, a fully textured version of the house is available on the CD-ROM. Load the scene file noted below the CD icon to see the objects imported and textures added.

On the CD

Chapter_08\ch08HouseComplete.mb

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.

Overview


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.

Surveys

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.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

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.

Security


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

Children


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

Marketing


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 customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


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: www.peachpit.com/u.aspx.

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 NevadaDesignatedRequest@pearson.com.

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.

Links


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