TexConv converts an image file in the Truevision Graphics Adapter (TGA) format into a TPL file according to the specifications in a script file.
TexConv is executed by the following command.
|
A TGA file is not directly specified as an argument to TexConv. Instead, specify a texture conversion script (TCS) file, which contains the path of the TGA file to convert as well as other settings.
An example texture conversion script (TCS) file is given below. For more information, see the Revolution Texture Palette Library (TPL) (Graphics_Programmer's_Guide/TPL.pdf).
|
Script files have the following basic rules.
- Spaces are ignored. Both "image1=1" and "image 1 = 1" are considered to be identical.
- Text is parsed line by line. A line ends with a newline character and cannot contain more than 255 characters.
- Images, textures, and palettes can be listed in any order, as can their indices. TexConv sorts each list in ascending order before converting them.
- Comments start with a semicolon and continue to the end of the line.
- Unspecified elements are written as "x". For example, "image 1 = 1, x, RGB565" would describe an image without an alpha plane. Writing "texture 1 = 1, x" would describe a texture without a palette.
- The directory path name is specified as either an absolute path or a relative path from the current directory.
2008/07/29 Initial version.
CONFIDENTIAL