SourceForge.net Logo

CGRU

CGTALK.RU Logo

Rendering miSSS with p_MegaTK shader




For example we have simple shading network with misss_fast_simple_maya shader and we want use this scattering effect with p_MegaTK.

fast_sss_original_graph
Simple miSSS shading network

fast_sss_original
Render result misss_fast_simple_maya shader

1. Create p_MegaTK shader (or any mental ray shader you want).

2. Connect misss_fast_simple_maya shader to 'Ambient Color' or 'Incandescence' of p_MegaTK.

3. Open Attribute Editor of misss_fast_simple_maya1SG and connect p_MegaTK shader to 'Material Shader' slot instead of misss_fast_lmap_maya shader.

fast_sss_original_ae fast_sss_new_ae
Original misss_fast_simple_maya1SGModified misss_fast_simple_maya1SG

fast_sss_new_graph.jpg
Result graph
4. Adjust amount of Ambient ('Coefficient Ambient' in p_MegaTK) and Render.

fast_sss_megatk.jpg
Render result of p_MegaTK shader with misss_fast_simple_maya

fast_sss_megatk_refl.jpg
Render result of p_MegaTK shader with reflection with misss_fast_simple_maya

5. You may also disable specular and diffuse in misss_fast_simple_maya or p_MegaTK shader to avoid computing it twice.

6. Well done. You may use this method for adding scattering effect to any mental ray shader. If your shader have no 'Ambient Color' or 'Incandescence' you may use mib_color_mix shader(or any layer shader) for adding scattering (use 'Add' or 'Screen' mode).





SourceForge.net Project

CGRU

Раздел на форуме CGTALK.RU