My Account


RSS
oZone3D.Net RSS Feeds»RSS 2.0 Feeds

Blogs
»Demoniak3D Blog
»JeGX's Infamous Lab

Sponsors

Modul8: real time video mixing and compositing


Link to Us

oZone3D.Net 100% Realtime 3D

»All Links

Web Partners

www.geeks3d.com
www.benchmarkhq.ru
www.tdt3d.com
www.steph3d.net
www.g-truc.net
www.worldpcspecs.com


Banners Exchange

www.jmax-hardware.com
cgindia.blogspot.com
grapejuice.c.la
www.game-lab.com


Links Exchange

»CYGAD's 3DXtra

Search
Google
Web
oZone3D.Net
 
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:


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


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


FurMark
Current Version: 1.4.0
»FurMark
»Benchmark Submissions


Geeks3D News
Page generated in 0.10783314704895 seconds.