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;
};
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;
};
About the author
Associate Jaimi McEntire
King of Flapjacks