Difference between revisions of "Du/dv map"

From Valve Developer Community
Jump to: navigation, search
 
Line 1: Line 1:
 
[[Category:Material System]]
 
[[Category:Material System]]
If you're a Photoshop user, it's easy to create du/dv maps using [http://developer.nvidia.com/object/nv_texture_tools.html nVidia's texture tools]. (du/dv maps are for DX8 refractions.) But if you're using another program like PaintShopPro, you might have trouble getting the nVidia tools to work. Fortunately, a du/dv map can be easily created from a normal map in just two steps. You can also do this in Photoshop if you don't want to bother with the nVidia tools.  
+
'''du/dv maps''' are used for [[DirectX Versions|DX8]] refractions. If you're a Photoshop user, it's easy to create du/dv maps using [http://developer.nvidia.com/object/nv_texture_tools.html nVidia's texture tools]. But if you're using another program like PaintShopPro, you might have trouble getting the nVidia tools to work. Fortunately, a du/dv map can be easily created from a normal map in just two steps. You can also do this in Photoshop if you don't want to bother with the nVidia tools.  
  
 
#Open the normal map. First go to Colors->Negative Image (PaintShopPro) or whatever inverses all the colors in your paint program.  
 
#Open the normal map. First go to Colors->Negative Image (PaintShopPro) or whatever inverses all the colors in your paint program.  
 
#Now go to Colors->Adjust->Brightness/Contrast (or your paint program's equivalent). Leave brightness at 0, but raise contrast as high as it will go.  
 
#Now go to Colors->Adjust->Brightness/Contrast (or your paint program's equivalent). Leave brightness at 0, but raise contrast as high as it will go.  
 
That's all! Just save and you're done..
 
That's all! Just save and you're done..

Revision as of 07:25, 7 July 2005

du/dv maps are used for DX8 refractions. If you're a Photoshop user, it's easy to create du/dv maps using nVidia's texture tools. But if you're using another program like PaintShopPro, you might have trouble getting the nVidia tools to work. Fortunately, a du/dv map can be easily created from a normal map in just two steps. You can also do this in Photoshop if you don't want to bother with the nVidia tools.

  1. Open the normal map. First go to Colors->Negative Image (PaintShopPro) or whatever inverses all the colors in your paint program.
  2. Now go to Colors->Adjust->Brightness/Contrast (or your paint program's equivalent). Leave brightness at 0, but raise contrast as high as it will go.

That's all! Just save and you're done..