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

Home > Articles

Maya 5 Paint Effects

This chapter is from the book

This chapter is from the book

Working with Strokes

After you've created a stroke, you can use it in many ways. You can edit the stroke or copy a brush to or from the stroke. You can also modify existing Paint Effects parameters to, for example, make a brush have smaller flowers or more branching.

Selecting Strokes

To modify a stroke, you need to select it first, which can be challenging if you're currently in Shaded or Wireframe mode because the stroke is nearly always laying across an object. It's usually easier to select strokes in the Outliner. If you want to delete a stroke, you can press the Delete key after selecting it in the Outliner.

Creating a Paint Effects Stroke with a NURBS Curve

You can attach a brush to any NURBS curve you've created (by projection, direct creation, or any other method) to create a new Paint Effects stroke. With the curve selected, open the Visor, select a brush, and in the Paint Effects panel, choose Paint Effects | Curve Utilities | Attach Brush to Curves.

Copying and Pasting Brush Settings

You can select any stroke you've already created and use its brush settings to continue painting or to paint other objects by choosing Paint Effects | Get Settings from Selected Stroke. This action copies that stroke's brush settings into the template brush. You can then select other strokes and apply the same settings to their brushes. To do this, you select the strokes in the scene or in the Outliner, and then choose Paint Effects | Apply Settings to Selected Strokes.

Simplifying Curves and Strokes

To make a stroke's underlying curve easier to animate and deal with, you can remove CVs from the curve to simplify it by choosing Paint Effects | Curve Utilities | Simplify Stroke Path Curves.

If the stroke has a complex brush attached, however, it can slow down Maya's responsiveness. The solution is to lower the stroke's display quality (this lowers the density by reducing the numbers of tubes and segments in the stroke). With the stroke selected, choose Display | Stroke Display Quality on Maya's main menu and select one of the following: 0%, 25%, 50%, 75%, 100%, or Custom. It's best to select the Custom option and set a value around 5%–20%. Usually, a percentage in this range is all you need to see where the stroke will appear and whether it's getting in the way of something else.

Tutorial: Adjusting Paint Effects

It's time to return to the office lobby scene you built in Chapter 5, "Modeling with Polygons." In this tutorial, you'll paint NURBS surfaces in the planters. Painting in plants for the planters is a snap, and it adds another level of realism to the scene.

  1. Load the scene file, and maximize the Perspective view. Change the panel view to persp2 by clicking the Panels button at the top of the viewport and then choosing Perspectives | persp2. Next, enable Hardware Texturing in the Perspective view (Shading | Hardware Texturing). If this drags down your graphics performance too much, you can work with Hardware Texturing disabled—simply toggle it off the same way you enabled it.

  2. First, create a NURBS plane to place over the planter (Create | NURBS Primitives | NURBS Plane). In the Channel Box, enter Translate settings of 150.424, 20.986, 73.015; Rotate settings of 0, -45.063, 0; and Scale settings of 148.883, 65.865, 25.854. Under the INPUTS section, set Spans for U to 9 and Spans for V to 1.

  3. Switch to the Top view, and name this plane nurbsPlane1. Right-click on the plane, and choose Vertex. Position the vertices in the planter so that they're just inside the border. Next, make the nurbsPlane1 nonrendering by opening the Attribute Editor (hotkey: Ctrl+a), and under nurbsPlaneShape1, expand the Render Stats section and clear all the check boxes, from Cast Shadows to Opposite. This enables you to paint directly on an object in the scene, but the plane won't be visible at render time.

  4. You're ready to begin setting up Paint Effects. While nurbsPlane1 is selected, make it paintable (Hotbox | Paint Effects | Make Paintable). Next, open the Visor (hotkey: Alt+v) and the Brush Settings dialog box (Hotbox | Paint Effects | Template Brush Settings). In the Visor, open the Plants folder and select the Fernstextured brush.

  5. The Brush Settings dialog box should still be open; if it's not, open it with Hotbox | Paint Effects | Template Brush Settings. Set the brush's Global Scale to 2, and then expand the Brush Profile section. Set Brush Width to 2 and collapse the Brush Profile section. Next, expand the Shadow Effects section. In the Fake Shadow drop-down list, select 2D Shadow, and click the Cast Shadows check box. Collapse the Shadow Effects section, and expand the Tubes section and then the Creation section. Set Tubes Per Step to 1.2.

  6. You should now see a red circle around your brush as you place it over the NURBS surface. Begin painting on the NURBS surface around the edges, but do so sparingly until you see just how much it takes to cover the planter area. Leave the thin center section of the planter open to fill with ground cover. Don't try to fill the planter; rather, let the ferns drape over and cover some areas to make the planter look full (see Figure 14.8). This aspect requires some artistic judgment, and it might take some practice. Just keep in mind there's no right or wrong way.

