# Normal mapping and displacement in material nodes... how they differ ?

As i understand it , normal mapping has to be done with a normal texture ( those purplelish ones ) set to non color data and also using a normal map node…

then there is the displacement input on the material output…

how is this properly used ? doe it also needs a normal texture? black and white? how is the result different that normal mapping because to me it doesnt move or displace geometry but just seems to play with shadows to create the effect of more geometry…

how to use both in combination to best effect…

thanks!

I am by far not an expert at this, for I sometimes wonder myself. I do know that a normal map does not displace geometry or even appear to displace it. That, I believe, is what a voxel map does. A normal map is like a bump map in the fact that it makes the illusion of depth. It is different from a bump map because it also gives information to the light and shadow rays to make it look like shadows and highlights are falling into that depth. Perfect example is place a bump map on a plane and look at it at a low angle. It will look smooth even though you can see that illusion of depth. Now place the normal map on that same plane and it won’t look smooth anymore, but like you have geometry for all that depth in there.

Now, from what I’ve read and understood (which is probably wrong), is that the displacement socket can only give you bump map results and the normal sockets can give you either depending on the image you plug into it.

For your other question, a bump map is usually a black and white image with white being highest points (value of 1) and black being the lowest (value of 0). That being said, a bump (displacement socket) can use any image to create that illusion. All it does is take the color values and use that for depth.

Hope this helped a little. Sorry for the kindergarten explanation, but I’m not as learned on the subject as I should be. One who knows this very well is Sebastian Konig if you can get ahold of him.

normal goes to the normal input

dont’ sent i to the displace input on mat node!

normal map are color coded
bump map are greyish map

now for bump map you can use the dispalce input on output mat node
or only use the bump map node!

hope it helps

I had exactly the same doubts today, so I made this little comparision. Test setup is pretty straightforward, Blender 2.69, Cycles, scene with one plane and sun as source of light. Texture which I used is some rocks picture from google images. Normal map, specular/glossy and ambient occlusion were generated by “Insane” plugin for Gimp.

Results are interesting and it looks to me like Andrew was wrong in his “The Secrets of Realistic Texturing in Blender” tutorial.

1. material without normal map
http://i.imgur.com/bmiPTzVh.jpg

2. normal map connected to displacement input in material output (not very good effect)
http://i.imgur.com/279Blsbh.jpg

3. normal map connected to normal input in diffuse (little better)
http://i.imgur.com/rTFV3orh.jpg

4. normal map connected to normal input in diffuse and glossy (imho right way to do)
http://i.imgur.com/reAo1aAh.jpg

5. after connecting normal map to diffuse and glossy, connecting to displacement makes no difference at all
http://i.imgur.com/gSeSlEMh.jpg

6. what will happen if normal map is not treated as non-color data
http://i.imgur.com/zqnAbbFh.jpg

7. normal map treated as color data connected to displacement (like in 2, little different but not good)
http://i.imgur.com/VoPGZyDh.jpg

8. nodes like in 4, but glossy treated as non-color data
http://i.imgur.com/ICyh0Jwh.jpg

9. nodes like in 4, but ambient occlusion treated as non-color data
http://i.imgur.com/jQULfTzh.jpg

10. nodes like in 4, but both glossy and ambient occlusion treated as non-color data
http://i.imgur.com/9RAjnezh.jpg

Here’s link to textures: http://imgur.com/a/XeZJz
and full resolution test images: http://imgur.com/a/RN1GT

p.

First ever response to thread so be kind:
I have seen the Andrew Price tutorial and as I remember it, the Normal, Spec and diffuse maps generated by Crazybump and the like are used in the node editor but the displacement map is applied to mesh by subdividing and then applying a Displace modifier.
Hope this helps in some way.

Yes, but look where he did connect normal map output then (blue normal to grey displacement):

and where he is connecting nowadays (blue normal to blue normal):

test nodes set up ?
trying to redo the test
what are the file name from top to bottom

thanks

From top to bottom:

• specular (glossy)
• diffuse
• ambient occlusion (not really that important)
• normal

to which files do these correspond ?

have to check if i have this Insane module for GImp
do you have link to it ?

did you do the AO map with the Gimp module too?

thanks

Insane plugin created all of them.

http://registry.gimp.org/node/28117

Let me jump in with this-

4 images used; last one is if you want to use displacement modifier - looks what would be hightmap.
Cycles Experimental render mode can take advantage of Output node’s Displacement information; Supported mode has effect to the bare minimum (it used to be much more responsive IIRC). To do this i needed to switch on True on Object data tab Displacement and subdivide a bit the mesh. There is checkbox Use Subdivision which one time took advantage of Subdiv mod - right now object turns pitch black. Any sudden moves with these might cause to lock blender. Do not switch while something renders. If you change strength of the displacement switch to Solid mode, then back to Rendered otherwise changes are not seen. YMMW.
http://www.pasteall.org/blend/25393

one problem here

if you download the images for re dong nodes set up it does not work
you need to uplado image in Gimp then re save all images
or it will render as a mauve plane !

happy bl