When a mental ray shader has a parameter of type shader, this requires a mental ray shader connection. There is no type checking when connecting to this type of parameter. It is
assumed that the shader connected to this parameter has the implicit data flow required. None of the Maya shading nodes behave
in this manner.
Example 1
To use an image file as the background for the mia_physicalsky
- Connect a mib_lookup_background to the Background parameter
- Connect a mentalrayTexture to the Texture attribute of the mib_lookup_background node.
- Specify the image file in the ImageName attribute of the mentalrayTexture node.
Example 2
Tip
The mia_material_x shader supports both the Maya bump workflow and the mental ray bump workflow and is recommended over the
mia_material shader.
To add a bump map to the shader
- Create the following nodes: mib_passthrough_bump_map, mib_texture_remap, and mib_bump_basis. You also need to create a texture
vector, and it is recommended that you do so by creating the mib_texture_vector node.
- Connect mib_passthrough_bump_map.message to mia_material.bump.
- Connect mib_texture_vector.outValue to mib_texture_remap.input.
- Connect mib_texture_remap.outValue to mib_passthrough_bump_map.coord.
- Connect mib_bump_basis.u to mib_passthrough_bump_map.u and mib_bump_basis.v to mib_passthrough_bump_map.v.