Game Development Community

Maya 2008 exporter normal map problem

by beyond · in Artist Corner · 09/10/2008 (4:53 pm) · 3 replies

Hello,
I'm trying to export my model in torque, dts and two texture: diffuse and bump. I have made material.cs, but bump does not work, in torque texture is displayed, bump don't. dump file with no errors and config file exist. But Export from 3d Max is working and bump works. Thanks in advanced for any solution.

#1
10/15/2008 (9:50 pm)
Did you turn on pixel specular in the material.cs and does the shader in Maya have a spec.. ie blinn or phong?
#2
10/22/2008 (12:58 am)
What purpose does the config file serve?
#3
10/22/2008 (9:52 am)
For maya exported models you need to do this:

new Material( fooMaterial )
{
   mapTo = "foo.png"
   baseTex[0] = "~/data/textures/foo";
   bumpTex[0] = "~/data/textures/foo_normal";
};

So you will need to add the mapTo line and the full texture name, including the extension.