You can create paint masks to protect regions of your model when you paint using the tool as follows:
- Paint a black and white image on a plane and export the paint layer, then load the image as a stencil. Use the stencil as
a projection mask.
- Create a paint mask to mask sculpted cavities using the filter.
Create a paint mask using the Cavity Ambient Occlusion filter
The filter creates shaded effects in the cracks and crevices of your sculpted model. While its not currently possible to bake
the occlusion effect as an image map, you can create a stencil mask that lets you paint in the crevices and cracks to recreate
the effect in an image map.
Use a model that has some sculpted detail that is enhanced by the filter. (That is, either sculpt some fine details directly onto the model, or use a stamp or stencil to create the details.)
Create an cavity ambient occlusion mask
- Dolly, track, or tumble the view to obtain a viewpoint you can paint from.
Note
Once you establish a camera position, do not move the camera again until you finish painting with the stencil mask. Otherwise
the model and stencil mask will become misaligned.
- Turn off the grid in the (so it does not appear in the stencil mask) by selecting . (You can also right-click an empty area within the and turn off the in the pop-up menu that appears.
- Turn on by selecting . (You can also right-click an empty area within the and turn on from the menu that appears.)
The model appears as a flat 2D shape without any depth shading.
- Right-click the model and select from the pop-up menu that appears.
The window appears.
- In the window, adjust the diffuse color so it is fully white.
Adjusting the material to white ensures that the stencil mask you create will have both transparent and opaque regions.
- Click the tab and turn on the filter for the .
The cracks and crevices on the model appear with darker shading.
- In the window, click the filter name to display its properties in the window.
- In the window, increase the property so the dark shaded regions appear even darker.
- Set the property to .
- To capture an image of the do the following:
- (Windows and Linux) Press Alt + P.
- (Mac OS X) Press Command + Shift + 3.
An image of the view is automatically saved to the following directory on your computer for your black and white stencil mask
to the following directory:
(Windows) <drive>:\My Documents\Mudbox\<version>
(Mac OS X) /Users/<user name>/Desktop
(Linux) /home/<username>/Mudbox/<version>
Apply the cavity ambient occlusion mask
- To load the stencil mask into the so you can paint, switch to the .
- In the , click the icon image, and using the file browser, navigate to the directory where the image was captured and click OK.
- In the thumbnail list, select the file named screenshot0001.png. (The name assigned to the screen capture may be different depending on which platform you are using.)
- In the , click the icon image to load screenshot0001.png as the stencil mask.
The stencil image is assigned as a component of the active camera view, in this case, the perspective view.
NoteIf you reposition either the camera or model in the at this point, the model and stencil mask will not align and the paint mask will not register accurately when painting. While
you can manually reposition the stencil, its simpler to remember to not move either the camera or model while painting.
- Switch to the .
- Turn off by selecting .
- In the window, turn off the filter.
- In the tray select the .
- In the properties window, edit the property to the color you want to paint in the crevices.
- Using the , stroke across the model.
The black regions in the stencil mask resist paint while the white regions allow paint to pass through because they are transparent.
NoteIf you want to invert the stencil mask so that transparent areas become opaque and vice versa, click the perspective camera
in the window, then click the stencil node to view its properties in the window. In the stencil’s properties section, turn on the property.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License