Game Development Community

More than 1 Normal Maps?

by John Durbin (NitoRPG) · in Torque Game Engine Advanced · 01/07/2010 (6:17 pm) · 2 replies

I wanted to add some normal maps to this building I'm making and when I put in the first nrm map for the main floor worked out nice, then I put in a nrm map for the floor of another room and it replace the texture of the main floor, I did the same with a wall texture & it replaced the the floor texture again. So how do I get it so that I can have multiple normal maps instead of them replacing eachother?

Here's the code I used(i have a feeling the problem is in the code lol)

new Material(HistoryMuseumTest)
{


baseTex[0] = "s17";
bumpTex[0] = "s17_NRM";

pixelSpecular[0] = true;
specular[0] = "1.0 1.0 1.0 0.1";
specularPower[0] = 32.0;
};

new Material(HistoryMuseumTest)
{


baseTex[0] = "s22";
bumpTex[0] = "s22_NRM";

pixelSpecular[0] = true;
specular[0] = "1.0 1.0 1.0 0.1";
specularPower[0] = 32.0;
};



new Material(HistoryMuseumTest)
{


baseTex[0] = "WALL6";
bumpTex[0] = "wall6_NRM";

pixelSpecular[0] = true;
specular[0] = "1.0 1.0 1.0 0.1";
specularPower[0] = 32.0;
};

#1
01/07/2010 (6:24 pm)
You've named all your materials the same name. They need to have different names.
#2
01/07/2010 (8:18 pm)
lol I knew it would end up being something as simple as that

thanks!