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

Home > Articles > Design

Maya 4.5 Materials

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Material Settings

Having reviewed the major material types, now take a look at the variables available in the material you'll most commonly use: Blinn. The other primary materials—Phong, PhongE, and Lambert—have many of the same variables.

To edit material settings, double-click on any material in Hypershade's top or bottom tabs. Usually you create a blank Blinn material in the Work Area of the bottom tab panel, and then double-click it to open the Attribute Editor with the material type loaded. Refer to Figure 8.3A as we travel down the Attribute Editor and discuss its sections.

Notice the material name at the top of the Attribute Editor, which Maya sets to blinn1 for a default starting name. Maya increments the number if you create more Blinn materials. You should edit this text to something more descriptive, though, to help you navigate through your scene materials.

The image next to Material Sample shows a rendered sample sphere that updates as you change the values for the attributes. You use the Type drop-down list to change a material to any other type; if the new material type has different parameters, however, it automatically has the default settings, and the name is reset to the default name.

Next is the Common Material Attributes section, followed by the Specular Shading section. These two sections, displayed by default, are used the most in material editing. The other sections remain closed unless you click to expand them.

Note that the first four variables under Common Material Attributes have a color swatch, a slider, and a checkered button. You can brighten or darken these variables with the slider, but you must click the color swatch (which opens the Color Chooser) to fine-tune a color. Use the checkered button to override a solid color with a texture.

NOTE

Once you apply a texture, the color is no longer editable and the slider becomes locked, as shown in Figure 8.3B. The checkered button is replaced with a right-pointing arrow, and the color in the swatch is meaningless.

Figure 8.3AFigure 8.3A A basic Blinn material in the Attribute Editor.

Figure 8.3BFigure 8.3B Applying a texture will make the "checker" button icon change to a connection icon, and the slider and swatch no longer are editable.

