Announcement

Collapse
No announcement yet.

VrayBlendMtl Multimatte and Reflections

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

  • VrayBlendMtl Multimatte and Reflections

    I thought I'd share some testing I've been doing trying to get Multimatte layers from materials within a VrayBlendMtl and getting them to also show up in reflections. Here's the setup. A box with a VrayBlendMtl comprised of two materials seperated by a black and white map, and a mirror.

    Click image for larger version

Name:	BlendMaskTest1.jpg
Views:	1
Size:	39.2 KB
ID:	874264

    Using the AutoMultiMatte07 script from Sergey Pogosyan http://www.sergepogosyan.com/scripts/AutoMultiMatte/ I created a MultiMatte Render Element and together with PSD Manager 3.1 rendered the scene. The following is the result in Photoshop with one of the masks turned on. In order to get the mask to show up in the Mirror I had to select "All Channels" in the Affect Channels drop down box in the Reflection section of the Mirror material.

    Click image for larger version

Name:	BlendMaskTest2.jpg
Views:	1
Size:	67.8 KB
ID:	874265


    In order to get good antialiasing I had to select NONE in the Filtering section of the VrayBlendMtl, Blend Amount Map.

    Click image for larger version

Name:	BlendMaskTest4.jpg
Views:	1
Size:	31.2 KB
ID:	874266

    All seemed to work well until I added another Coat Material and Blend Map in my VrayBlendMtl.

    Click image for larger version

Name:	BlendMaskTest5.jpg
Views:	1
Size:	46.4 KB
ID:	874267

    A closeup shows how the edge of the mask has problems that I was never able to resolve. However, in my limited testing this kind of edge noise happened more often when i used round or oval shapes as the Blend Amount Map and was less of a problem when using rectangular shapes.

    Click image for larger version

Name:	BlendMaskTest6.jpg
Views:	1
Size:	33.7 KB
ID:	874268

    If I can solve the noisy matte issue this will be a technique I would use on every project.

    Craig
    Last edited by 3ddesign; 15-05-2012, 03:41 PM.

  • #2
    I'm continuing to experiment with Multimatte Elements from VrayBlendMtls trying to eliminate the jagged edges and stray pixels. So far no luck. Does anyone have a clue what's going on?

    Click image for larger version

Name:	Multimatte.jpg
Views:	1
Size:	85.8 KB
ID:	845371

    Comment


    • #3
      Maybe share the scene, so someone can have a quick look at it.

      Daniel
      Daniel Schmidt - Developer of psd-manager

      Comment


      • #4
        OK, solved the jaggies and stray pixels: I was using a jpeg as my blend map. Using a tiff eliminated them.

        The attached shows a Photoshop screenshot closeup of the render. The material is a VrayBlendMtl with four sub materials deliniated with black and white maps. Another closeup shows the Photoshop screen with two PSD Manager layers turned on (black), one layer with a levels adjustment masked with the PSD Manager selection layer (White) and the Yellow text turned lavender again with an adjustment layer created from a PSD Manager selection layer.

        As you can see in the second image there are some halo issues but for my purposes this is OK.

        Click image for larger version

Name:	Blend Layer Render.jpg
Views:	1
Size:	455.8 KB
ID:	845373Click image for larger version

Name:	Blend Layer Adjustments.jpg
Views:	1
Size:	312.0 KB
ID:	845372

        I'm excited that I can get the mattes to show up in a mirror but my next task is to see if I can get them to show behind glass, something I haven't been able to get to work yet.

        Click image for larger version

Name:	MultiMatteElementTest 02.jpg
Views:	1
Size:	361.3 KB
ID:	845374

        EDIT: Dan, I'm going to play around with getting mattes behind glass to show up. If I can't get it to work I'll share the scene. Also, got to say, now that I've gotten this to work PSD Manager is going to save me a TON of time.
        Last edited by 3ddesign; 16-05-2012, 09:22 AM.

        Comment


        • #5
          Hot dog! Mattes behind glass works. The script by Sergey Pogosyan was the difference. I was just setting up the MultiMatte Element wrong. The mask even picks up the refraction from the glass (arrow). This is cool.

          Click image for larger version

Name:	MatteBehindGlass.jpg
Views:	1
Size:	385.5 KB
ID:	845375

          Comment


          • #6
            This would be really helpful. Unfortunately, Sergey's script only works with Vray 2.0.

            Comment


            • #7
              Originally posted by 3ddesign View Post
              Hot dog! Mattes behind glass works. The script by Sergey Pogosyan was the difference. I was just setting up the MultiMatte Element wrong. The mask even picks up the refraction from the glass (arrow). This is cool.
              What was your mistake in MultiMatte?

              Daniel
              Daniel Schmidt - Developer of psd-manager

              Comment


              • #8
                I'm not sure since I didn't save progress files, but I think it was that I didn't check isMATID (and don't even know what it does).

                Comment


                • #9
                  Originally posted by 3ddesign View Post
                  I'm not sure since I didn't save progress files, but I think it was that I didn't check isMATID (and don't even know what it does).
                  It causes the MultiMatte element to work with material IDs, rather than object IDs.

                  Best regards,
                  Vlado
                  I only act like I know everything, Rogers.

                  Comment

                  Working...
                  X