9
Assign Vertex Colors Utility 1735
VertexPaint m odifiers are applied to the
selected objects, and the vertex colors for the
objects are taken from their materials and from
the lighting in the scene, depending on the
options you choose under Light Model.
Changing the material or the lighting in the
scene won’t change the vertex colors. To do
this, click the Update All button.
Note: The new vertex colors are stored in the
Vertex Paint modifier. If you want to access
them, go to the Modif y panel and access the
parameters in the rollouts there. You can also
use the tools found in the Vertex Paint floating
dialog to create layers, paint, blur or adjust
color. The Vertex Paint floater launches when
you go to the Modify panel and the object is
selected.
Example: To use the Assign Ver tex Colors utility on a
specific object:
1.
Create a sphere with 24 segments.
2. Ap ply a mapped material to the sphere, and
turn on Show Map In Viewports.
Themappedsphereisdisplayedinthe
viewport.
3. Open the Object Properties dialog for the
sphere,turnonVertexColors,andclickOK.
4. With the sphere selected, open the Assign
Ve r t e x C o l o r s u t i l i t y.
5. Choose Shaded and turn on Use Maps.
6. Click Assign To Selected.
A blurred version of the mapping appears on
thesphere.Theverticesarenowcoloredbased
on the m aterial and the lighting in the scene.
The mapping is blurred because the resolution
ofthemeshat24segmentsismuchlowerthan
the pixel resolution of the map.
7. GototheModifypanelandnotethe
VertexPaint modifier.
8. Move down in the Stack to the creation
parameters, click Yes at the warning prompt,
and increase the Segments to 70.
The new vertices shift the a lready assigned
vertices.
9. Return to the VertexPaint level of the stack,
and click Assign in the Assign Vertex Colors
rollout. HadwereturnedtotheUtilities
panel, we would ha v e added another Vertex
Paint m odifier to the stack; clicking Assign
in the VertexPaint Modifier only updates that
modifier.
Tip: Vertex colors will only show up in a
rendered scene if you assign the Vertex Color
map to the diffuse channel. However, if you
do this, you can’t properly update your vertex
colors with the Assign Vertex Colors utility.
The solution is to assign a Blend material to
your object. Assign the st raight diffuse bitmap
to Material 1, and the Vertex Color map to
Material 2 of the Blend. Switch to 100 percent
of Material 2 when rendering, and 100 percent
of Material 1 when updating the vertex colors.