Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Dismayed at the complexity of some of the toon shaders out there, I set out to create one that I (a novice) could understand... No mel scripts and clamp free.. +plus+ quick to render.. and no confusing instalation.
Step 1: Drag the file toon_shader.ma into the hypershade
Step 2: Select the surface you want to apply the toon shader to..
Step 3: Right click the new material in hypershade named 'Apply_Cartoon_sdr' and select 'Apply Material to Selection'
To customize the shader.. Still in hypershade.. Right click the material 'Apply_Cartoon_sdr' and select 'Graph Network'
Listed here are the nodes you will want to change...
Click on the node you want to edit (listed here) and change the 'selected color' field in the atribute editor.
**Node names and their functions.. (bottom of material hierarchy)**
toon_shader_surface_colour - Sets the over all colour of the toon shader
toon_shader_trans - sets the transparency (line and surface)
toon_shader_line_coluor - sets the outline colour