Game Development Community

Materials for Interiors

by none · in Torque 3D Professional · 10/05/2012 (10:57 am) · 2 replies

Hello! I'm using constructor (I know many people advise against this for T3D but I've had no collision or geometry problems as of yet and have constructed an entire city block). The question I have though is how do I assign detail/normal maps to my texture that are already applied to the models? I can't really think of how this would be done. Any help is appreciated!

#1
10/05/2012 (11:15 am)
You would do it the same way you do for dts shapes.

A great example is in /examples/fps/game/art/shapes/bunker/material.cs

singleton Material(Bunker_Concrete)
{
	mapTo = "Concrete";

	diffuseMap[0] = "art/shapes/Bunker/Concrete_D";
	specularMap[0] = "art/shapes/bunker/Concrete_S";

	diffuseColor[0] = "1 1 1 1";
	specular[0] = "1 1 1 1";
	specularPower[0] = "16";

	doubleSided = false;
	translucent = false;
	translucentBlendOp = "None";
   pixelSpecular[0] = "0";
   useAnisotropic[0] = "1";
   lightMap[0] = "art/shapes/bunker/Bunker_LightMap";
   materialTag0 = "RoadAndPath";
};

All the examples have material.cs files. Look thru those to find which would work best for you.
#2
10/05/2012 (3:31 pm)
Ok awesome thank you!