Texture formats overview: Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
mNo edit summary
Line 10: Line 10:
Some consider DXT5 to be the most flexible general purpose compression codec.
Some consider DXT5 to be the most flexible general purpose compression codec.
{| class="wikitable"
{| class="wikitable"
|----- align="center"
|----- align="left"
! FOURCC
! FOURCC
! FS versions
! Description
! Description
! Alpha premultiplied?
! Alpha premultiplied?
! Compression ratio
! Compression ratio
! Texture Type
! Texture Type
|----- align="center"
|----- align="left"
| DXT1 || 1-bit Alpha / Opaque || N/A || 8:1 || Simple non-alpha
| DXT1 || All || 1-bit Alpha / Opaque || N/A || 8:1 || Simple non-alpha
|----- align="center"
|----- align="left"
| DXT2 || Explicit alpha || Yes || 4:1 || Sharp alpha
| DXT2 || Not supported || Explicit alpha || Yes || 4:1 || Sharp alpha
|----- align="center"
|----- align="left"
| DXT3 || Explicit alpha || No || 4:1 || Sharp alpha
| DXT3 || All || Explicit alpha || No || 4:1 || Sharp alpha
|----- align="center"
|----- align="left"
| DXT4 || Interpolated alpha || Yes || 4:1 || Gradient alpha
| DXT4 || Not supported || Interpolated alpha || Yes || 4:1 || Gradient alpha
|----- align="center"
|----- align="left"
| DXT5 || Interpolated alpha || No || 4:1 || Gradient alpha
| DXT5 || FSX only || Interpolated alpha || No || 4:1 || Gradient alpha
|}
|}



Revision as of 15:59, 24 January 2008

Placeholder text for a Texture Types overview doc.

Edit for FS applicability.

S3TC Format Comparison

S3TC (aka DXTn or DXTC)

DXT4/5 use an interpolated alpha scheme, they generally produce superior results for alpha (transparency) gradients than DXT2/3.
Some consider DXT5 to be the most flexible general purpose compression codec.

FOURCC FS versions Description Alpha premultiplied? Compression ratio Texture Type
DXT1 All 1-bit Alpha / Opaque N/A 8:1 Simple non-alpha
DXT2 Not supported Explicit alpha Yes 4:1 Sharp alpha
DXT3 All Explicit alpha No 4:1 Sharp alpha
DXT4 Not supported Interpolated alpha Yes 4:1 Gradient alpha
DXT5 FSX only Interpolated alpha No 4:1 Gradient alpha