gxtexconv

From WiiBrew
Jump to navigation Jump to search

gxtexconv
General
Author(s)shagkur, #wiidev blitzed
TypePC utility
Version1.0.3
Links
Source

gxtexconv is command line program included in devkitPPC. It is powered by FreeImage library.

Usage

  • gxtexconv -i <imagepath> [-o <outputfile>.tpl colfmt=<texfmt> mipmap=yes minlod=<min level> maxlod=<max level> width=<newwidth> height=<newheight> [palfmt=<palcolfmt>]]
  • gxtexconv -s <scriptfile>.scf [-d <dependency file>][-o <outputfile>.tpl]

Supported texture formats:

  • 0: I4 (Intensity 4bit)
  • 1: I8 (Intensity 8bit)
  • 2: IA4 (Intensity + Alpha 4bit)
  • 3: IA8 (Intensity + Alpha 8bit)
  • 4: RGB565 (R5G6B5)
  • 5: RGB5A3 (R5G5B5 or A3R4G4B4)
  • 6: RGBA8 (A8R8G8B8)
  • 8: CI4 (Color Indexed 4bit)
  • 9: CI8 (Color Indexed 8bit)
  • 14: CMPR (Compressed Format)

Thanks goes out to tmbinc for some preliminary code snippets how to pack the data into GC Texture Format.