FurMark
Current Version: 1.7.0
»FurMark
»Benchmark Submissions

GPU Caps Viewer
Current Version: 1.8.2
»GPU Caps Viewer
»GPU DB Submissions

My Account



Blogs
»Demoniak3D Blog
»JeGX's Infamous Lab

Link to Us

oZone3D.Net 100% Realtime 3D

»All Site's Network

Visitors Map

 
Normal Map Compression
Renormalization
Swizzled DXT5 - ATI 3Dc

By Jerome Guinot aka 'JeGX' - jegx [at] ozone3d (dot) net

Initial draft: March 11, 2006
Update: March 16, 2006


[ Index ]

Introduction | Page 2 | Page 3 | Page 4 | Conclusion

»Next Page



2 - Renormalisation

Now, let us try to ameliorate these renderings. A simple way is to renormalize the normal which one has taken from the normal-map. In fact, and principally because of texture filtering, the normal vector that one obtains is no longer obliged to have a length of 1. This could create a few problems for a vector which is supposed to have a unitary length. The normalisation therefore permits giving the normal vector a length of 1. This renormalisation is created by:

vec3 bump = normalize( texture2D(normalMap, texCoord).xyz * 2.0 - 1.0 );

Load the bump_map_uncompressed_normalized.xml file in order to see the renormalisation effect: this gives the picture in figure 5:


Fig. 5 - Uncompressed bump map with renormalisation

Compared to figure 2, the quality rendered is practically perfect. Now Let us see what will happen if one renormalizes the normal which has come from the compressed normal-map. For that, load the bump_map_compressed_normalized.xml file into Hyperion:


Fig. 6 - Compressed bump map (DXT5) with renormalisation

The specular reflections appear but the limits of the compression blocks are always visible.







[ Index ]

Introduction | Page 2 | Page 3 | Page 4 | Conclusion

»Next Page







Language:

3D Graphics Search Engine:

The Geeks Of 3D



Geeks3D News


HackLAB News

Demoniak3D
Current Version: 1.23.0
»Demoniak3D
»Download
»Libraries and Plugins
»Demos
»Online Help - Reference Guide
»Codes Samples


PhysX FluidMark
Current Version: 1.1.1
»PhysX FluidMark
»Benchmark Submissions



Misc
»Texture DataPack #1
»Asus Silent Knight CPU Cooler
Page generated in 0.09688401222229 seconds.