   loading texture from x file!
  I have successfully loaded a mesh from an X file and rendered it but I'm having a problem with its texture:void loadObject ( void ){D3DXLoadMeshFromX (L"Mutant.x",D3DXMESH_SYSTEMMEM,pd3dDevice,&pAlienAjBuff,&pAlienMtBuff,NULL,&numMats,&alienMesh);D3DXMATERIAL* matMaterials = (D3DXMATERIAL*)pAlienMtBuff->GetBufferPointer();pAlienMats = new D3DMATERIAL9[numMats];for (DWORD i = 0 ; i < numMats ; i++){pAlienMats = matMaterials.MatD3D;pAlienMats.Ambient = pAlienMats.Diffuse;}//Using 1 for now as theres only 1 textureD3DXCreateTextureFromFileA( pd3dDevice, matMaterials[1].pTextureFilename, &pTexture);return;}When I make a break after the create texture it shows that the texture filename is "Mutant01_D2.tga" although the image file that came with the model is "Mutant01_D2.dds".Also just after the call to createTexture I'm getting this error message:Unhandled exception at 0x7c901278 in d3dtut.exe: 0xC0000005: Access violation reading location 0xfeeefeee.How would I go about getting the correct texture name and so on and anyone know why I'd be getting that error??Thanks, Malb.Edit:0xfeeefeee seems to be the location of matMaterials[1].pTextureFilename   
  Changing the 1 to a 0 seems to get rid of the error but the texture still isn't showing on the model, I'm guessing it's because the x file thinks the texture should be "Mutant01_D2.tga" although the model loads using DarkGDK without having to apply the texture myself. How would I go about doing that???   ;  Hi.Did you use panda exporter for the .X file. if so then when in 3dsmax check to see if you have more then 1 material in the materials list if so, panda will export all texture and put them in the .X file if used or not used.that is where the tga may come from.Hope this give some light into the problem your having.Bye.   