Announcement

Collapse
No announcement yet.

Split RGB channels in shader?

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

  • Split RGB channels in shader?

    Is there any way to split a bitmap by RGB channels via shader in vray? Similar to how in unreal engine you can split the channels of a bitmap. Or if there's any OSL around that can do this?

  • #2
    You can do this using the color correction node and setting each channel color to the same channel you want to isolate. You can also do this with the RGB Tint node setting the channel you want to isolate's color to white and the other two channels to black.

    Tim
    www.seraph3d.com
    Senior Generalist
    Industrial Light & Magic

    Environment Creation Tutorial
    Environment Lighting Tutorial

    Comment


    • #3
      Or an output node in which you turn down the curves of the unwanted channels.
      German guy, sorry for my English.

      Comment


      • #4
        Those 3 techniques work so far, RGB Tint seems to be the most straightforward!

        This question comes from my texture artist, he's asking if it's possible to have a "clown" map / hue shift from substance painter, and for each different color, assign different shader properties to it. For example, 6 different colors in that map (for 6 different shaders), and the possibility to "key" each color via a 2d node, so it can be connected to a master vrayblend material to split the several shaders.

        Comment

        Working...
        X