Announcement

Collapse
No announcement yet.

VRayMtlWrapper not working for alpha contribution

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

  • VRayMtlWrapper not working for alpha contribution

    I am using VRay GPU 3.6. To make a matte object, I am assigning it a VRayMtlWrapper and assigning the alpha contribution to -1. But when I render, and check the alpha channel, it's opaque.

    Is there a different way to create matte objects using VRay GPU 3.6?

    Thanks,
    -Richard
    Richard Rosenman
    Creative Director
    http://www.hatchstudios.com
    http://www.richardrosenman.com

  • #2
    Can you describe a little more what do you want to achieve and what's not working for you?
    If it was that easy, it would have already been done

    Peter Matanov
    Chaos

    Comment


    • #3
      Originally posted by slizer View Post
      Can you describe a little more what do you want to achieve and what's not working for you?
      Hi Peter;

      If you want to render an object that is matted out by another, in VRay Advanced you would go to Object Settings under the System rollout, select the object, and assign it a matte Object with -1 alpha contribution. You could also do with with the VRayMtlWrapper. Then when you render that object, it renders black in its RGB and alpha channel.

      With VRay GPU, there are no Object Settings in the System Rollout so the only option is to use the VRayMtlWrapper. However, VRay GPU does not respect it. Despite ticking off the Matte Object button and setting the alpha contribution to -1 in the shader, the alpha channel will still render white.

      Rendering matte objects is critical for any production requiring layers so there must be something I'm overlooking as I'm sure there's now way VRay GPU would not have this capability.

      -Richard
      Richard Rosenman
      Creative Director
      http://www.hatchstudios.com
      http://www.richardrosenman.com

      Comment


      • #4
        But it will render white in the alpha only where you have a shadow on the matte?
        If it was that easy, it would have already been done

        Peter Matanov
        Chaos

        Comment


        • #5
          Originally posted by slizer View Post
          But it will render white in the alpha only where you have a shadow on the matte?
          Hi Peter;

          It is strange - as I put together a render example for you, I noticed VRay GPU is in fact matting properly with the VRayMtlWrapper so it must be a scene-specific issue. I was using much simpler models for your example than in my project which involves a massive city model so perhaps the model complexity has something to do with it.

          I am in the process of wrapping up the project but if I have time, I will try to look into it further.

          Regards,
          -Richard
          Richard Rosenman
          Creative Director
          http://www.hatchstudios.com
          http://www.richardrosenman.com

          Comment


          • #6
            There were some problems with setups that include Dome lights, but they were fixed. You can check if that is your issue.
            If it was that easy, it would have already been done

            Peter Matanov
            Chaos

            Comment

            Working...
            X