Introduction
TIM2, usually stored as .tm2, is a texture format of the Sony PlayStation 2.
One file can hold several pictures, with mipmaps and colour lookup tables (palettes). The
layout is known from reverse engineering, here that of the OpenKh project. The first
PlayStation used the separate TIM format.
Structure
A 16-byte file header holds the magic TIM2, a format revision byte
(usually 4), a format byte and a 16-bit picture count. Each picture has a header giving
its total, palette and image sizes, the header size, the number of palette colours, the
picture, palette and image colour types, the mipmap count, the width and height, and
values for registers of the console’s Graphics Synthesizer.
Not described
Known, not yet covered
- Reference: this page is a summary; the colour types, pixel and palette ordering, mipmap layout and register fields are not yet described on this site.
- Viewer: the site has no viewer for TIM2 textures.
Links
Software
- Rainbow – converter for console texture formats, including TIM2 (C#)
- PS2 TIM2 Tool – command-line converter between images and TIM2 textures (C and Python)
Reference
- TM2 – OpenKh’s description of the headers