I'm trying to load Normal maps using assimp but it never happens (diffuse map works fine.)
if (Mat->GetTextureCount(aiTextureType_NORMALS) > 0 && Mat->GetTexture(aiTextureType_NORMALS, 0,&nMapPath) == AI_SUCCESS)
{
char cpath[100];
sprintf(cpath, "Resources\\Textures\\%s", nMapPath.C_Str());
#if defined(DEBUG) || defined(_DEBUG)
OutputDebugStringA("Normal Map Loaded:"); //never happens
OutputDebugStringA(cpath);
OutputDebugStringA("\n");
#endif
ID3D11ShaderResourceView* srv = mInfo.Mgr->CreateTexture(cpath);
NormalMapSRV.push_back(srv);
}
dunno what's actually wrong but i'm using dwarf.x from directx sdk which should contain normal maps.
full code : http://pastebin.com/hSgGgXn6