question

Fynn Ribbeck avatar image
Fynn Ribbeck asked ·

Toon Shader Edge detection on self shadows/ tonemap borders?

Hello,


I am using the Arnold toon shader and by using a shadowmatte node plugged into the edge detection mask channel I was able to achieve outlined shadows. However this does not seem to work for any self shadows (which are basically not really shadows, but are driven by the tonemap on the toon shader).

Does anybody have an idea how to map the tonemap on the object back to the edge detection mask or something like that? So far I haven't been able to get an outline on the range borders of the tonemap. Every color should be seperated by an edge simply speaking.

I appreciate any ideas!

c4dtoatoonramp
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Ramon Montoya Vozmediano avatar image
Ramon Montoya Vozmediano answered ·

Hi Fynn,


One thing you can try to explore and define regions based on light incidence is described here https://docs.arnoldrenderer.com/display/A5AFMUG/Toon+Shading+with+the+Facing+Ratio+shader


So you can use facing_ratio to generate colored regions that can then be passed on to the toon shader mask. You will have to explore a bit if it's possible to make those regions match well with toon shader's own region setup.


To guarantee a match, you could try to use two toon shaders with duplicated settings, one to generate the mask and the other to generate the edges, but I am not sure if that will work well.


Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Fynn Ribbeck avatar image
Fynn Ribbeck answered ·

Hey Ramon, thank you very much for your input! This was exactly what I was looking for, great

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.