Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Tom on 2023-04-08, 08:02:59

Title: Toon shader?
Post by: Tom on 2023-04-08, 08:02:59
Hi everyone,

I'd like to render an architectural scene with a simple plain grey material + a toon effect, just like the toon effect I used in VRay which was located in the Envrionment and Effects dialog box if I'm not wrong.

Of course I can use a CoronaWire map in the diffuse map but it highlights all the edges and I want the effect to be visible only on the outline of the objects.

How can I reproduce such an effect with Corona?

Thank you in advance for your help,
Title: Re: Toon shader?
Post by: romullus on 2023-04-08, 10:14:22
Corona does not have toon shader (yet?). You can use Corona AO or curvature and try to achieve the effect that you want, or if your scene has only few objects, you can use a trick with duplicated geometry and inverted normals, like described here: https://forum.corona-renderer.com/index.php?topic=9728.msg66682#msg66682
Title: Re: Toon shader?
Post by: Tom on 2023-04-09, 03:49:53
Thanks @romullus, I will have a look at these workflows.

The thing is: it's an architectural scene with buildings very far away from each other, but to my understanding, these workflows, either using AO or curvature maps, only allow for a fixed amount of ink width as the value is expressed in real world units, not pixels as it's the case with VRayToon shader.

So in my case I may have to map the distance slot as well, to make the ink width varying according to the building distance.

But thanks again, it should be fine.
Title: Re: Toon shader?
Post by: Tom on 2023-04-18, 08:25:46
Hey,

I found such a nice way to do what I'm looking for thanks to this video: this guy uses CoronaRoundEdges map and it works so well. It gives much cleaner results than using curvature or AO maps.

Look at this video (really starts at 07:00 roughly):

Title: Re: Toon shader?
Post by: dj_buckley on 2023-04-18, 12:35:39
Great find.  Would still be nice to have a native toon shader.  It's not like Chaos don'talready have one
Title: Re: Toon shader?
Post by: Tom on 2023-04-18, 12:55:44
Totally agree.
Title: Re: Toon shader?
Post by: dj_buckley on 2023-04-19, 11:37:47
Spoke too soon, that method in the video doesn't work on curved objects because there's nothing for the RoundEdges to work on i guess
Title: Re: Toon shader?
Post by: Tom on 2023-04-19, 11:49:34
I didn't realize this as I don't have any curved objects in my scene but, yes you're right.
The image above (YouTube miniature) clearly shows it doesn't work: look at the chair.