Multiple Shaders

BC RiceBC Rice Posts: 591
edited December 1969 in Carrara Discussion

We've been kicking it around in a few different threads. Hoping to get an authority on this.

There is a way to have multiple shaders on a single model, and it sounds like there is also a way to blend those shaders via some sort of alpha function.

My interest is primarily in combining YAToon with Toon Pro in a single hierarchy and blending the two.

Being unable to blend the two in Carrara means an entire global shader as YAToon and an entire global shader as Toon Pro and then uploading each shader individually, doing two complete renders, and then blending them in AE.

While blending in Carrara wouldn't provide the same functionality as does AE's blending options, I think the saved step might be worth it. And if not, I'd at least like to be able to see the results for comparison.

Thanks!

Comments

  • 3DAGE3DAGE Posts: 3,311
    edited December 1969

    HI BC RIce :)

    Can you have multiple shaders on a single object ...
    Yes.
    you just create as many shading domains as you need, and then apply a different shader to each domain.

    BUT,... that's different from non-photorealistic rendering ,.. and this is a grey area for me since I don't use either YaToon or Toon-Pro,
    but if I'm thinking correctly,... these are both Render options or post render filters, rather than Shader options

    So, to combine two different renders you're looking at post production,... even if that done by bringing both renders back into carrara.

    If they are actual shader's and not dependent on the renderer setting, then you could make a mixer , or in C8.5 beta, you could use the new Multilayer shader.

  • BC RiceBC Rice Posts: 591
    edited December 1969

    Hm. Well Toon Pro has a render filter option, but YAToon is listed under "Lighting" and Toon Pro is just listed under the shaders (separate from its rendering option)

    I'm using C7 Pro.

    How do you go about creating a "mixer"?

    Thanks!

  • 3DAGE3DAGE Posts: 3,311
    edited December 1969

    You can find Mixer, under the Operators section in the shader drop-out menu, (see pic)

    The mixer gives you two "Source" channels , and a Blend channel.
    Each of the Sources can be any shader colour , gradient, texture, value, or most other shader functions, including another Mixer operator.
    The Blend channel can also be any colour, gradient, texture, value, procedure, or another mixer.

    There's also a Multichannel mixer. which allows you to create a mixer of two , or more, entire shader tree's. with different colour, alpha, highlight, shininess, bump, etc... see pic 2

    You can find the Multichannel Mixer under "Complex shaders"

    Multimixer.jpg
    730 x 614 - 96K
    C7_mixer.jpg
    719 x 552 - 107K
  • evilproducerevilproducer Posts: 9,050
    edited December 1969

    As 3dage said, the multi-channel mixer at the top level is the way to go. I successfully created a Yet Another Toon shader and a regular multi-channel shader.


    If Toon Pro is a 3rd party shader plugin, then it should work. How well YaToon and Toon Pro play together is anybody's guess. If Toon Pro is a render plugin, then you can't combine the two in a shader.

  • BC RiceBC Rice Posts: 591
    edited December 1969

    As 3dage said, the multi-channel mixer at the top level is the way to go. I successfully created a Yet Another Toon shader and a regular multi-channel shader.


    If Toon Pro is a 3rd party shader plugin, then it should work. How well YaToon and Toon Pro play together is anybody's guess. If Toon Pro is a render plugin, then you can't combine the two in a shader.

    I'll check it out tonight or tomorrow. I'll post a render if I can get it to blend.

    Also Toon Pro is a shader and also has a separate render function (for line art).

  • DartanbeckDartanbeck Posts: 21,628
    edited October 2012

    Before using 'Multi Channel Mixer', I set up the one set of shaders just the way I like it and save it off to the browser.
    Set up the second shader and save it, too.

    Using multi channel mixer, Use one shader set as each source (Edit > Remove Unused Masters > Consolidate Duplicate Shaders to save you from having to blend every single domain)
    For the mixer, just use value 1 - 100 and blend them to your liking! :)

    You can also keyframe changes in the values if you so desire!

    Hope that helps further.

    Post edited by Dartanbeck on
  • BC RiceBC Rice Posts: 591
    edited December 1969

    Alrighty, that did it. Thanks everyone!

    toon_combined.JPG
    1920 x 1080 - 210K
  • BC RiceBC Rice Posts: 591
    edited December 1969

    Yeah, *so* much better gradation now with the tooning function, even in really harsh light.

    TANTRUM_TOON_POSE_CLOSE.png
    1280 x 720 - 154K
  • BC RiceBC Rice Posts: 591
    edited December 1969

    Wider shot

    TANTRUM_TOON_POSE.png
    1280 x 720 - 66K
  • evilproducerevilproducer Posts: 9,050
    edited December 1969

    Those look great! So, did you also use Toon Pro's render functions?

  • BC RiceBC Rice Posts: 591
    edited December 1969

    Those look great! So, did you also use Toon Pro's render functions?

    Nah, I'm not a fan of it on models unless it's like a box or a car or a wall, etc. On characters it looks bad. The line art really likes to be in a constant line, like a continuous bend of a circle or straight line on a box.

    That was why getting YAToon to function with Toon Pro was so crucial. Toon Pro really only provides the flat colors but does not provide *any* of the actual subtle definition. Basically the colors are Highlight and Shadow and that's it.

    But if you tweak YAToon just so, it gives a nice specular line and gradation. Combine the two together and voila! No need for secondary post effects.

    I am, though, going to bring these renders into AE, duplicate and bring in a multiply function to see if that further brings out the subtle lines created by YAToon.

    A great thing about bringing the two together is that YAToon does not look particularly well in animation, but Toon Pro looks fantastic. So having Toon Pro there as a buffer really helps the overdramatic pixelation YAToon likes to create when the character is moving.

    Another issue with Toon Pro's rendering (line) function is the same issue that occurs with the non-photorealistic render function -- It creates a very specific line assortment for eyelashes. Since I draw all of my own eyelashes, they do not in any way mesh with the line art that the rendering functions create.

  • HeadwaxHeadwax Posts: 10,013
    edited December 1969

    hmm I posted a fix for this in the thread where you asked the question you obviously didn't see reply...

  • BC RiceBC Rice Posts: 591
    edited December 1969

    Here's the renders with a background. The way I like to do backgrounds is essentially a toon pro line render with no adjustment to the shaders. I then throw it into PS and pass it through some filters. In a perfect world it would feel like painted (ish) background with cell character. Close enough considering the very low effort needed to achieve the look.

    TANTRUM_TOON_FINAL.jpg
    1280 x 720 - 616K
  • BC RiceBC Rice Posts: 591
    edited December 1969

    I like what you can do by just applying a black solid and clicking the ole Multiply button. :)

    TANTRUM_TOON_FINAL_DARK.jpg
    1280 x 720 - 280K
Sign In or Register to comment.