• Advertisement

Archived

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

D3DXComputeNormalMap

This topic is 5784 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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?!?!

Share this post


Link to post
Share on other sites

  • Advertisement