Original Post
Hi, i´ve got normal mapping working in my project, but only based on some sample normal maps i have downloaded from the web. The problem is that i want to create my own normal maps from my diffuse textures, but i don´t understand how it works. I know there are tools that do this automatically (NVdias Plugin for Photoshop, or the D3DXComputeNormalMap function), but they alle require a height map as the input to generate the normal map. But which algorithm do i need to create the heightmap from the original texture in order to convert it to a normal map? i´m a bit confused since each paper about normal mapping leaves out this explanation. would be very happy if someone could help me :) thanks in advance! gamma_strahler