Torque Game Engine DocumentationVersion 1.3.x |
Essentially map2dif takes a map file as an argument, processes it, and produces a Torque .dif file. By default the .dif is located in the same directory as the .map file. In order to process the map, the textures used in the map need to be loaded. Map2Dif searches for those textures starting in the textures dir, which is by default the directory of the .dif file, then in it's parent directory recursively until it reaches the interiors root. Map2dif will load either .jpg, or .png version of the textures specified in the map.
Map2Dif loads the textures to determine the width and height of each texture. This information is used to calculate polygon texture mapping information stored in the .dif file. If a texture's size should later be changed, all interiors using that texture would have to be re-processed.