I am trying to replace D3DXLoadMeshFromX() function with my function D3DXLoadMeshFromFBX(). For that I want to extract information (like texture coords., mesh, normals, vertices, materials, etc.) from .fbx file. I have extracted most of the information correctly, but I am unable to display this information. My final output should be a rotating cube with texture applied on it. I have attached files used by my code (mesh.txt, cube1.FBX, cube.png). Please tell me where I did wrong?