Quick Base Material Setup in Blender 2.80

Jump to:

INTRODUCTION


In the video included to this short tutorial I wanted to share my technique for creating base glossy shaders, based on a single texture map only. The trick with separating Red, Green and Blue channels for different shading effects is as old as the modern gaming industry, however I have a feeling that not many 3D artists actually use it in their daily work.

I hope you'll find it useful in your daily work!

What are Red, Green, Blue Channels?

Red, Green and Blue are base, additive colors, meaning that by mixing them all together we can achieve any other color without the visible spectrum. This effect can be even simulated in Blender by creating three Spot Lamps, each casting 100% Red, 100% Green and 100% Blue light beams:

Back in the days the computer monitors (and TV's) were black and white. That doesn't mean they displayed two, 100% black and 100% white colors only - there were multiple shades of gray in use in order to make the image more realistic. Without getting into technical details, a black and white spectrum in most of the modern computer monitors consist of 255 tones, where "tone 0" is 100% black, "tone 255" is 100% white, "tone 128" is 50% black and 50% white (otherwise called 100% grey) and all of the remaining tones are different types of "greys". That's how the black and white spectrum works.

To add color to the image, the same 255 tone spectrum has been sepparately applied to Red, Green and Blue colors, in order to define their mix ratio. For example: "tone 0" for Red, "tone 0" for Green and "tone 255" for Blue will result in 100% Blue color. "Tone 255" for Red, "tone 255" for Green and "tone 255" for Blue will result in 100% White color etc. We call it a Color Channel Mixing and by applying 0 to 255 value to each Red, Green and Blue channels, we're able to reproduce over 16.5 million colors.

1 Red color channel is disabled in this picture.

2 Green color channel is disabled in this picture.

3 Blue color channel is disabled in this picture.

4 All color channels are enabled.

When you look at the colored image, in fact it's always a mix of three, different black and white images. Each one of them is associated with a separate color channel, defining what value between 0 to 255 of that particular color, is applied to a single pixel of the picture. If that sounds confusing, take a look at the slideshow below, where a diffuse texture is separted into a different color channels and then combined together but in a different order:

1 Image texture with all color channels visible.

2 Image texture with Red color channel disabled. The main color we see is Green, with a bit of Blue tint.

3 Image texture with Green color channel disabled. Here the Blue tint is barely visible, meaning the main color channels responsible for the image look are Red and Green.

4 Image texture with Blue color channel disabled. The result is very similar to the base image. That tells us the Blue color has the lowest values in 0 to 255 spectrum, meaning its black and white representation would rather be dark than bright.

5 Black and white representation of Red color channel. It's very bright, meaning the Red color is dominant in the image.

6 Black and white representation of Green color channel. It's bit darker than Red and brings more contrast into the image.

7 Black and white representation of Blue color channel. It's the darkest from the three, meaning it has the weakest influence on the image color.

Red, Green, Blue Channels as Shader properties

Since shader settings as Specular, Rougness or Bump are controled by numerical values (from 0 to 1) that means we can also define them by black and white color values (where 100% black = 0 and 100% white = 1). So, based on the image texture in the previous slideshow, Blue color channel should give us the sharpest reflections (dark tones = values closer to 0 = less roughness = sharper reflections) whereas Red color channel should be more suitable as specular input if we want our shader to be reflective (brighter tones = values closer to 1 = more specular = more reflections).

Try out the shaders yourself!

Feel free checking some of our free shaders linked below: