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: 

How to exclude object from Arnold Toon contour?

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
jatomchuk
361 Views, 6 Replies

How to exclude object from Arnold Toon contour?

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

6 REPLIES 6
Message 2 of 7
lee_griggs
in reply to: jatomchuk

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
Message 3 of 7
jatomchuk
in reply to: lee_griggs

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.

Message 4 of 7
peter_horvath
in reply to: jatomchuk

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
Message 5 of 7
jatomchuk
in reply to: peter_horvath

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

Message 6 of 7
lee_griggs
in reply to: jatomchuk

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
Message 7 of 7
jatomchuk
in reply to: jatomchuk

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

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

Post to forums  

Autodesk Design & Make Report