These are the Blinn attributes in the Common Material Attributes and Specular Shading sections:

  • Color The base color of the surface.

  • Transparency Adjusts the surface opacity. As soon as it's raised above 0 (black), Maya changes the sample background to a checkerboard to help gauge the transparency effect. You can use colors to create a tinted glass effect.

  • Ambient Color Adds to and blends with the color value. It's a good idea to leave this value set to 0 (black) except for special effects, as it diminishes the contrast and 3D depth in your rendered results where it's applied.

  • Incandescence A simulation of emitted light. At low values, it tints and self-illuminates the material, and at high values, it overtakes the material's color and becomes self-illuminated. Keep in mind that the rendered material might look like it's luminous, but it doesn't cast light into the scene; you have to simulate that by adding lights.

  • Diffuse Intended to simulate a material scattering light, but it works like a scaling factor on the color. By default, it's set to 0.8, which dulls down the color value you've set. Often animators apply "dirt maps" in this attribute to add realistic dirt and wear that darken a surface. You'll coordinate your diffuse and specular settings, because a "dirty" object wouldn't generally be shiny.

  • Translucence A special attribute that lets you see shadows cast onto the back of a surface, useful for simulating materials such as frosted glass. This effect relies on the light sources around and behind the object you're applying the translucent material to.

  • Translucence Focus This controls how light scatters from the surface. Lower values make the light scatter heavily and results in a soft, blurry translucence.

  • Eccentricity The width of the highlight, simulating how polished or rough the surface appears.

  • Specular Roll Off The brightness/intensity of the highlight.

  • Specular Color The color of the highlight; usually set to white or a gray value.

  • Reflectivity The brightness of reflections on the object. Reflections can be raytraced or use texture maps. If no texture is assigned to the Reflected Color attribute, you need to enable raytracing to see any results from this setting. You can enable raytracing in the Render Globals window (unless you're using reflection maps).

  • Reflected Color For Blinn, the color swatch and slider have no effect. However, when a texture map is applied, it appears to be reflected by the material. Usually, you use one of the environmental texture types. Environment textures are used to simulate an environment surrounding the scene; when applied to a material's Reflected Color attribute, they're used to fake reflection. This technique is often used to get a shiny, reflective effect without the slower rendering caused by raytracing the actual surroundings. Also, sometimes there are no surroundings to reflect; for example, flying logo effects are often set in a black void.

Take a look at the following figures to see the differences between some of these attributes. In Figure 8.4, Transparency is applied to the square on the left so that you can see the object behind it. The square on the right has Translucence applied, so it allows only light and shadow to come through.

Figure 8.4Figure 8.4 Transparency versus Translucence. The red is backlit by a shadow-casting light.

Figure 8.5 shows spheres with similar reflective materials applied, but the sphere on the right has a fractal map applied to its Diffuse attribute. The effect is apparent only where the map is darker, which causes a "dirt" effect—meaning the sphere is darker and its reflections are less intense in those areas.

Figure 8.5Figure 8.5 The Diffuse attribute can darken the color and diminish reflectivity.

In Figure 8.6, the Reflectivity attribute is always at 1 (100%), but varying approaches are used to get different effects. The leftmost image has nothing applied to the Reflected Color attribute. The next image has a chrome environment map in the Reflected Color attribute, which creates the impression of a background despite the sphere's actual surroundings. In the third image, raytracing is enabled but the Reflected Color attribute is disabled, so a perfect reflection is computed. The rightmost image shows the effect of combining raytraced reflections with environmental texture mapping to produce real reflections that have priority over the environmental (Reflected Color) reflections.

Figure 8.6Figure 8.6 Using different approaches with the Reflectivity attribute.

The Color Chooser

The Color Chooser appears whenever you click on a color swatch. The 14 color buttons at the top are a clipboard. To select the color for a color button, you simply click on it. To replace a color button, RMB-click it. Use the eyedropper tool to pick a color anywhere in the window.

A color spectrum appears in the Wheel area. Generally, the best way to select a color is to use the sliders below the wheel (see Figure 8.7). The sliders can be set to RGB (red-green-blue) or HSV (hue-saturation-value) mode in the list box at the bottom of the Sliders section, but HSV mode is often the most useful. Pick the color tint first in the hue slider, and then select the color's intensity, as compared with gray, in the saturation slider. Finally, adjust the darkness, or black mix, with the value slider. At the bottom is the alpha slider for setting transparency, but it's rarely, if ever, used.

Figure 8.7Figure 8.7 Maya's Color Chooser in HSV mode.

Tutorial: Creating Solid Materials

The most basic materials have a solid color and a consistent surface. In this tutorial, you'll use Hypershade to create some solid-colored surfaces and apply them to objects. Load the scene file noted below the CD icon so that you have a starting point for the sample world you're adding materials to.

On the CD

Chapter_08\movies\ch08tut01.wmv

Pottery

For the pot, you'll apply a pottery material created by using a dark orange color in a Lambert material.

On the CD

Chapter_08\ch08tut01begin.mb

  1. Open Hypershade with Shift+T. Make sure the Create Bar and both tab panels are showing. Right-click the bar at the top of the Create Bar and choose Create Materials. MMB-drag a Lambert material type to the bottom tab panel. Double-click the new material and the Attribute Editor should appear with the new material loaded. If this doesn't work, you can RMB-click on the new material and choose Attribute Editor.

  2. Rename the material from lambert2 to pottery. Set the color to dark orange in the Attribute Editor by clicking the swatch next to the Color value, and setting the color in the Color Chooser. We set the Hue to 33, Saturation to .8, and Value to .7. Click the Accept button in the Color Chooser.

  3. Select the flower pot object in the scene, RMB-click the edited material in Hypershade, and choose Assign Material to Selection. You should see the pottery object in the Shaded view become dark orange.

Plastic

For plastic materials, you'll use the Blinn material with bright highlights:

  1. In Hypershade, MMB-drag a Blinn material to the bottom tab panel. Open the Attribute Editor as before, and rename the material from blinn1 to red_plastic.

  2. Set the color swatch to bright red. You can click the red color button in the Color Chooser, or use the HSV sliders to get a red you like.

  3. In the Specular Shading section of the Attribute Editor, make the shine level bright and tight by setting Eccentricity to 0.1 and Specular Roll Off to 1.0, and dragging the Specular Color slider all the way to the right to get a pure white. The material sample sphere at the top of the Attribute Editor should look like shiny red plastic.

  4. Select the cylinder in the scene. In Hypershade, RMB-click on the red plastic material, and choose Assign Material to Selection. You should see the cylinder turn red in the Shaded view.

Metal

Creating metal requires a trick. The sliders in the Attribute Editor imply an upper and lower limit that doesn't really exist. You can type in any value in most of the numeric entries, and the slider will adjust its ranges. In some cases, you can get useful and unique results from "overdriving" a value in this way.

  1. MMB-drag a new Blinn material type from the Create Bar to the bottom tab panel. Open the Attribute Editor for this new material, and name it gold.

  2. In the Color Chooser, set the color swatch to dark brown (HSV: 40, 0.8, 0.2), and click Accept. Under the Specular Shading section in the Attribute Editor, leave the settings at their defaults: Eccentricity at 0.3 and Specular Roll Off at 0.7.

  3. To get the metal look, click the Specular Color swatch and set it to orange, but with a value higher than 1 (HSV: 40, 1.0, and 2.0), as shown in Figure 8.8.

Figure 8.8Figure 8.8 Setting the highlight color for a gold material.

  1. Select the oblong sphere object in the scene, RMB-click on the gold material in Hypershade, and choose Assign Material to Selection. The object in the Shaded view should turn gold.

  2. Try a test render to see what the materials really look like. RMB-click in the Perspective view, and render by clicking Hotbox | Render | Render Current Frame.

  3. A Render View window appears and the image is rendered. Leave tzhis window open.

Reflective Raytraced Metal

The gold looks metallic, but what if you want it to reflect its surroundings? There's a Reflectivity slider in the Attribute Editor, but you won't see any results unless you enable raytracing in the renderer or apply an image to the Reflected Color attribute.

  1. In the gold material's attributes, raise the reflectivity value to 1.0. Click the clapboard icon to the left in the Render View window, and the image will re-render. However, the gold remains non-reflective. Set the reflectivity value back to 0.5.

  2. Click the Render Globals button, shown in Figure 8.9. In the Render Globals window, find the Raytracing Quality section, select the Raytracing check box, and close the Render Globals window. Render again by clicking the clapboard icon, and you should see reflective effects in the gold object. Orbit the Perspective view and render from some different angles to see the effect. Notice that the red plastic material is also reflecting. The default setting for Reflectivity is 0.5—half reflective. You need to change this value when you don't want reflections on materials.

Figure 8.9Figure 8.9 Open the Render Globals window to enable raytracing for reflections and refractions.

TIP

You can zoom and pan the rendered image with the mouse as in any 3D panel. You can also zoom and pan the swatches in either tab panel in Hypershade.

Refractive Raytraced Glass

You can also have transparent materials that refract light. That is, light passes through the objects but is bent, so you see a distorted view of what's behind the refractive object.

  1. MMB-drag a Blinn material to the bottom tab panel. Open the Attribute Editor and name the material glass.

  2. Set the Color to black and the Transparency to white. As soon as you begin to raise the Transparency value, you'll see a checkered background appear behind the swatch in the Attribute Editor and in Hypershade, which means the material is transparent. Set the Eccentricity to 0.1, the Specular Roll Off to 1, and the Specular Color to white.

  3. Now open the Raytrace Options section in the Attribute Editor. Select the Refractions check box, and set the Refractive Index to 1.5. This is similar to glass. Most materials have an index between 1 and 2. Select the ring object to the left of the pot in the scene, RMB-click on the glass material in Hypershade, and choose Assign Material to Selection.

Duplicating Materials

You can start with an existing scene material and then duplicate it so that you can use the old material as a starting point for an unassigned new material.

  1. Select the gold material in Hypershade, in either tab panel, and press Ctrl+d to duplicate. A new material named gold1 appears.

  2. In the Attribute Editor, rename the material as chrome. Change the Color to dark blue by setting Hue to 240 in the Color Chooser. Set Specular Color to white by changing Saturation to 0. You now have a bluish metal look. Crank the Reflectivity to .85, and assign the material to the large sphere in the scene. Render the Perspective view image. The sphere looks like a mirror, reflecting the scene around it.

  3. Render the Perspective view. If it looks a bit fuzzy in the refractive and reflective areas, that's because the quality is set low for faster response. To turn the quality up, open the Render Globals window. In the Anti-aliasing Quality section, select Production Quality in the Presets drop-down list, as shown in Figure 8.10. You might also want to increase the resolution; currently, it's only 320x240 pixels. In the Presets list box, select Full 1024, which gives you a 1024x768 resolution image. This setting takes quite a bit longer to render than before, but behold the final image! To see the image at full scale, click the 1:1 button in the Render View window. You can load the final scene from the file noted below the CD icon.

On the CD

Chapter_08\ch08tut01end.mb

Figure 8.10Figure 8.10 Turning up the rendering quality level in the Render Globals window.

  • + Share This
  • 🔖 Save To Your Account

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