the mesh does render without textures
loading the texture , hr returns success
both meshs ive turned a grey color , which cant be right
this code in in Render();
d3ddev->SetTextureStageState(0,D3DTSS_COLOROP,D3DTOP_SELECTARG1); d3ddev->SetTextureStageState(0,D3DTSS_COLORARG1,D3DTA_TEXTURE); d3ddev->SetTextureStageState(0,D3DTSS_COLORARG2,D3DTA_DIFFUSE); d3ddev->SetTexture(0 , D3DTexture); //Ignored for(DWORD i = 0; i < numMaterials; i++) // loop through each subset { d3ddev->SetMaterial(&material); // set the material for the subset meshSpaceship->DrawSubset(i); // draw the subset }