D3DXComputeNormalMap

Started by
0 comments, last by Lemmy 22 years, 1 month ago
D3DXComputeNormalMap Converts a height map into a normal map. The (x,y,z) components of each normal are mapped to the (r,g,b) channels of the output texture. HRESULT D3DXComputeNormalMap( LPDIRECT3DTEXTURE8 pTexture, LPDIRECT3DTEXTURE8 pSrcTexture, CONST PALETTEENTRY* pSrcPalette, DWORD Flags, DWORD Channel, FLOAT Amplitude ); Has anybody used this function? How can it be useful? What exacly it does? (I unterstand it that way that it comutes optimized normals from texture, any ideas?). I''m making terain generator & I think it could be useful. Greetz Lemmy
Advertisement
Methinks it is producing a texture for DOT3 bumpmapping.

Neil

WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

This topic is closed to new replies.

Advertisement