Normal Maps
- Bump map
Use grey texel to record bump, and converts bump to the vertex normal, Bump maps require additional information describing how the bump intensity range maps to global space distance units, in order to convert to normal map.
Bump map elevation - Object space normal map
More cheap computation than tangent space normal map, but only support rigid mesh, can't support deformed mesh, and isn't suited for tiling and symmetric model. - Tangent space normal map
A little expensive one. It supplies deformed mesh and all results that object space normal map and bump map can be. So this solution is more flexible for artists pipeline using.
Left: tangent space. Right: bump.
Have the same result on the cube
http://tech-artists.org/wiki/Normal_mapping
Calculation tangent space:
http://jerome.jouvie.free.fr/opengl-tutorials/Lesson8.php
http://www.terathon.com/code/tangent.html
Comments
Post a Comment