Keep up-to-date with Free tutorials!!


Sign up to our twice-monthly newsletter today for the latest tutorials, interviews and product information.

Sign me up to receive third-party emails from 3dtotal's partners, too!

- Latest news
- Exclusive Shop Offers
- Preview early content
- Plus much more


Not Ready to take that step? OK, Why not just Subscribe to the RSS Feed

submit tutorial
1 | 2 | 3 | 4
Brief Consideration About Materials

| Your Rating:
rating star fullrating star fullrating star fullrating star fullrating star full
(Score 4.76 out of 5 after 86 Votes)
Date Added: 30th December 2010

If you keep in mind that all specularity is simply added to the diffuse (as a simple mathematical addition) we start understanding how this part of the render works and we have a little more control over it.

Think about the colors in a shader as numbers that go from 0 to 1 in the RGB scale (yeah, not 0 to 255). So 0-0-0 would be black, 1-1-1 would be white, 0.5-0.5-0.5 a mid gray, 1-0-0 red, 0-1-0 green, 0-0-1 blue, and so on. If you know the values of your diffuse color, and you know the values of your specular color, you just need to add these three numbers individually to see the result of the specular reflection on top of the diffuse color. It will be through the good understanding of how this works that you will be able to represent the true nature of a material (dielectric or conductor).

If you need to create a Conductor material it is simple. You just need to use the same color of the diffuse as the starting point for your specular map. So, if you are making something made of gold, your diffuse and specular will be of some shade of yellow, if it's copper, some sort of brown/orange etc. This way the base color of the object (diffuse) and the highlights (specular) will be of similar hues. Of course you may change the intensity and even vary the hue a bit to achieve the specific look you are trying to get. But you will probably want to stay close to the original diffuse hue range (Fig.14).

Fig. 14

But in the case of a Dielectric material, the light that is reflected as specularity is not affected by the diffuse color of the material. It maintains its neutrality. If the light is white, the reflection will be white, if the light is blue, the reflection will be blue etc. So, in this case, it would be reasonable to assume that the specular map for dielectric materials should have no colors at all, right? It should be grayscale... correct?

Well, not really. In order to get a good non-metallic result (neutral specular color), we need to neutralize the specular reflection using the inverse color of the diffuse (Fig.15).

Fig. 15

Why? Because in RGB, whites and grays contain all colors. Since they have all colors, they will also contain the diffuse color, and once you add this portion of the diffuse color, contained in the grays of the specular, on top of the original diffuse, the result will give the material a metallic aspect. As you can see here (Fig.16).

Fig. 16

If you add a green specular on top of a green diffuse, the specular reflection will be a bright saturated green, which is a very metallic characteristic. If you add a gray specular on top of a green diffuse, the specular highlight will still be tinted green, not as much as before, but still making a metallic, conductor, aspect. But, if you add a specular color that neutralizes the diffuse color, such as this magenta, the end result is neutral, in this case, white. That means that the color of the light will not be affected when reflected as specular highlights, giving you the impression of a dielectric material. Compare Fig.17. See how it completely changes the nature of the materials?

Fig. 17

Alright, so now we know how different types of materials affect light in specific ways. And we also know that, in 3D, the specular highlight is the result of the specular color being added to the diffuse color... But how can one benefit from this?

The great thing about it is that once you understand this you have a solid starting point, instead of just guessing what color you should use. And that saves a lot of time!

So, as a general rule for creating your specular maps the first step is to use your diffuse texture as a guide, and separate the areas that should be metallic looking and the ones that should be dielectrics.

With the dielectric selection, create a Hue and Saturation adjustment layer and simply slide the hue slider all the way to the end. This will shift the hue to the inverse hue value, the one that neutralizes the diffuse color under the specular reflection (Fig.18).

Fig. 18

You will still need to adjust all the other values, such as brightness, contrast, levels, any specific detail you may need. And, of course, you may want to change the hues to achieve a specific aspect that you are looking for, but in terms of first step for the colors, this is a pretty good start.

But what if, besides all this, you could also get a preview of how the specular reflection will look like when rendered, directly in Photoshop, or any other software with layers and blending modes? That can save some time as well.

The cool thing is that, you can!

