Announcement

Collapse
No announcement yet.

Multiple Material IDs

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

  • Multiple Material IDs

    Hi all,
    I was wondering if there is a way in VRay for Maya to plug multiple Material IDs in one shader.
    I need to output multiple mask textures for comp that are different for each shader. The materialID is the ideal solution if it wasn't for the fact that each shader can have only one material ID.

    thanks

  • #2
    Can you use the extra tex render element and throw your mattes into that?

    Comment


    • #3
      Not sure if this is exactly what you want but you can plug the outcolor of a surface shader,which uses your matte texture, into the vrayColorId of each material's shading group. That way you can just have a surface shader for every matte texture that you need and they will all show up in the material ID pass.

      Comment


      • #4
        Thanks guys

        @Metzger

        I can't use a extraTex because that would accept one single texture that will be applied to all objects in my scene. I have different textures for different objects I want to output as render elements without building an extra layer. I am looking for a nice tidy setup, my scene is really big and I have tons of shaders.

        @Evox_Productions

        What you describe is exactly what I am doing, it works fine and in fact it is what I am looking for, except there is a limitation of one materialID per shader. I will have to connect like 3 to 5 matte maps to each shader because comp is requiring me to do that. Like I said before, I could create new render layers but I would like to avoid it to avoid making changes many times in the same scene.

        Any other idea?

        thanks

        Comment


        • #5
          You might have the same texture over every object, but you can always multiply an object ID matte over the extra tex pass with your matte.

          Comment


          • #6
            I get what you say now. Yes, that way it would work, except I have like about 300 shaders so 300 maps to output on 300 different extraTex render elements that will have to be "filtered" through the objectID. I could try but it's not really neat.
            But as far as I can see there is not other way. It's a shame because the materialID is perfect if it only could be added multiple time for each shader.

            Comment


            • #7
              I wonder if you could connect multiple shading groups to one object and then use multiple materialID passes. Then change the material ID number for each shading group.
              Last edited by Evox_Productions; 16-05-2011, 04:37 PM.

              Comment


              • #8
                Originally posted by pxm-vray View Post
                I was wondering if there is a way in VRay for Maya to plug multiple Material IDs in one shader.
                I need to output multiple mask textures for comp that are different for each shader. The materialID is the ideal solution if it wasn't for the fact that each shader can have only one material ID.
                Do you mean the integer IDs, or the color IDs?

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

                Comment


                • #9
                  Originally posted by vlado View Post
                  Do you mean the integer IDs, or the color IDs?

                  Best regards,
                  Vlado
                  I mean color ID, a custom texture that to be plugged to an output that is different for each shader. Exactly what happens when you plug a texture to the MaterialId in the shader, but I need more than one only.

                  Comment


                  • #10
                    This is essentially the same question I've just posted. Would love to get an answer to this, even if it's just to have it confirmed it's not possible.

                    Comment

                    Working...
                    X