# Maya .X exporter questions

This topic is 4645 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

When I export a mesh that only has 1 texture/material applied to it, the .x file lists 2 materials:
Material {
0.800000;0.800000;0.800000;1.000000;;
0.000000;
1.000000;1.000000;1.000000;;
0.000000;0.000000;0.000000;;

TextureFilename {
"C:/Documents and Settings/Chad/My Documents/Visual Studio Projects/Test/stone.jpg";
}
}

Material {
1.000000;1.000000;1.000000;1.000000;;
0.000000;
1.000000;1.000000;1.000000;;
0.000000;0.000000;0.000000;;

TextureFilename {
"";
}
}


Where is that second material coming from? It's messing up my mesh loader since the .x file says it has 2 materials so when I do a IDirect3DDevice9::SetTexture, it will freak out since no texture is there. I can get around it by going into the .x file by hand and deleting it but I'd like Maya to just export it without this other material. Also, how can I get relative paths for the texture file name? I set Make Relative Paths to true but it had no effect. One last question: When lighting is disabled, the mesh is totally black unless I turn up the Incandescence before exporting it. Is the material supposed to depend on the Incandescence like that? I'm using the August 2005 SDK.

##### Share on other sites
Welcome to the club sir :0

• 38
• 15
• 9
• 23
• 10