Figure 14.8Figure 14.8 Hardware-textured and rendered view of the scene.

  1. Now, you'll use some ground cover to fill in the center area and front edges of the planter. Begin by setting up a new brush. Open the plantsMesh folder in the Visor, and select the groundCoverLight brush. Open the Brush Settings dialog box (Hotbox | Paint Effects | Template Brush Settings), and set Global Scale to 3. Expand the Brush Profile section, and set Brush Width to 0.43. Expand the Shading section and pull the color slider from the light green default to the left for a darker green in Color1.

  2. Expand the Shadows Effects section in the Attribute Editor, and select 3D Cast from the Fake Shadow drop-down list. Select the Cast Shadows check box, and collapse the Shadow Effects section.

  3. Expand the Tubes section. Under the Creation section, set Tubes per Step to 72.045. To edit the groundCoverLight stroke, click the groundCoverLightShape tab in the Attribute Editor. Here, you can adjust the color, shadows, size, or any other attributes, much as you did in setting up the initial brush.

  4. Render the view to get an idea of what the plants look like (see Figure 14.9). Next, save the brushes you made changes to and reuse them in the planter on the opposite wall of the lobby. To do this, open the Outliner (hotkey: Alt+o). Select strokeFernsTextured1, and in the Hotbox, choose Paint Effects | Get Settings from Selected Stroke to copy the settings you created.

Figure 14.9Figure 14.9 The result of adding a shorter, lighter colored ground cover for contrast and depth in the planter.

  1. Choose Paint Effects | Save Brush Preset. In the Save Brush Preset dialog box (see Figure 14.10), enter M5FplanterFerns in the Label text box and Ferns in the Overlay Label text box. Select the To Visor radio button for the Save Preset setting, and this handy brush will open in the default directory where your brushes are currently saved. However, you might want to make sure it opens to the folder where the Visor is currently accessing brushes. In the Visor, look at the path displayed above the folders in the Paint Effects tab. Save the brush in the path you find, such as C:\Program Files\AliasWavefront\Maya5.0\brushes\plants. Before you save this brush, be sure you have a panel open in the Paint Effects view (hotkey: 8). After refreshing the view, click the Grab Icon button in the Save Brush Preset dialog box. Next, marquee-select a window over a portion of the ferns you'd like to have as an icon.

Figure 14.10Figure 14.10 Adding custom brush types to your Visor folders.

  1. Click the Save Brush Preset button, and then click Close. The new brush icon you created will be displayed in the Visor under the Plants folder. Now do the same for the ground cover brush you created, naming it M5FplantCover. Then name the overlay text groundcover. You'll be able to reuse these brushes now.

  2. Now, select nurbsPlane1 and copy it (hotkey: Ctrl+d). While it's selected, you'll freeze translations for the plane, or reset the attributes for its position, rotation, and scale (Hotbox | Modify | Freeze Transformation | option box). In the Freeze Transformations Options dialog box, make sure all check boxes are selected and click Freeze Transform. In the Channel Box, all Translate and Rotate values are set to 0. The Scale setting is currently 1. Change Scale X to –1 for nurbsPlane2. This setting flips the plane to fit the planter at the opposite side of the lobby. To move the plane into position, set Translate X to -300.688.

  3. After positioning the plane, freeze its transformations again (Hotbox | Modify | Freeze Transforms) to keep the Paint Effects on the upper face of the plane.

  4. In the Perspective panel, create a new perspective. Its name should be persp3. Move it into position in front of nurbsPlane2 to paint that surface. Then, make the plane paintable (Hotbox | Paint Effects | Make Paintable).

  5. In the Visor, select the Ferns brush you just created and paint in the planter, just as you did for the first one. Switch brushes to the M5FplantCover brush you made, and fill in the lower areas of the second planter. For this side of the room, you'll turn off shadows for the ground cover to speed things up. Then, render the Perspective view to see the results.

    Now that you've painted the bulk of the plants in the lobby scene, you'll turn your attention to the smaller areas—the plant stands. You can use the Fern brush for some of them, but for more variety, you'll create a new brush first.

