Announcement

Collapse
No announcement yet.

Shave shadow catcher ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Shave shadow catcher ?

    Hello everyone,

    I have an issue with rendering a matte shadow pass on shave nodes.

    I tried to put the shave nodes in a vray object properties etc...

    It doesnt work, as expected.

    So atm I am trying to assign a VRayMtlWrapper to the shave nodes with python post translate

    if I understand well, at rendertime, shave curves are translated to geometry to render in vray ?

    Here is my current code:

    wrap=create("MtlWrapper", "wrap")

    wrap.set("alpha_contribution", -1 )
    wrap.set("matte_surface", 1 )
    wrap.set("shadows", 1 )
    wrap.set("affect_alpha", 1 )
    wrap.set("shadow_tint_color", Color(1, 1, 1) )
    wrap.set("shadow_brightness", 1 )

    sh=findByName("pSolidShape6@node")
    sh[0].set("material", wrap)

    Am I missing something ? i suppose I do.

    Cheers,

    Raphael

  • #2
    You can already do that with regular means in maya. All you need to do is assign the vray wrapper to the shaveDisplay node, and turn off "override geom Shader" in the shave node. This should instead render the assigned material on the hair. Be careful though, you cannot assign the same material to two different shaveDisplay nodes, its some kind of limitation, but you can assign a unique material per shaveDisplay node.
    Dmitry Vinnik
    Silhouette Images Inc.
    ShowReel:
    https://www.youtube.com/watch?v=qxSJlvSwAhA
    https://www.linkedin.com/in/dmitry-v...-identity-name

    Comment


    • #3
      Ok yes it works, thank you for that.

      But I am still curious about how to do this kind of thing with post python translate ?

      Can I also change the "cast shadow" option of a shave node after the geometry is created ?

      Thanks

      Comment


      • #4
        You must set the "base_material" of the wrapper (must point to the original material)
        V-Ray/PhoenixFD for Maya developer

        Comment

        Working...
        X