As mentioned before, in order to see the result of the specular reflection on top of the diffuse reflection you just need to add their values. You can do that in Photoshop using the Linear Dodge blending mode. This mode simply adds the values of the current layer and what's underneath it. So, if you paste your diffuse texture on top of all layers of your specular texture, and set it to Linear Dodge, you will see the color of the final specular render under a white light.

< previous page continued on next page >

1 | 2 | 3 | 4
Related Tutorials

Mudbox 2009: Introduction to Headus UVLayout

by Wayne Robson
published on 2010-12-30

Keywords: headus, uvlayout, texturing,

rating star fullrating star fullrating star fullrating star fullrating star full (1)
Comments 0 Views 10658

CINEMA 4D Training – Mastering Materials: Reflectance

by Tim Clapham
published on 2014-11-13

Keywords: CINEMA 4D, materials, texturing, reflectance,

rating star fullrating star fullrating star fullrating star fullrating star full (4)
Comments 0 Views 25404

Maxwell Interior - Day and night

by Benjamin Brosdau
published on 2009-12-09

Keywords: scene, interior, room, kitchen, lighting,

rating star fullrating star fullrating star fullrating star fullrating star half (2)
Comments 1 Views 43223

Texturing of an Old Building- Image Breakdown

by Richard Tilbury
published on 2009-12-09

Keywords: scene, old, building, texturing, max,

rating star fullrating star fullrating star fullrating star fullrating star full (3)
Comments 0 Views 20367
Readers Comments (Newest on Top)
avatar on Thu, 03 April 2014 12:11pm
img 22 is missing
Nilupul Perera on Sat, 23 November 2013 4:38am
It is very useful. I am 3d loving Neurologist in Sri Lanka. Hope to see more articles from you. Thank you soooooo much.
Samtherocker on Fri, 04 January 2013 6:27pm
Thanks for sharing this helpful information with us...You are the master!!
Issac on Fri, 17 August 2012 3:40pm
Thank you very much. Simple and Super. Very Informative .
Nana Ofosu-Osei on Thu, 26 April 2012 1:12pm
Thank you so much fro this excellent Tutorial. I understand so much more now.
Raja Haroon on Mon, 02 January 2012 6:40am
Great Information, i think you have to make a video Tutorials about that.
Rees on Fri, 25 November 2011 12:51pm
Quite valuable tip I would say, not sure how that gonna translate into the reflection mapping, I don't use specular mapping anymore hehe, will test it & see.
Vitaly on Mon, 16 May 2011 1:50pm
Thank you very much, Pedro! The marvellous info. Waiting for new tutorials!
Meysam on Tue, 14 December 2010 11:19am
so good dude . scientific and easy to understand . thank you .
Wayne on Mon, 06 December 2010 11:52am
Thanks a loooooot!!really useful for me!!
St on Fri, 26 November 2010 7:17pm
Informative! Thanks for sharing.
Ricardo Duarte on Thu, 25 November 2010 6:08pm
Great work!!! Congratulations...from Brasil! (with S!)
Mu¡rcio Siviero on Thu, 25 November 2010 11:20am
Congratulations!!! Very nice!!!
Matifou on Sat, 20 November 2010 9:52pm
Great tutorial! Thank you!
Usman on Fri, 19 November 2010 10:45pm
WOW really I dont have words to thank you for this really really awesome.
Hynol on Fri, 19 November 2010 9:12pm
As I understand, velvet is conductor? ;) Also I don't quite understand why you are using color map for specular highlights in dielectric - it is mistake - using desaturated image is correct method.
Mr.T on Fri, 19 November 2010 3:53pm
Amazing tutorial, thanks for your time.
Munkybutt's Avatar
Thrillhouse900 (Forums) on Fri, 19 November 2010 3:10pm
Unreal tutorial, such valuable information!Thank you!!
Graham on Thu, 18 November 2010 11:32pm
Simple and concise break down of the science of specularity Pedro! I have been studying 3d for a few years now, and I have been struggling to understand how to properly use color in my specular maps. This tutorial has finally cleared up many of the misconceptions I`ve encountered and has given me a more solid understanding of how specular reflections work in reality. I thank you so much!
Tairo on Thu, 18 November 2010 7:05pm
Very cool tutorial, i was at the original lecture in CCAA, it was very interting. one of Brazilians best 3D Artists there is.
Add Your Comment..