Bump with p_MegaTK




Maya bump2d and bump3d

1. For enable bump on p_MegaTK go to 'Normal(Bump)' tab and enable 'Use Input Normal' checkbox.

2. Create bump2d or bump3d node(dependent what texture 2d or 3d you'll use). I'll create bump2d.

2. Create texture, for example 'cloth'. Connect it to your bump node by default (cloth1.outAlpha to bump2d1.bumpValue)

4. Connect bump node to p_MegaTK shader to 'Input Normal' (bump2d1.outNormal to p_MegaTK1.input_normal). Please don't connect texture directly to 'Input Normal'!

5. Render... You'll get bump without filtering.

bump_without_filtering
Bump witout filtering

For enable bump filtering we should convert p_MegaTK shader to maya type using p_maya_shadingengine shader

6. Create p_maya_shadingengine shader and connect it to p_MegaTK1SG (Shading Group) instead of p_MegaTK1

7. Connect p_MegaTK shader to p_maya_shadingengine (p_MegaTK1.outColor to p_maya_shadingengine1.inColor). In other words you should insert p_maya_shadingengine between p_MegaTK1 and p_MegaTK1SG.

bump_network
Bump network Graph

8. Don't render! Enable 'Export with Shading Engine' option on Shading Group. This option inform mental ray that input will be maya's type "RGB, RGB, RGB, RGB", but not "RGBA". After enabling it Maya will apply filtering for this shader.

bump_shading_group_AE
Shading Group


9. Render...

bump_filtering
Bump without filteringBump with filtering

Warning! If you are using p_maya_shadingengine shader or any maya's native shader on miMaterialShader slot you should always enable 'Export with Shading Engine' option, otherwise Maya will crash during render.