Texture Formats
KOTOR handles graphics via multiple tailored texture formats. It uses hardware-accelerated DXT compression techniques natively supported by its OpenGL backend.
Implementation Blueprints
This section details the primary texture architectures parsed natively by rakata-formats.
| Format | Name | Layout & Purpose |
|---|---|---|
| TPC | Texture Pack Compressed | A proprietary BioWare wrapper around native DXT-compressed OpenGL texture data. This is the primary format used for all base-game environment and character textures. |
| DDS | DirectDraw Surface | A proprietary BioWare variation of the standard Microsoft DDS format. Rather than utilizing standard headers, the legacy engine requires a bespoke 20-byte magic wrapper. |
| TGA | Truevision Targa | An uncompressed, lossless visual format. Used for rendering crisp UI elements, visual effects (VFX), etc. |
| TXI | Texture Extensions | Plaintext routing files that accompany primary textures. They direct the engine how to apply advanced rendering hints, such as procedural animations or bump-mapping. |