Du/dv map: Difference between revisions
Jump to navigation
Jump to search
Note:
Note:Work from the source texture (such as a .tga) if possible.
(elaborated on tutorial a bit) |
(Updated Photoshop tutorial) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{LanguageBar|title=du/dv map}} | |||
{{note|<code>$dudvmap</code> is now defunct and is replaced by the <code>[[Refract]]</code> shader. Though, the <code>[[Water_(shader)|Water]]</code> shader still uses a du/dv map for <code>[[$bumpmap]]</code>.}} | {{note|<code>$dudvmap</code> is now defunct and is replaced by the <code>[[Refract]]</code> shader. Though, the <code>[[Water_(shader)|Water]]</code> shader still uses a du/dv map for <code>[[$bumpmap]]</code>.}} | ||
Line 8: | Line 10: | ||
=== Photoshop === | === Photoshop === | ||
#Open the normal map and invert the colours (''Image > Adjustments > Invert'' or {{Key|Ctrl|I}}). | #Open the normal map and invert the colours (''Image > Adjustments > Invert'' or {{Key|Ctrl|I}}). | ||
#Go to '' | #Go to ''Image > Adjustments > Brightness/Contrast''. | ||
##Check "Use Legacy" | ##Check "Use Legacy" | ||
##Set Brightness to -17 | ##Set Brightness to -17 |
Latest revision as of 09:47, 9 September 2024

$dudvmap
is now defunct and is replaced by the Refract
shader. Though, the Water
shader still uses a du/dv map for $bumpmap
.du/dv maps are used for DirectX 8 refractions. If you're a Photoshop user, it's easy to create du/dv maps using nVidia's texture tools.
Creating a du/dv map from a normal map
A du/dv map can be easily created from a normal map in just two steps. You can also do this if you don't want to bother with the nVidia tools.

Photoshop
- Open the normal map and invert the colours (Image > Adjustments > Invert or Ctrl+I).
- Go to Image > Adjustments > Brightness/Contrast.
- Check "Use Legacy"
- Set Brightness to -17
- Set Contrast to 100
Paint Shop Pro
- Open the normal map and invert the colours (Colors > Negative Image).
- Adjust the contrast as high as it will go.
You now have a finished du/dv map. When converting to a VTF, set the format to UV88.
See also
- Normal2dudv - utility to convert normal maps to dudv maps
- Height2Normal - utility to convert height maps to normal maps
- Filter Forge