Source VTF
Contents: GRAFs page - All - 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - Edit
Format Type: Image
Extensions: vtf / xtf
Platforms: unknown
Endian Order: Little Endian
Format Specifications
IMAGE --> Valve Texture Format
IMAGE FORMAT CODES... (ref: https://developer.valvesoftware.com/wiki/Valve_Texture_Format)
0 = RGBA8888
1 = ABGR8888
2 = RGB888
3 = BGR888
4 = RGB565
5 = I8
6 = IA88
7 = P8
8 = A8
9 = RGB888_BLUESCREEN
10 = BGR888_BLUESCREEN
11 = ARGB8888
12 = BGRA8888
13 = DXT1
14 = DXT3
15 = DXT5
16 = BGRX8888
17 = BGR565
18 = BGRX5551
19 = BGRA4444
20 = DXT1_ONEBITALPHA
21 = BGRA5551
22 = UV88
23 = UVWQ8888
24 = RGBA16161616F
25 = RGBA16161616
26 = UVLX8888
IMAGE HEADER
uint32 {4} - Header ("VTF" + (byte)0)
uint32 {4} - Version Major (7)
uint32 {4} - Version Minor (2/3)
uint32 {4} - Header Size (80 + resourceDirectorySize)
uint16 {2} - Width
uint16 {2} - Height
uint32 {4} - Flags
uint16 {2} - Number of Frames (1 = no animation)
uint16 {2} - First Frame Number
uint32 {4} - null Padding to 16 bytes
uint32 {4} - Reflectivity Vector 1
uint32 {4} - Reflectivity Vector 1
uint32 {4} - Reflectivity Vector 1
uint32 {4} - null Padding to 16 bytes
uint32 {4} - Bumpmap Scale
uint32 {4} - High Resolution Image Format
byte {1} - Mipmap Count
uint32 {4} - Low Resolution Image Format (13)
byte {1} - Low Resolution Width
byte {1} - Low Resolution Height
uint16 {2} - Image Depth
if (version == 7.3+){
byte {3} - null Padding to 4 bytes
uint32 {4} - Number of Resources
}
byte {8/15} - null Padding to offset 80
byte {X} - Low Resolution Image Data
RESOURCE DIRECTORY (version 7.3+ only)
byte {X} - Other Resource Data
for each mipmap (smallest to largest)
for each frame (first to last)
for each face (first to last)
for each Z slice (min to max)
byte {X} - High Resolution Image Data
MultiEx BMS Script
No BMS script
Supported Programs
Notes
- PC version seems to use VTF extension, XBOX version seems to use XTF extension.
Games
- Alien Swarm Reactive Drop
- Counter-Strike: Global Offensive
- Counter-Strike: Source
- Day of Defeat: Source
- Dota 2
- Half-Life 2 (PC/XBOX)
- Half-Life 2: Deathmatch
- Half-Life: Source
- Left 4 Dead
- Left 4 Dead 2
- Portal
- Portal 2
- Portal Stories: Mel
- Source Filmmaker
- Team Fortress 2
- Transmissions Element 120
- Valve Source Engine