Archived

This topic is now archived and is closed to further replies.

Lemmy

D3DXComputeNormalMap

Recommended Posts

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

Share this post


Link to post
Share on other sites
Methinks it is producing a texture for DOT3 bumpmapping.

Neil

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

Share this post


Link to post
Share on other sites