Game Development Community

Maya + normal map

by Mvm · in Artist Corner · 12/11/2008 (9:56 am) · 3 replies

I created a shape in maya and export this with DTS Exporter

and use this code for add normal map and specular

new Material( wall )
{
mapTo = "wall.png";
baseTex[0] = "wall";
bumpTex[0] = "wall_normal";
pixelSpecular[0] = true;
specular[0] = "1.0 1.0 1.0 1.0";
specularPower[0] = 256.0;
};

but this is not working

please help me

sorry for english

About the author


#1
12/11/2008 (11:24 am)
Add the .png extension to baseTex and bumptex as well.
#2
12/11/2008 (10:21 pm)
I added the .png extension to baseTex and bumpTex

but this not working again

new Material( wall )
{
mapTo = "wall.png";
baseTex[0] = "wall.png";
bumpTex[0] = "wall_normal.png";
pixelSpecular[0] = true;
specular[0] = "1.0 1.0 1.0 1.0";
specularPower[0] = 256.0;
};
#3
12/12/2008 (12:11 am)
Try mapTo = "wall";