BrushTypes:Select the typeof brush you want to paint with.
All brush types use the shape defined by thebrush attributes. Paint: Applies paintto the stroke path according to the defined attributes. Smear:Distorts paintalready applied to the canvas or scene.
If the stroke uses fake shadowing(see Fake Shadow in Shadow Effects?brush settings), the shadows also smear. Blur:Softens thelook of paint already applied to the canvas or scene. If the stroke uses fakeshadowing (see Fake Shadow in Shadow Effects?brush settings), the shadows also blur.
Erase:In the canvas,the Erase brush removes the color from the painted pixels, revealingthe underlying canvas Clear Color and maintaining the shape of thebrush. For details, see Erase paint from the canvas. In the scenepainting view, the Erase brush replaces the pixel color of the paintstamps it overlaps with black (alpha 0). When you erase,the alpha values are lowered, rather than increased, which means you can usethe Erase brush to erase holes in a texture or scene. Figure 2.3: Brush Types Thin Line/MultiStreaksbrush:These optionsappear in the Paint Effects Brush Settings window, and the Attribute Editor forany brush node.
Use these settings to create additional tubes or hairs aroundthe central tube. Figure 2.4: Thin Line/MultiStreak Type BrushMesh:This affectsthe lighting of the object and makes the edges around tubes hard while usingthe Mesh Brush type. as an example, if the tube sections are set to 4and hard Edges is became on, it’s going to make the tube color asthough the 4 sides are flat, instead of seeking to simulate a rounded tube. Forbends within the direction of the tube, for example, due to modificationswithin the Width Scale, the bend perspective across a given should besufficiently huge to make the perspective hard. Figure 2.5: Mesh Type Brush Mesh type stroke is not same as converting a stroke to polygons.
Rendering Brush Strokes:Brush strokescreated in Paint Effects render only in the Maya Software Renderer. However,they can also be rendered in mental ray if they are converted to geometry(polygons or NURBS). Note that this may not work for all brushes. For example,the Smear brush type will not smear pixels when it is converted to geometry. Apart from thetype of brushes, various other attributes that control the stroke are asfollows: Size of thestroke: The overall size of the stroke relative to other objects and strokes ina scene is controlled through the Global Scale slider as shown in Figure 2.
6. Figure 2.6: Size of StrokeControlled through Global Scale Slider Brush Width:For simple strokes, the brush widthdefines the width of the paint stamps applied along the stroke path. Forstrokes with tubes, the brush width defines the stroke path boundary—tubes canstart growing only within the path defined by the brush width.The Brush Widthis represented by the diameter of this outline.
To change the size of the area that a brushstroke covers, value of the Brush Width can be adjusted. For simple brushstrokes, such as the default stroke, changing the Brush Width value appearssimilar to changing the Global Scale value. However, if the brush is complex,changing the Brush Width appears to be changing the size of the area covered bythe stroke. For example, if a stroke is painted using the astroturf brush; itcreates grass.
Brush Flatness:The defaultbrush in Paint effects is a rounded tube. growing the Flatness 1 setting makesthe brush flat as shown in figure 2.7. Flatness 2 is available most effectivefor strokes that use tube. For easy strokes, Flatness 1 defines howflat the paint lies along the stroke direction. While Flatness is 0,the paint is implemented to the stroke as in case you squeezed it out of thetube. The stroke seems raised from the side. The paint lies flat on the surfaceas if you removed the excess paint.
Refer Figure 2.7. Figure 2.7: Increasing theFlatness of a Brush Brush Softness:Defines how smooth, or blurry you needthe paint to be along the edges of the stroke path (for easy strokes) or alongthe edges of tubes (for strokes with tubes). Better values make the edgegreater blurry. Refer Figure 2.
8. Figure 2.8: Brush Softness Twist Controls:These controlsare used to twist a stroke around its path.
Increasing the twist rateof a brush, twists the stroke like a ribbon. Refer Figure 2.9. Figure 2.
9: Twist Control Stamp Density:A Paint typecreates strokes as dots. To control the number of dots in the stroke, StampDensity is used. Increasing the Stamp Density creates more dots and a smootherstroke as shown in Figure 2.10. If it is decreased, the dots are visible in thestroke as shown in Figure 2.11.
Figure 2.10: Twist Control SmootherStroke Figure 2.11:Dotted Stroke Due to Due to Increased Stamp Density Decreased toStamp Density Screen SpaceWidth:In certainscenes, the brush size has to remain constant regardless of how close thecamera is to the stroke. For example, in scenes that have toon lines. In thiscase, Screen space Width Control is used as shown in Figure 2.
12.Figure 2.12: Screen Space WidthControls For detailed step-by-step procedure,refer to demo Working with Brushes from: eResources 4 Me>> MyVarsity>> Dynamics and Realistic Features>> Show Me How 2.1.2 TubesWhen you paint with tubes, Paint effects plants tubes alongside thestroke path. Those tubes can grow into an almost limitless kind of shapes andforms, relying on the settings you define within the creation, growth,behavior, length Mappings, and user MEL Scripts subsections.
To use any of thesettings in those subsections, the primary Tubes option need to be selected.Tubes are small brush strokes. Those radiate from the center of the area thatis defined through the brush width. Using tubes, a series of crawling lines maybe created. The tubes can be used to paint branches, twigs, leaves, andflowers. Tubes assist to create a flowering plant from a simple black line.They also can create a row of trees where every tree will have its personalbranches and leaves.
Following are a number of the controls for tubes. Refer tofigure 2.13.
Figure 2.13: Tube Controls Start Tubes:This is a control that allows a single tube or aclump of tubes to appear at the start of the stroke. The value of Start Tubesdetermines the number of tubes that are placed at the start of the stroke. Tubes Rand:This control randomizes the placement of tubesalong the stroke.
Reverse Tubes: Reverse allows reversing the face of the tubes. Forexample, if a single stroke is painted across multiple surfaces, the tubes onone surface face the opposite direction as compared to the tubes on the othersurface. In this case, Normals of one of the surfaces need to be reversed byclicking the Polygon menu and selecting Normals –> Reverse. If aNURBS surface is causing the problem, then click the Surfaces menu and select EditNURBS –> Reverse Surface. Surface snap:When on, the start position of tubes snap to theclosest point on the geometry surface.
Surface Snap works best on non-deforminggeometry. 2.1.3 Growing FlowersAs a part of the growth simulation, tubes can sprout branches, twigs,leaves, flowers, and buds. Even though you may apply those settings actually tosimulate plant growth, you may additionally use the growth pattern to createdifferent exciting effects. For example, a dripping watercolor effect may beperformed using branches. Use the growth options to choose what grows off oftubes. The controls inside the growth section of the brush settings permit youto add flowers on your strokes.
To add flowers, increase the growth roll-outpanel by way of selecting the geometry and select flowers. Flowers will appearat the end of the tubes as shown in figure 2.14. Figure 2.14: Flowers at the endof Tubes Tube Direction to Along Normal:Through this setting, tubes point in a directionbased on the normal of the path curve. This means perpendicular to the curveitself. Tube Direction to Along Path:Through this setting, the tubes point in thedirection of the path.
Azimuth:Through this setting, tubes can be pointed in thedirection as they rotate around the point of origin. Elevation:This refers to the direction the tubes point up and down relative to thepath. For example, consider that a wooden log is to be lifted to position it onthe ground. If the elevation is 0, it means that the log is on the ground.
Ifthe value of elevation is 1, it means that wooden log is straight. If valuesare more than 1, the wooden log is pushed in opposite direction. If the minimum and maximum value of Elevation is set to 1, Azimuth will have no effect. Some more settings that control flowers are as follows : Flower Appearance:The appearance of flowers along the tube can also be controlled. FlowerStart attribute sets the location where the first flowers will appear. FlowerAngle sets the angle of the flowers as they tilt inwards. Setting of 1 inFlower Angle determines the angle of first flower and setting of 2 determinesthe angle of the last flower.
The settings in between 1 and 2 set the angles ofother flowers. Refer to Figure2.15.Figure 2.15: Flower Settings Growing Petals:The number of petals which are to be created in a flower is managed byusing Petals In flowers attribute. growing the value will increase the numberof petals in a flower. while flower petals are created, they’re created inradial clusters (flowers) at one position round a branch or twig. This settingdefines what number of petals are in each cluster.
You may bunch multipleflowers collectively to make more exciting flowers. while mixed with the brushtype you can outline shapes like spheres, in addition to control the profile ofa petal. Width Scale is applied as a scale to the current width and defaults to1.0 so that previous presets work with it. Faces Sun:Through this setting, the facing of a flower closer to a light source ismanaged.
If the value is set to 1, the flower faces the sun. This value can beset inside the growth roll-out panel. Sun direction is the reference factor forthe Flower Face sun and Leaf Face sun attributes. 2.
1.4 Adding LeavesLeaves can be added just like flowers are added from the Growth roll-outpanel as shown in Figure 2.16.