TIP

Rendering should take no more than a minute. If your render times are extremely long, check the Render Global Settings window, and set the resolution to 320x240 and the antialiasing to Preview Quality for these tests.

  1. First, create a NURBS circle, and in the Channel Box, set Translate X, Y, and Z to 48.563, 9.938, -202.75. Convert the circle into a planar object (Hotbox | Surfaces | Planar | option box). In the Planar Options dialog box, set the Output Geometry to NURBS, and click Planar Trim. While the plane is selected, open the Attribute Editor (hotkey: Ctrl+a), and expand the Render Stats section. Clear all check boxes so that the plane isn't visible at render time.

  2. Make the planarTrimmedSurface1 paintable (Hotbox | Paint Effects | Make Paintable). Switch the view to Camera1, and check to make sure the Time Slider is set to 1 (because you animated this camera in Chapter 13, "Cameras and Rendering"). You should see planarTrimmedSurface1 at the bottom right of the view. Rename the NURBS surface as plantsurface_01 and center its pivot point (hotkey: Ctrl+c). In the Channel Box, set Rotate X to 180 so that the normals point up in the Y axis.

  3. Open the Visor (hotkey: Alt+v) and, in the Tree folder, select Shrub. Paint one stroke across plantsurface_01, and maximize the viewport.

  4. Now, you'll adjust the brush's settings. Open the Attribute Editor (hotkey: Ctrl+a). Change the Global Scale setting to 12, and expand the Shadow Effects section. Set Fake Shadow to 2D Offset (see Figure 14.11). Then, render the Camera1 view to see the size of the shrub and what it looks like in the scene.

Figure 14.11Figure 14.11 Adjusting the attributes of a Paint Effects stroke.

  1. Expand the Tubes section, then the Creation section, and then the Width Scale section. Notice that the shrub currently leans to the side. To fix this, set Azimuth Min to –0.851 and Azimuth Max to –0.140. Also, set Elevation Min to 0.83 and Elevation Max to 0.65. Now, the shrub stands a bit straighter and is large enough to resemble a typical office plant.

  2. In the Attribute Editor, expand the Growth section and then the Branches section. Set Num Branches to 3. Notice that the shrub in the scene is now fuller, but the change hasn't noticeably increased render time.

  3. The remaining planters need to be filled, but you'll experiment with other brushes for variety. Select the shrub in the Outliner and center its pivot (hotkey: Ctrl+c) in preparation for moving it. Next, duplicate the Shrub (hotkey: Ctrl+d), and move the new shrub to the plant stand on the other side of the room. The Translate settings should be -87.727, 0, and -0.747.

  4. Now, copy the plant surface to each remaining plant stand and use the Visor to select new brushes to experiment with. As each plant stand is finished, notice that the scene gains a richer, more lifelike look (see Figure 14.12).

Figure 14.12Figure 14.12 The full scene with all Paint Effects added and rendered.

Because the scene's plants are already applied, now is a good time to experiment with settings for Paint Effects strokes. You might want to see a change in color or perhaps the number of twigs and leaves. Explore the preset brushes, and figure out how some of the more esoteric styles, such as the teapot, have been created from the basic sets of variables that control a brush's look. Try creating some landscapes of different types, and use a variety of the brush tools.

A few closing notes about Paint Effects: Everything associated with creating, rendering, and animating Paint Effects is housed within the stroke and brush. Paint Effects has its own internal shading procedures, so you can't assign your own shaders to them. If you're adventurous, however, you can locate the source images the strokes are based on and edit them with a paint program, such as Photoshop, to customize the existing brushes. If you do, be sure to make a copy of the originals so that you can always return the brushes to their defaults, if needed.

Paint Effects also has its own Dynamics simulations, so the effects won't interact with Maya's Dynamic fields discussed in the next chapter (although the effects can be affected by external "control curves" to simulate dynamics, to a degree). Paint Effects are rendered separately as a post-procedure, and then are automatically composited into the rendered frame. You can see this during the preview rendering process, when Paint Effects strokes appear only after the rest of the scene is calculated.

NOTE

Now is also a good time to mention a limitation of Paint Effects that might cause you some setbacks. Because Paint Effects is a post process that's added at the end of a render, raytraced reflections or refractive effects, such as the distortions of a glass lens, can't be rendered in a single pass.

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