Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

...

Section
Column
width55%

The V-Ray Toon Effect offers a quick and easy provides an efficient way to add cartoonish cartoon-style outlines to the objects in your scene. You can apply the outlines It can be applied globally to all objects or just specific objects. selectively to specific objects for greater control. For optimal results, combine the V-Ray Toon Effect with the V-Ray Toon material.

In this tutorial, you'll learn how to add a use the V-Ray Toon Effect as a global effect as well as how to apply it to specific objects in within the stage network.

To download sample scene files:

UI Button
colorblue
newWindowtrue
icondownload
titleDownload Scene Files
urlhttps://drive.google.com/uc?export=download&id=1Xu09g0n-WfwVwvvrNrR3HZ4KmecWlLpi




Want to follow along but don’t have a license? 

UI Button
colorblue
newWindowtrue
icondownload
titleDownload Free Trial
urlhttps://www.chaos.com/free-trial?utm_campaign=docs-tutorials&utm_medium=website&utm_source=docs.chaos.com

Column
width5%


Column
width40%

Image RemovedImage Added


Workflow

...

width55%

...

Before proceeding with the following step, ensure you have set all the geometry, lights, and cameras in your scene.


UI Steps
sizesmall
UI Step
Section
Column
width55%

Global Toon Effect

To add a V-Ray Toon Effect to all geometry in the scene:

  • Create a Render Settings LOP fromRendering > Render Settings.

  • Go to the V-Ray tab of the LOP and find its Toon subtab. There, enable all the parameters you need to create a toon effect, such as Silhouette Color and Width, Interior Edges Controls, etc.

This applies the toon effect to all geometry in the scene. To apply the effect on specific objects only, proceed to step 2.

Column
width5%


Column
width40%

Image Added




Section
Column
width55%

The result is identical lines to all objects in the scene.

Here, the following parameters are tweaked:

  • Silhouette Color is set to black.

  • Silhouette Width is set to 3.

  • Width Units are kept at their default - Pixels.

  • Interior Edges are also enabled and set to 0.7.

  • The Color of the Interior Edges is black too.
Column
width5%


Column
width40%
Align
aligncenter

Image_comparison_slider
AddButtonsfalse
LabelBeforeNo effect
LabelAfterToon effect
AttachmentImageBeforeSolaris_VRay7_ToonEffect_Off.jpg
AttachmentImageAfterSolaris_VRay7_ToonEffect_On.jpg



UI Step
Section
Column
width55%

Toon Effect on Specific Objects

To modify the Toon Effect for specific objects, you need to:

  • Add a Material Library LOP, or use an existing one if you already have it. Inside it, create a V-Ray Material Builder VOP by right-clicking and selecting V-Ray > Material > V-Ray Material Builder.

The material builder will serve as a material for the geometry in the scene that will have an altered toon effect.

Name the material accordingly, e.g., Toon_

RobotHouse

Trees. In scenarios involving more complex scenes with multiple materials, proper naming significantly facilitates navigation and management.

Column
width5%


Column
width40%

Image Modified




Section
Column
width55%
  • Inside the material builder, two nodes appear automatically - a V-Ray Material (VRayMtl) and a V-Ray Output. Replace the VRayMtl with a V-Ray Toon material from V-Ray > Material > V-Ray Toon Material.
Link the


  • Create a V-Ray
Toon material's BRDF
  • Single material and link its material output to the
Material
  • material input slot of the V-Ray Output node.

  • Then link the BRDF input slot of the V-Ray Single material to the V-Ray Toon material's BRDF output.
    This ensures that the toon material will be the one rendered at the end.

  • Create a V-Ray Toon Effect from V-Ray > Effects > V-Ray Toon Effect. Plug its output slot to the usd_env_toon input slot of the V-Ray Single material.
Column
width5%


Column
width40%

Image Modified




Section
Column
width55%
  • Exit the Material Library LOP and create an Assign Material LOP.

  • Assign the V-Ray Toon material to the geometry. To do this, drag the
RobotHouse
  • Tuck geometry into the Primitives field of the Assign Material parameters, and drag the Toon_
RobotHouse
  • Trees material to the Material Path field of the Assign Material parameters.

Alternatively, use the Select primitives button on the right of each field or directly type the paths.

More information on material assignments is available on the Working with Solaris Materials page.

  • Keep the Toon Effect in the Render Settings LOP enabled. Otherwise, you won't be able to render the effect. 
Column
width5%


Column
width40%

Image Modified




Section
Column
width55%

Here, the following parameters of several objects are tweaked:

  • Silhouette Color of the trees and hills is set to green.

  • Silhouette Width of the hills is 12 pixels, while that of the trees is 6 pixels.

  • Silhouette Color of the dog is set to brown.
Column
width5%


Column
width40%

Image Added



UI Step
Section
Column
width55%

Override Global Toon Effect

You can override the global toon effect for specific objects only. This is an alternative method to set custom toon effect for specific objects.

  • Create a Render Geometry Settings LOP.

  • Go to the V-Ray tab and find its Toon subtab. There, enable all the parameters you need to create a toon effect, such as Line Color, Line Width, Inner Line Controls, etc.

  • Set the objects you want to affect in the Primitives field of the Render Geometry Settings LOP. For example, drag the Dog object into the field. Thus, you can apply the override only to the Dog object in the scene.
Column
width5%


Column
width40%

Image Modified

Final image




Section
Column
width
15%
Column
width70%
Align
aligncenter

Image_comparison_slider
AddButtonsfalse
LabelBeforeNo effect
LabelAfterToon effect
AttachmentImageBeforeHou20_VRay6.2_ToonEffectSolaris_effectOff.jpg
AttachmentImageAfterHou20_VRay6.2_ToonEffectSolaris_effectOn.jpg

15%
55%

Here, the following parameters are tweaked and they affect only the dog geometry:

  • Silhouette Color is set to lighter brown.

  • Silhouette Width is set to 4 pixels.
Column
width5%


Column
width40%

Image Added

Column
width