Game Development Community

Materials on Terrain Textures in TGE or TGEA

by Frank Korf · in Technical Issues · 02/16/2007 (12:17 pm) · 2 replies

I would like to apply specific attributes to various parts of the terrain.

Examples include unique footstep sounds to dirt path or grassy areas, or slower movement on sand.

I can paint these areas on the map with terrain textures, but how do I tell the client to behave differently when on these textures?

Make sense?

I know that TGEA has better materials functionality. Would it be easier in TGEA than in TGE?

Any help would be great. Thanks.

#1
02/16/2007 (12:25 pm)
In TGE1.5
If you look in the TGE15\example\starter.fps\data\terrains\grassland directory (assuming your root Torque directory is TGE15, you should see a nifty little file called propertymap.cs which calls the addMaterialMapping function. This assigns a sound to a specific material.
For speed modifications, you'd have to tweak the engine, but as far as tweaks go, that should be the easiest tweak of all!

Check it out. By the way, General technical Issues for Game Developers might not be the best place for this type of question.
#2
02/18/2007 (12:17 pm)
Thanks. I'll try that.