http://developer.valvesoftware.com/wiki/VTF
This is what I've figured out so far.
Code: Select all
struct VTFXFileHeader
{
int fileSignature; // 0x56544658
int version1; // 0x00000360
int version2; // 0x00000008
int headerSize; // 00000044
int unknown;
short width;
short height;
short unknown;
short unknown;
short unknown;
short unknown;
float reflectivityX;
float reflectivityY;
float reflectivityZ;
float bumpMapScale;
int imageFormat;
int unknown;
int unknown;
int unknown;
int headerSize2; // 00000044
}ex.

If someone can help me figure out the rest of the header format and how to dewizzle the textures that would be great!
Here's a vtfx texture and an example of it as a dds
http://www.sendspace.com/file/xtrrz5
Oh yeah.. the files are in big endian so make sure your byte swap the file before trying to see the image




