How to exclude object from Arnold Toon contour?

How to exclude object from Arnold Toon contour?

jatomchuk
Participant Participant
1,104 Views
6 Replies
Message 1 of 7

How to exclude object from Arnold Toon contour?

jatomchuk
Participant
Participant

Hello,

 

This seems like it should be a fairly straightforward thing for me to do, but I've spent the entire day trying various solutions to no avail.

 

Essentially, the Arnold Toon coutour filter is correctly applied to the body of the airplane, but when it interacts with the "spinning prop", which is a plane with an alpha matte, it draws the contour around all the details of the "spinning prop", where the alpha matte excludes information. This results in black outlines, around the prop, where I would like it to be without outlines.

 

Is there a way to tell the toon shaders with the contour to ignore the non-toon-shaded objects?

 

Screen Shot 2023-03-10 at 6.18.25 PM.pngScreen Shot 2023-03-10 at 6.20.30 PM.png

0 Likes
Accepted solutions (1)
1,105 Views
6 Replies
Replies (6)
Message 2 of 7

lee_griggs
Autodesk
Autodesk

Could you put a toon shader with a white edge color on the 'spinning prop'? Maybe with toon.energy_conserving off? If not maybe standard_surface.thin_walled help on the 'spinning prop'? 

 

Can you share just the 'spinning prop' model with the shader? This is an interesting use case for us.

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 3 of 7

jatomchuk
Participant
Participant

The prop has a non-Arnold material applied to it, as I couldn't figure out how to get a clean png texture with no lighting effects applied to it, but I can try today/tomorrow again using those parameters, I'm guessing it would need to be an Arnold material though.

Also, just fyi - the renders are intentionally pixelated with aa/mip mapping turned off. It's for a cartoon that uses a lofi pixelated look.

 

For now here is the project file as requested, many thanks for your help in the matter. Edit: Forgot to include the textures for the prop. They are also now attached.

0 Likes
Message 4 of 7

peter_horvath
Autodesk
Autodesk

Side not on the material: you can convert the Cinema 4D material to an Arnold material from the Arnold > Utilities menu.


// Peter Horvath
// C4DtoA developer
0 Likes
Message 5 of 7

jatomchuk
Participant
Participant

Thanks for the tip. I did manage to get it to convert and look exactly the same. I think at this point, if I can cut out the toon geometry with the alpha matte, I should be able to disable the contour, or try the suggestions you made previously. Problem is, I'm not sure how to cut out the toon geometry, when I connect the output of the opacity node there is no option for under the toon node for cutout opacity. Do you know if there is a workaround for that?Screen Shot 2023-03-13 at 2.32.46 PM.png

0 Likes
Message 6 of 7

lee_griggs
Autodesk
Autodesk
Accepted solution

Here is an attempt using alpha -> bump2d -> toon.normal.

lee_griggs_0-1678807927943.png

 

...and also with it connected to the toon.edge_color.

lee_griggs_1-1678807996167.png

 

Otherwise, render two images: one without the propeller and the other with the propeller with the toon shader [emission, and line_width=0], and blend them.

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 7 of 7

jatomchuk
Participant
Participant

Thank for your help Lee. I'll give that a go. Worst case scenario I just do two separate exports.