Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NWN supports 32bit TGA files with alpha. They must be powers of 2, such as 32x32 or 128x1024. They can be uncompressed or compressed with RLE compression (using Bottom Left, not sure about Top Left). GIMP for instance can output compressed RLE which is up to half the size for some icons/textures.

For anything other than game icons (GUI icons, feats, spells, scrolls, and items) it is highly recommended to use DDS instead.

Image DimensionsUncompressed TGA File SizeNotes
32x324KBGame's default (now awful) icon size (eg; feats, spells)
64x6416KB
128x12864KB
256x256256KB

Maximum limit of certain shiny water effects. Retaining TGA for this might be advisable to improve quality slightly.

512x5121MB
1024x10244MB
2048x204812MB

...

The TGA file format was used by Bioware to retain quality and compatibility due to the very early introduction of DDS. Therefore it got used for a large portion of the original game files. Once Hordes of the Underdark came around most usual textures were made in DDS only.

Due to qwirks quirks with the game engine and toolset this is a list of suitable uses of TGA. See also Textures for a full use case breakdown between formats.

Type of ImageNWNEE TGA Required/PreferredNotes
Mouse CursorsRequiredNWN:EE needs replacement and custom mouse cursors to be in TGA format
  • Icons - primarily because of use for NUI and in the case of inventory icons that TGA files need to be present to even be recognised as valid, and also this assists the toolset (although that doesn't resize icons).
    • GUI icons
    • Feats
    • Spells
    • Inventory icons
  • Definition files for PLT files, such as pal_skin01.tga for toolset and chargen

DDS should be used for most everything else.

...

Item IconsRequired

TGA is used to validate that icons exist clientside (loading the icon at all) and serverside (eg in CopyItem), even if DDS can load once it's validated.

The toolset also extensively relies on TGA being present and only loads TGA files.

It also gets confusing since sometimes it needs a TGA to be present even if a PLT file would usually load. Go figure!

Palette definition filesRequired

The toolset uses these files so to match the game use TGA

Feat and Spell IconsNot required (but can be preferred)There is no reason to use TGA but it can help retain quality (especially if using the 32x32 standard icon size not a higher resolution version!), the toolset doesn't load these icons and they're not validated so it's reasonably safe to use DDS.
PortraitsNot required (not recommended)There are some instances of TGA still being needed (eg for save games) but this is less of a concern compared to saving lots of disk space. See portraits.2da
GUI IconsNot requiredShould load DDS fine, but as per Feat and Spell icons at 32x32 it's worth using TGA for quality, and sometimes even for higher resolution versions to retain quality at the cost of load times.
NUI Styling ImagesNeeds testingnui_skin data can point to new image files. Need to test if these need to be TGA or can now be DDS instead.