You are here: Shading and Lighting > Shader Tree Item Layers > Processing > Weight Map Texture

Weight Map Texture

Weight Map Image

The Weight Map texture allows you to assign certain Vertex Maps for use in the Shader Tree. Specifically, vertex RGBA color maps and vertex Weight Maps. Vertex maps, when used in this way, can provide interesting options for shading a model as they are resolution-independent and can provide a variety of effects with much less system overhead than similar bit-mapped textures. Additionally, the information is embedded into the model and requires no additional external files, making them highly portable.

Usage

Vertex color maps need to be created for the target geometry first, which embeds the information into the vertices. Maps are first generated for a Mesh Item in the Vertex Map List viewport; when selected, the resulting Vertex Map can be painted using the Modo's vertex painting brushes. Vertex color maps can also be generated automatically based on the scene's current surfacing and lighting with the Vertex Illumination Baking command.

Once the map is created, you can add the Weight Map texture layer to the Shader Tree by clicking Add Layer > Processing > Vertex Weight Map. For information regarding adding and working with Shader Tree item layers, see Shader Tree. In the resulting Weight Map texture layer, you can then select the appropriate RGBA vertex color map from the Vertex Map list menu. You can obtain the best results by using a layer effect that requires color information. When using a RGBA vertex color map, the Value, Color and Alpha options have no effect on the map.

For vertex Weight Maps, these need to be created as well; this can be done using the vertex painting brushes, but the brushes assign weight values instead of colors. You can also automatically create vertex Weight Maps with the Vertex Curvature Baking command, which may be used to produce some interesting effects.

Once the map is created, you can add the Weight Map texture layer to the Shader Tree using the Add Layer control. In the resulting Weight Map texture layer, you can then select the appropriate vertex Weight Map from the Vertex Map list menu. Depending on the type of effect chosen, you can then adjust the Value, Color and Alpha options to produce the desired look. Additionally, the Bias and Gain options control the attenuation between the Weight Map values in the map. When using a layer effect that requires color values (such as Diffuse Color), you can assign colors to Color 1 and Color 2 where Color 1 map to the 0 value areas of the Weight Map, and Color 2 maps to the 1 value areas of the Weight Map. Where the effect type require grayscale input (such as with a layer or group mask), you can adjust the Value 1 and Value 2 inputs, where Value 1 maps to the 0 value areas of the Weight Map, and Value 2 maps to the 1 value areas of the Weight Map. When the Weight Map texture item is selected, the attributes are visible in the Properties panel.

Weight Texture Panel

Option

Description

Layer

Enable

Toggles the effect of the layer on and off to duplicate the functionality of toggling visibility in the Shader Tree. When disabled, the layer has no effect on the shading of the scene. However, Modo saves disabled layers with the scene, and they are persistent across Modo sessions.

Invert

Inverts the weight values for the layer producing a negative effect.

Blend Mode

Affects the blending between different layers of the same effect type. With this, you can stack several layers for different effects.

For more about blending, see the Layer Blend Modes topic.

Opacity

Changes the transparency of the current layer. Reducing this value increasingly reveals lower layers in the Shader Tree, if present, or dims the effect of the layer, itself, on the surface.

Weight Map Texture

Color 1

Determines the color of the texture for weight values of 0, ramping toward Color 2 based on the Weight Map itself. This setting only applies to surfaces that require a color value. The Alpha value determines the level of transparency for the Color 1 zone.

Value 1

Determines the value of the texture for weight values of 0, ramping toward Value 2 based on the Weight Map itself. This control is only active when the texture layer's Effect is set to a non-color attribute.

Color 2

Determines the color of the texture for weight values of 1. This setting only applies to surfaces that require a color value. The Alpha value determines the level of transparency for the Color 2 zone.

Value 2

Determines the value of the texture for weight values of 1. This control is only active when the texture layer's Effect is set to a non-color attribute.

Vertex Map

Specifies an existing Weight Map or vertex color map.

Bias

The bias control causes the texture to favor either the primary or secondary value or color. By increasing the bias, more of the Color/Value 1 appears, while decreasing the number forces more of the Color/Value 2 into the gradient blend.

Gain

This setting is similar to a contrast control that effects the falloff of the gradient ramp between the Color/Value 1 and Color/Value 2. Setting the Gain to 100% creates a very sharp contrast, whereas setting the value to 0% reduces the contrast between the two to almost imperceptible amounts.