Normalmap

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
 
(18 intermediate revisions by one user not shown)
Line 1: Line 1:
[[File:Normalmap bowl.jpg|200px|thumb|Normalmap for a bowl model]]
+
[[File:Normalmap bowl.jpg|150px|thumb|Normalmap for a bowl model]]
[[File:Heightmap_tiles.jpg|200px|thumb|Heightmap for parallax mapping]]
+
[[File:Heightmap_tiles.jpg|150px|thumb|Heightmap for parallax mapping]]
  
Normal maps are images that store per-pixel surfaces normals directly in the RGB values of an image. They can dramatically increase object detalisation without adding more polygons. Therefore, normalmaps have a bunch fo limits and quirks.
+
Normal maps are images that store per-pixel surface normals directly in the RGB values of an image. Properly done normalmaps can dramatically increase object detalisation without adding more polygons.  
 +
 
 +
Therefore, normalmaps have a bunch fo limits and quirks:
 +
 
 +
* Tangentspace normalmap is based on vertex normals, if vertex normals is adjusted, normalmap is outdated.
 +
* There is DirectX and OpenGL normalmap format, should figure out what format tool is producing and fix normalmap if it doesnt fit.
 +
* UV seams and 'hard edges' produced by vertex normals is tricky.
 +
* Normalmappers have a couple of quirks (aliasing, noise).
  
 
'''Recommended articles on normalmaps:'''
 
'''Recommended articles on normalmaps:'''
Line 8: Line 15:
 
* [http://www.svartberg.com/tutorials/article_normalmaps/normalmaps.html Normalmaps for the Technical Game Modeler]
 
* [http://www.svartberg.com/tutorials/article_normalmaps/normalmaps.html Normalmaps for the Technical Game Modeler]
  
In Darkplaces Engine, normalmaps are tangentspace, OpenGL-oriented (X stores horizontal, Y vertical) and can additionally store alpha-component which represents height that will be use for [[parallex mapping]].
+
In Darkplaces engine, normalmaps are:
 +
* Tangent-space RGB
 +
* OpenGL-oriented (X stores horizontal, Y vertical)
 +
* Optionally can store alpha component which represents height that will be used for [[parallax mapping]].
 +
* Compressed to DXT1 (if not alpha) or DXT5
  
 
== See also ==
 
== See also ==
 
* [[Texture]]
 
* [[Texture]]
 +
 +
[[Category:Glossary]]
 +
{{finished}}

Latest revision as of 00:47, 31 July 2012

Normalmap for a bowl model
Heightmap for parallax mapping

Normal maps are images that store per-pixel surface normals directly in the RGB values of an image. Properly done normalmaps can dramatically increase object detalisation without adding more polygons.

Therefore, normalmaps have a bunch fo limits and quirks:

  • Tangentspace normalmap is based on vertex normals, if vertex normals is adjusted, normalmap is outdated.
  • There is DirectX and OpenGL normalmap format, should figure out what format tool is producing and fix normalmap if it doesnt fit.
  • UV seams and 'hard edges' produced by vertex normals is tricky.
  • Normalmappers have a couple of quirks (aliasing, noise).

Recommended articles on normalmaps:

In Darkplaces engine, normalmaps are:

  • Tangent-space RGB
  • OpenGL-oriented (X stores horizontal, Y vertical)
  • Optionally can store alpha component which represents height that will be used for parallax mapping.
  • Compressed to DXT1 (if not alpha) or DXT5

[edit] See also

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox