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

Home > Articles > Design

Like this article? We recommend

Like this article? We recommend

Who Was That Masked Map?

A single map is used several times in the following exercise as both the color and the mask, and eventually as the bump map. Masking is a more complex technique, but this exercise walks you through the basics of using it so that you can understand the concept behind it.

TIP

Reusing a single map for multiple purposes is an efficient way to work in 3ds max 5 because the map has to be loaded into memory only once. If you had separate Diffuse maps, Bump maps, and Mask maps, the memory requirements would be three times as great.

Exercise: Masking and Tinting for Flexible, Efficient Materials

In this exercise, you learn to use a Mask map in the Diffuse Color slot to allow the map color—in this case, white—to show through the dark blue Diffuse Color. You then learn to use an RGB Tint map to adjust the color of the revealed underlying map. You'll be working with a two-wheeled personal transport device, shown in Figure 1, in this exercise.

Figure 1Figure 1 Your own personal transporter!


    NOTE

    To follow along with this exercise, you can download the scene and map files. They have been zipped into boardman_mask.zip for faster downloading.

  1. Open the TransMatl02.max file from boardman_mask.zip, and save it as TransMatl03.max. Open the Material Editor and click the second sample window in the top row to activate the Metallic_platform material.

  2. In the Material Editor, click the Standard button to the right of the material name. In the Material/Map Browser, double-click the Raytrace material type, which will give you better control of the reflections. In the Raytrace Basic Parameters rollout, click the Diffuse Color swatch to open the Color Selector. In the RGB value fields, set Red to 6, Green to 20, and Blue to 66 for a dark blue color.

  3. Click the gray map shortcut box to the right of the Diffuse Color swatch to drop to the material's map level. Double-click Bitmap in the Material/Map Browser and open the TransBump.png file from boardman_mask.zip. This simple black-and-white image includes footprints and the number 42 (see Figure 2). In the Material Editor, click the Show Map in Viewport button just below the sample windows. The platform will change color, but will not actually show the map until the object has mapping coordinates assigned.

    Figure 2Figure 2 This black and white bitmap, created in the Top viewport, consists of text and two shapes converted to Editable Mesh objects. A white material with full self-illumination was applied, and the Top viewport was rendered as a PNG file.


  4. The sample sphere will turn black with white figures, as the black-and-white bitmap is controlling 100% of the Diffuse Color. You want blue with white figures for your material, so you'll substitute a Mask map for the bitmap, but keep the bitmap as a sub-map. In the Material Editor, click the Bitmap button to the right of the map name. In the Material/Map Browser, double-click Mask. In the Replace Map dialog box, make sure the Keep Old Map as Sub-map radio button is selected, and click OK. The Material Editor should look like Figure 3.

    Figure 3Figure 3 By choosing Mask map and keeping the bitmap as a sub-map, you now have a Mask slot below the current map.


    NOTE

    In a mask, the white pixels are opaque and the black pixels are transparent, allowing the base color to show through that portion of the mask.

  5. In the Material Editor, Mask Parameters rollout, drag and drop the Map button onto the Mask button. Select the Copy radio button and click OK in the Copy (Instance) Map dialog box. The sample sphere shows a blue sphere with white figures. Click the Material/Map Navigator button to see the material's hierarchy so far (see Figure 4).

    Figure 4Figure 4 The Material/Map Navigator shows that you have the same map used twice in the material—once for color and again to mask where the base color is shown in the material.


  6. Next, you'll apply a RGB Tint map to this material's map level so that you can change the map color at any time. This method is good if you have a client who isn't sure what color he or she wants. In the Material/Map Navigator, click the first Map level indented under the Diffuse slot to go to that level. In the Material Editor, click the Bitmap button to the right of the map name and double-click RGB Tint in the Material/Map Browser. In the Replace Map dialog box, make sure Keep the Old Map as Sub-map is selected, and click OK. The RGB Tint map has equal parts of pure red, green, and blue to make white, so it has no effect on the white map. In the RGB Tint Parameters rollout, drag and drop the red color swatch onto the green and the blue slots, selecting Copy in the Copy or Swap Colors dialog box for each action. The RGB Tint map is now tinting the figures bright red, and the Mask map is still revealing the blue base color.

  7. Next, you'll add the TransBump.png map to the material's Bump slot. The white pixels in the map make the figures appear raised, and the black pixels do nothing. In the Material/Map Navigator, click the top level, and in the Material Editor, Maps rollout, resize the Material Editor and scroll, if necessary, to see the Bump slot.

  8. In the Material/Map Navigator, click and drag the Mask: Map #16 (TransBump.png) level onto the None button next to the Bump slot in the Maps rollout. Select the Instance radio button in the Instance (Copy) Map dialog box and click OK (see Figure 5). The text looks slightly raised on the sample sphere. In the Maps rollout, enter 75 in the Bump Amount field to heighten the illusion. Close the Material Editor and Material/Map Navigator.

    NOTE

    The actual map numbers might be different in your scene.

    Figure 5Figure 5 You can clone maps by dragging from the Material/Map Navigator to the buttons in the Material Editor.


  9. Quick render the Perspective viewport. You'll see a Missing Map Coordinates message box indicating that platform_shape01 has no mapping coordinates to place the map pattern on the surface. Click Cancel to cancel the render. On the main toolbar, click the Select button and click on platform_shape01 in the Perspective viewport. In the Modify panel, Modifier List, double-click the UVW Map modifier. Quick render the Perspective viewport. Because of the way the object was created, the default Planar map is perpendicular to the object's Local Z axis, which stretches the footprints across the width of the platform and places the numbers backward (see Figure 6). In the Modify panel, click the Remove Modifier from the Stack button to remove UVW Map. It will not give you the correct orientation for the maps.

    Figure 6Figure 6 The Planar UVW Map does not orient the maps correctly on your platform.


    Positioning map patterns on objects can often be challenging, to say the least. 3ds max 5 makes it a lot easier with the improved Unwrap UVW modifier, which allows you to control the surface coordinates to match patterns in the current material's bitmaps. You'll use this modifier to make positioning the footpads and racing numbers on your transporter a snap.

  10. You want the footprints on the platform facing forward and the number 42 on top of each fender. You have only one 42, which is in front of the footprints. You will use the improved Unwrap UVW modifier to give you the control you need. With the platform_shape01 object selected, go to the Modify panel, Modifier List, and click Unwrap UVW. In the Parameters rollout, click the Edit button. This opens the Edit UVWs dialog box and shows the mesh from the side with some selected vertices. In the Modify panel, Selection Parameters rollout, click the minus button to deselect the vertices.

  11. Click the UV drop-down list at the top right of the Edit UVWs dialog box, and select Pick Texture from the list (see Figure 7). Double-click Bitmap in the Material/Map Browser and open TransBump.png from boardman_mask.zip. This drops it into the dialog box background. The mesh in the dialog box represents the mapping coordinates on the surface, and you can see the relationship to help align the pattern.

    Figure 7Figure 7 You can view a bitmap in the Edit UVWs dialog box by selecting Pick Texture in the UV drop-down list.


  12. You do not want the default mapping because you need a more complex positioning on the object's surface. Choose Mapping, Flatten Mapping from the Edit UVWs menu. In the Flatten Mapping dialog box, enter 40 in the Face Angle Threshold field and click OK (see Figure 8).

    Figure 8Figure 8 The Flatten Mapping option groups faces that meet at 40 degrees or less and flattens them onto the Edit UVWs display with the bitmap visible in the background.


  13. At the bottom of the Edit UVWs dialog box, in the Selection Modes section, click the Select Element check box. Click on the shapes in the display, and each element will be highlighted in red as it's picked. In the Edit UVWs display, zoom out slightly to see that the map is tiled in the background. Drag a selection window around half of the elements, and move them to the right, into the black space away from the map figures. Move the other half to the left so that the figures do not appear on the object.

  14. Click the Freeform Mode button at the top left of the Edit UVWs dialog box. Also, make sure the Show Map in Viewport button is toggled on in the Material Editor. In the Edit UVWs display, select the large element in the middle of the second column of elements on the left (see Figure 9), pick any of its vertices, and move the element over the footprints. Zoom in to see the alignment better. The footprints now show on the platform in the Perspective viewport. You are adjusting the mesh's mapping coordinates to match the map patterns. Click on one of the Element Gizmo's yellow corners, and scale the element so that the footprints fit in the rectangular area. Move the element again to center it on the footprints (see Figure 10).

    TIP

    By default, the Edit UVWs cursor is in Freeform Mode. Clicking the corner points scales the selection, clicking the midpoints rotates the element, and clicking on a vertex moves the element. If you hold Ctrl down while dragging, you lock the Element Gizmo's aspect ratio. Holding down Shift restricts scaling to one axis.

    Figure 9Figure 9 By selecting elements in the Edit UVWs display and moving them away from the bitmap figures, the map will not show anywhere on the mesh in the scene. Then select the middle element in the left grouping.


    Figure 10Figure 10 Scaling the element large makes the pattern look smaller on the surface. Moving the element adjusts the position of the pattern on the surface.


  15. Next, you'll align the top coordinates of the left and right fenders (see Figure 11) over the 42 in the map. You need to rotate and scale the elements for the right fit. In the Edit UVWs display, rearrange the fender's top elements to make the numbers smaller so that they can be read on each side (see Figure 12).

    Figure 11Figure 11 Align the two fender top elements with the 42 in the bitmap.


    Figure 12Figure 12 You can position the numbers on each fender by moving, rotating, and scaling the elements in the Edit UVWs dialog box.


    TIP

    If this pattern were too crowded to get the results you wanted, you could zoom out and move elements to any other tiled map location in the display.

  16. Close all windows and dialog boxes. Right-click in the Perspective viewport and click the Quick Render button. The shiny blue platform should have bright red figures raised from the surface. Open the Material Editor, and at the top level of the Metallic_platform material, click the Reflect Color swatch in the Raytrace Parameters rollout. In the Color Selector dialog box, enter 100 in the Values field, and press Enter. In the Raytrace Parameters rollout, enter 100 in the Specular Level field and press Enter. Quick render the Perspective viewport. You should have a shiny blue platform with chrome fixtures and rubber tires.

  17. Close all windows and dialog boxes, and save the file. It should already be called TransMatl03.max. If you like, you can compare your ending scene with the TransMatl03.max from boardman_mask.zip.

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