Announcement

Collapse
No announcement yet.

V-Ray Multi ID Material // controlled by texture

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

  • V-Ray Multi ID Material // controlled by texture

    Hello guys,
    another issue where I cannot google solution: Can I control Multi ID material by texture?
    I would need to switch between materials based on black and white texture as I would with float or integer.
    It seems to me that it should work like this (see image below) but it does not...
    Attached Files

  • #2
    Hm, it also does not really work with Multi ID texture - when I feed texture with black and white gradient and like 10 materials it somehow gives me a mixture of only two materials...

    Comment


    • #3
      Hi woytha,

      The material ID and texture distribute materials based on IDs, 0, 1, 2...35. With a black and white texture you have only 0 and 1.
      For mixing between materials with grayscale images or attributes you should use the "blend" material node.

      The material and texture id nodes are super handy with attributes and pattern node.

      One way you could make a grayshade texture work with the texture/material id is by using a set range node to rescale you 0-1 texture to 0-X (X being the maximum amount of IDs you need).

      Best,
      David.
      Last edited by david.anastacio; 15-05-2021, 03:16 PM.
      David Anastácio // Accenture Song - VFX
      https://www.accenture.com/us-en/serv...visual-effects

      Comment


      • #4
        Originally posted by david.anastacio View Post
        Hi woytha,

        The material ID and texture distribute materials based on IDs, 0, 1, 2...35. With a black and white texture you have only 0 and 1.
        For mixing between materials with grayscale images or attributes you should use the "blend" material node.

        The material and texture id nodes are super handy with attributes and pattern node.

        One way you could make a grayshade texture work with the texture/material id is by using a set range node to rescale you 0-1 texture to 0-X (X being the maximum amount of IDs you need).

        Best,
        David.
        P-E-R-F-E-C-T! And it is so logical. Thanks!

        Comment


        • #5
          Originally posted by woytha View Post

          P-E-R-F-E-C-T! And it is so logical. Thanks!
          Glad to help
          David Anastácio // Accenture Song - VFX
          https://www.accenture.com/us-en/serv...visual-effects

          Comment

          Working...
          X