Well I'm starting to toy with a lot of the new technical eyecandy stuff with Half-Life 2 and I've noticed this thing called a Dudv map used on mostly crystals, water, and combine shield effects. I have no idea what it actually does though, is it like a normal map? Does anyone know of a site that explains how this works?
Replies
Anyone else?
You can simulate it in photoshop using the distort->displace filter. From the PS docs:
"The Displace filter shifts a selection using a color value from the displacement map--0 is the maximum negative shift, 255 the maximum positive shift, and a gray value of 128 produces no displacement. If a map has one channel, the image shifts along a diagonal defined by the horizontal and vertical scale ratios. If the map has more than one channel, the first channel controls the horizontal displacement and the second channel controls the vertical displacement."
And using the nVidia photoshop plugin you can generate a du/dv map. Take a height map and convert it over for best results. It's kind of like a screen-space normal map for displacing the backgrounds.