Game Development Community

Maya2dts material mapping issue

by Grant Clarke · in Torque Game Engine Advanced · 09/27/2005 (5:25 am) · 2 replies

Hi there,

Using maya2dts to export models into TSE and having problems mapping custom materials to my models. If I look at the model with showTool Pro the material will be called myTexture.png

when I create my custom material it looks like the following:

new CustomMaterial(MyMaterial)
{
   shader = MyShader;
   version = 1.1;
   mapTo = myTexture;
};

I tried adding the .png to the end of the texture name in the mapTo line of the material, but that didn't seem to make a difference. As a test I openned up the dts file in a binary file editor and removed the .png from the material name and that solved the issue, but I'm looking for a proper solution. Is there way to get the maya exporter to not append the file extension on to the material name when it is exported?

cheers,
Grant

#1
09/27/2005 (10:15 am)
Try putting quotes around the texture name in the mapTo line. So it would look like:

mapTo = "myTexture.png";
#2
09/28/2005 (12:29 pm)
That sorted it.

Thanks for the speedy response.