I'm looking to create a simple line art-style animation using the Toon material. The manual says:
"The Width Scale can be used to control the Edge depending on the distance from the camera" but doesn't actually explain how one would do that.
So how can I make the lines get thinner as they get farther from the camera?
I generally do this sort of thing with the basic Sketch and Toon as I have more options regarding line style, animating strokes, etc, but the models I'm dealing with have a ton of parts and edges and take forever to calculate using S&T.
Thank you.
Shawn Marshall
Thanks for taking the time to reply. I did find that thread before posting this question here, but when I read:
"You can use an aiStateFloat set to Rl. This gives you the distance from the camera to the shading point. Add one with aiAdd and take the reciprocal with aiReciprocal, thus taking the linear distance input and applying the function 1/(x+1)."
my eyes glazed over. Sketch and Toon has a simple checkbox and parameters for decreasing line width; I was hope Arnold's implementation would have a similar, simple interface. I guess not.
Use this node diagram.
Ri -> reciprocal -> range -> add -> width.
You can see the tea pot in the distance has thinner Contour lines since the width is biased from the Z-Depth pass the Ri node produces.
Open GID fullscreen, to read node names, you have the exact same nodes in C4D, so should not cause any problems to follow along.
@Shawn Marshall Here's an R20 C4D file with the nodes set up. You will need to adjust the range output max and the overall line thickness in render settings to suit your scene scale... arnold-toon-line-thickness-scale-with-distancec4d.zip
https://www.youtube.com/watch?v=9tQ9whQPQ_A