3D Displacement Shader (mental ray)
 
 
 
Command entry: Material Editor Material/Map Browser Maps mental ray 3D Displacement
Notemental ray shaders appear in the Browser only if the currently active renderer supports them.

The 3D Displacement shader displaces the geometry of surfaces. The effect is similar to the Displacement map component of a standard material. You can apply mental ray displacement to any kind of object, unlike the standard Displacement map, which is restricted to surface models (meshes, patches, polys, and NURBS surfaces).

Displaced surfaces are smooth if the displaced polygons share normals; otherwise, the displaced surfaces are faceted. Also, unless normals are shared, faces can become separated in the displaced mesh. To prevent this, make sure adjacent surfaces belong to the same shading group.

When the mental ray renderer is the active renderer, mental ray displacement is the only displacement method used, unless your scene includes a Displace modifier, which always uses standard 3ds Max displacement.

TipBefore you render, you can disable or enable displacement by using the Displacement toggle in the Options group on the Common Parameters rollout.

Global settings for the mental ray displacement method are in the Displacement group on the Render Setup dialog Renderer panel Shadows And Displacement rollout.

Interface

3D Displacement Parameters rollout

NoteThe button to the right of the Factor and Direction Strength controls is a shortcut shader button. Clicking one of these buttons displays the Material/Map Browser so you can assign a shader to this component. When a map or a shader has been assigned to a component, this button displays the letter “M,” and the comparable button on the Shaders rollout displays the map or shader name.
Object Independent

When on, the displacement effect is independent of the size of the object's bounding box. When off, the displacement effect is scaled according to the size of the object. Default=on.

Scaling the displacement based on object size is the default behavior for the standard 3ds Max Displacement map.

Displacement Length

This is the length of displacement when Object Independent is on, the extrusion map is at 100 per cent (white) and the Extrusion Strength equals 1.0. Lower gray levels in the extrusion map, or other values of Extrusion Strength, scale the amount of displacement. When Object Independent is off, this value is disregarded. Default=1.0.

Extrusion Strength

Controls the height of the displacement. This value is a multiplier: At the default value of 1.0, the map's effect is unchanged. Greater values increase the effect of the map, and lower values decrease it. Default=1.0.

Extrusion Map

Click to display the Material/Map Browser and choose a map to use for the displacement. Displacement maps apply the gray scale of the map to generate the displacement. Lighter colors in the 2D image push outward more strongly than darker colors, resulting in a 3D displacement of the geometry.

Direction Strength

Controls the strength of the direction shader. Default=0.0.

ImportantAdding a direction shader has no visible effect unless you set Direction Strength to be greater than its default value of zero. (Direction Strength values less than zero have no effect.)
Direction Map

Click to display the Material/Map Browser and choose a shader to use for the map direction. The direction of the displacement is perturbed according to the RGB values of the shader output or map pixels. Red values offset in the U axis, Green values offset in V, and Blue values offset in W (using the object-local UVW coordinates).

Maps rollout

The controls on this rollout let you assign a map or shader to the Factor or Direction Strength parameters. Click the button for a component to display the Material/Map Browser and assign the map or shader. Use the toggle at the left to turn the effect of the map off or on.

The button to the right of each main shader button is for shaders that can return multiple parameters. If a shader that returns multiple parameters is assigned to the component, the button's tooltip shows the parameter name.

See Also