Community
Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Toon Shader Edge detection on self shadows/ tonemap borders?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
f.ribbeck
435 Views, 2 Replies

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!

Tags (3)
Labels (3)
2 REPLIES 2
Message 2 of 3
ramon.montoya
in reply to: f.ribbeck

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.


Message 3 of 3
f.ribbeck
in reply to: f.ribbeck

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report