Author Topic: Toon shader?  (Read 2364 times)

2023-04-08, 08:02:59

Tom

  • Active Users
  • **
  • Posts: 335
    • View Profile
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,

2023-04-08, 10:14:22
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9280
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-04-09, 03:49:53
Reply #2

Tom

  • Active Users
  • **
  • Posts: 335
    • View Profile
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.

2023-04-18, 08:25:46
Reply #3

Tom

  • Active Users
  • **
  • Posts: 335
    • View Profile
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):


2023-04-18, 12:35:39
Reply #4

dj_buckley

  • Active Users
  • **
  • Posts: 1059
    • View Profile
Great find.  Would still be nice to have a native toon shader.  It's not like Chaos don'talready have one

2023-04-18, 12:55:44
Reply #5

Tom

  • Active Users
  • **
  • Posts: 335
    • View Profile
Totally agree.

2023-04-19, 11:37:47
Reply #6

dj_buckley

  • Active Users
  • **
  • Posts: 1059
    • View Profile
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

2023-04-19, 11:49:34
Reply #7

Tom

  • Active Users
  • **
  • Posts: 335
    • View Profile
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.