Fr/Du/dv map: Difference between revisions

From Valve Developer Community
< Fr
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
[[Category:Material System]]
Les '''du/dv maps''' sont utilisés pour les réfractions [[DirectX Versions|DirectX 8]]. Vous serez amené à en créer pour l'eau, un matériaux '''Refract'''.
'''du/dv maps''' are used for [[DirectX Versions|DirectX 8]] 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.  
;Si vous utilisez Photoshop créer une du/dv maps est très facile, il vous suffit d'utiliser le plugins [http://developer.nvidia.com/object/nv_texture_tools.html nVidia's texture tools]. Vous pouvez aussi la créer vous même, si vous souhaitez ne pas utilisez le Plugins ou un autre logiciel que Photoshop. La créer manuellement est facile et seul deux étapes sont nécessaires.
 


#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.  

Revision as of 12:21, 18 November 2008

Les du/dv maps sont utilisés pour les réfractions DirectX 8. Vous serez amené à en créer pour l'eau, un matériaux Refract.

Si vous utilisez Photoshop créer une du/dv maps est très facile, il vous suffit d'utiliser le plugins nVidia's texture tools. Vous pouvez aussi la créer vous même, si vous souhaitez ne pas utilisez le Plugins ou un autre logiciel que Photoshop. La créer manuellement est facile et seul deux étapes sont nécessaires.


  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 (Photoshop tends to produce more accurat results with brightness set to -17), but raise contrast as high as it will go.

DuDv maps with only pure yellow, green, red and black tends have some artifacts ingame. There for you should mix it up a bit with the original normal map. In Photoshop this is best done by puting the normal map as a layer on top of you dudv image set opacity to 50% and blending mode to hard light.

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

See also