Setting Up Sub Surface Scatter (SSS)This tutorial covers how to set up a basic SSS Mental Ray shader. Set-up
Download and open example.mb.
For more on using the hypershade, read this tutorial. Link Sub Surface Scatter (SSS)Sub surface scatter allows light to pass through a shader. Example: A lamp shade. Sub surface scatter is commonly used when rendering cloth, human skin, and anything else that needs to be soft and thin and light can pass through it.
Sub surface scatter can only be used in Mental Ray, but there are some ways of faking sub surface scatter (not covered in this tutorial). Sub surface scatter need firsts a Mental Ray SSS shader, second a light map shader, and last a Mental Ray file to store the data in. Creating The ShaderStep one - In the hypershade, go to create>Mental Ray materials>misss_fast_shader.
Step two - Select it in the hypershade and open the attributes editor (window>attributes editor).
Step three - First we're going to set-up our Mental Ray texture to save the SSS information. Roll down to data storage and go to lightmap. Click on the checkerboard and Maya will create a new Mental Ray texture and connect it to the lightmap attribute of the shader.
Step four - First check "writable". Now we need to set the resolution of the file that it will write. This is supposed to be twice the size of your final rendered resolution. Example: You're rendering your scene at a resolution of 640x480, so your file resolution should be 1280x960. Set your file size depth to 32 bits. This has to be set to 32 bits or the entire effect won't work.
Setting Up The Light Map Shader
The lightmap shader needs to be connected to the shading group, so its a good idea to "graph network" the shading group before proceeding.
Step two - With the shading group selected, look at its attributes in the attributes editor. Click on the Mental Ray tag and go to custom shaders.
Step three - In the light map shading slot, we're going to connect a misss_fast_lmap_maya shader. Click on the checkerboard to open the create render nodes window. Go down to light maps and select misss_fast_Imap_maya.
Step four - Select the new shader in the hypershade and open the attributes editor.
Step five - Go to the tag lightmap write. The lightmap field is where we're going to connect our light map texture. To do this, middle mouse button drag the Mental Ray texture into the attributes editor and drop it onto the field.
Assigning The Shader To The Model
Now that the shader's created, let's assign it to the model. Tweaking The ShaderRe-select the shader and open the attributes editor.
Let's go to algorithm control.
Step one - First we need to get rid of all that noise in the rendering. Go to samples and increase the samples to something like 1000. Final NotesFor SSS to work, the surface needs to have thickness (geometry on the front and back on a model).
The front and back on an SSS shader are defined by the camera angle. ConclusionI hope this tutorial's taught you the basics of setting up SSS in Maya. Good luck. |
|
















