Keep up-to-date with Free tutorials!!

 

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

 

- 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

By Pedro Toledo
| Your Rating:
rating star fullrating star fullrating star fullrating star fullrating star half
(75 Votes)
| 235435 Views
| 20 Comments
| Comments 20
Date Added: 30th December 2010
Software used:
3ds Max, LightWave, Maya, CINEMA 4D, ZBrush, Misc

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).

1421_tid_image_14.jpg
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).

1421_tid_image_15.jpg
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).

1421_tid_image_16.jpg
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?

1421_tid_image_17.jpg
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).

1421_tid_image_18.jpg
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 next page >
 
1 | 2 | 3 | 4
Related Tutorials

Tutorial

Gallery Image.



Keywords: Animation, Rigging, Transformer, Decepticon, Modeling, Lighting

Go to tutorial
rating star fullrating star fullrating star fullrating star fullrating star full (4)
Comments 0 Views 13045

Tutorial

Gallery Image.



Keywords: Robot, Project, Making of, Lighting , Hard-surfacing, Render, ZBrush, Photoshop

Go to galleries 1
rating star fullrating star fullrating star fullrating star nonerating star none
Comments 2 Views 24018

Tutorial

Gallery Image.



Keywords: reflection, refraction, materials,

Go to galleries 1
rating star fullrating star fullrating star fullrating star fullrating star none
Comments 4 Views 74331

Tutorial

Gallery Image.



Keywords: photon, illumination, materials, mental, ray,

Go to galleries 1
rating star nonerating star nonerating star nonerating star nonerating star none
Comments 0 Views 26983
Readers Comments (Newest on Top)
avatar
(ID: 265767, pid: 0) Cr@chrisrush.net on Thu, 03 April 2014 12:11pm
img 22 is missing
avatar
(ID: 235545, pid: 0) 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.
avatar
(ID: 174790, pid: 0) Samtherocker on Fri, 04 January 2013 6:27pm
Thanks for sharing this helpful information with us...You are the master!!
avatar
(ID: 141718, pid: 0) Issac on Fri, 17 August 2012 3:40pm
Thank you very much. Simple and Super. Very Informative .
avatar
(ID: 111869, pid: 0) Nana Ofosu-Osei on Thu, 26 April 2012 1:12pm
Thank you so much fro this excellent Tutorial. I understand so much more now.
avatar
(ID: 75105, pid: 0) Raja Haroon on Mon, 02 January 2012 6:40am
Great Information, i think you have to make a video Tutorials about that.
avatar
(ID: 65182, pid: 0) 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.
avatar
(ID: 42657, pid: 0) Vitaly on Mon, 16 May 2011 1:50pm
Thank you very much, Pedro! The marvellous info. Waiting for new tutorials!
avatar
(ID: 29720, pid: 0) Meysam on Tue, 14 December 2010 11:19am
so good dude . scientific and easy to understand . thank you .
avatar
(ID: 28791, pid: 0) Wayne on Mon, 06 December 2010 11:52am
Thanks a loooooot!!really useful for me!!
avatar
(ID: 28085, pid: 0) St on Fri, 26 November 2010 7:17pm
Informative! Thanks for sharing.
avatar
(ID: 28012, pid: 0) Ricardo Duarte on Thu, 25 November 2010 6:08pm
Great work!!! Congratulations...from Brasil! (with S!)
avatar
(ID: 27986, pid: 0) Mu¡rcio Siviero on Thu, 25 November 2010 11:20am
Congratulations!!! Very nice!!!
avatar
(ID: 27701, pid: 0) Matifou on Sat, 20 November 2010 9:52pm
Great tutorial! Thank you!
avatar
(ID: 27633, pid: 0) Usman on Fri, 19 November 2010 10:45pm
WOW really I dont have words to thank you for this really really awesome.
avatar
(ID: 27632, pid: 0) 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.
avatar
(ID: 27624, pid: 0) Mr.T on Fri, 19 November 2010 3:53pm
Amazing tutorial, thanks for your time.
Munkybutt's Avatar
(ID: 27622, pid: 823008) Thrillhouse900 (Forums) on Fri, 19 November 2010 3:10pm
Unreal tutorial, such valuable information!Thank you!!
avatar
(ID: 27591, pid: 0) 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!
avatar
(ID: 27586, pid: 0) 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