Inverting Normalmaps: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(New page: A normalmap is made up of several rgb images. image coming In this example, the normal map on the left won't produce the intended result in Doom 3 but the problem is corrected very easil...)
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
To see whether a normalmap is inverted, see: [[Inverse Normalmaps]]
A normalmap is made up of several rgb images.
A normalmap is made up of several rgb images.


image coming
http://www.mindplaces.com/save/Inverted-Normalmap.png


In this example, the normal map on the left won't produce the intended result in Doom 3 but the problem is corrected very easily by inverting the green channel as depicted by the normal map on the right.
In this example, the normal map on the left won't produce the intended result in Doom 3 but the problem is corrected very easily by inverting the green channel as depicted by the normal map on the right.
Line 11: Line 13:
The green channel represents the vertical displacement. For Doom 3 engine based games, it should appear as if it's being illuminated from the bottom.
The green channel represents the vertical displacement. For Doom 3 engine based games, it should appear as if it's being illuminated from the bottom.


Depending on the application you used to render your normal map, you may need to invert this channel in an image editing application. And by judging your normal map, this appears to be the case.
Depending on the application you used to render your normal map, you may need to invert this channel in an image editing application.  


The blue channel is, from the perspective of an artist, unimportant so you don't really need to concern yourself with it.
The blue channel is, from the perspective of an artist, unimportant so you don't really need to concern yourself with it.


So in summary, increase the number of samples per pixel when rendering the normal map and invert the green channel in an image editing application.
[http://www.modwiki.net/w/images/b/b0/Invnorm.png Example Image]
 
 
[[Category:Textures]]

Latest revision as of 14:51, 3 November 2012

To see whether a normalmap is inverted, see: Inverse Normalmaps

A normalmap is made up of several rgb images.

Inverted-Normalmap.png

In this example, the normal map on the left won't produce the intended result in Doom 3 but the problem is corrected very easily by inverting the green channel as depicted by the normal map on the right.

As for each channel itself and what you should be looking for.

The red channel represents the horizontal displacement. It should appear as if it's being illuminated from the right.

The green channel represents the vertical displacement. For Doom 3 engine based games, it should appear as if it's being illuminated from the bottom.

Depending on the application you used to render your normal map, you may need to invert this channel in an image editing application.

The blue channel is, from the perspective of an artist, unimportant so you don't really need to concern yourself with it.

Example Image