Original Post
Has anyone used this function? The function fails (FAILED(hr))==true and I keep getting just a black texture. Have I missed something obvious?
IDirect3DTexture8 * heightMap; IDirect3DTexture8 * normalMap; hr=D3DXCreateTextureFromFile(d3dDevice, "data/height.bmp", &heightMap); hr=d3dDevice->CreateTexture(100, 100, 1, 0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, &normalMap); hr=D3DXComputeNormalMap(normalMap, heightMap, NULL, 0, D3DX_CHANNEL_RED, 10.0f);