Skip to content

UASTC HDR Examples

Rich Geldreich edited this page Aug 30, 2024 · 22 revisions

Here are some example .HDR/.EXR images compressed to UASTC HDR (8 bits/texel) Khronos .KTX2 files. Many were compressed using the encoder's default options (UASTC HDR level 1). The .KTX2 files were then transcoded to BC6H (no transcoding is needed to ASTC HDR, because UASTC HDR is standard ASTC HDR data), then the ASTC HDR and BC6H textures were uncompressed to half-float .EXR using software decoders.

These half-float HDR images were then Reinhard tonemapped at various exposures for easy display on standard webpages and saved to 24-bit .PNG's. The Reinhard global tonemap function was individually applied to each RGB channel. The tonemapped result was converted to sRGB 8-bits with plain rounding (no dithering).

Compression timings are from an ASUS Zenbook 14X, Raptor Lake, Core i7 13700H. Quality statistics are HDR FP16 avg. RGB (i.e. standard RGB average PSNR's, with the decoded output half-float bits interpreted as unsigned int16_t's) -- higher is better.

Command line:

basisu -stats image.exr
basisu image.ktx2
basisu -tonemap image_hdr_unpacked_rgb_BC6H_face_0_layer_0000.exr
basisu -tonemap image_hdr_unpacked_rgb_ASTC_HDR_RGBA_face_0_layer_0000.exr

BarHarborSunrise.exr (resampled by .75 with a box filter for GitHub, before compression), UASTC Level 3

Dimensions: 3216x1809
Compression time: 26.018 seconds
ASTC PSNR: 54.267570 dB
BC6H PSNR: 54.253075 dB

Note: Level 1 compression time is 4.123 seconds, and level 0 is 2.188 seconds.

Tonemap exposure scale: x0.25

  • ASTC HDR:
    image

  • BC6H:
    image

Tonemap exposure scale: x1

  • ASTC HDR:
    image

  • BC6H:
    image

Tonemap exposure scale: x8

  • ASTC HDR:
    image

  • BC6H:
    image

Desk.exr, UASTC HDR Level 1

Dimensions: 644x874
Compression time: .371 seconds
ASTC: PSNR: 50.539391 dB
BC6H: PSNR: 50.529366 dB

Tonemap exposure scale: x1

  • ASTC HDR:
    image

  • BC6H:
    image

Desk.exr, UASTC HDR Level 4, -hdr_uber_mode

Dimensions: 644x874
Compression time: 20.647 seconds
ASTC: PSNR: 51.254608 dB
BC6H: PSNR: 51.234970 dB

Tonemap exposure scale: x1

  • ASTC HDR:
    image

  • BC6H:
    image

CandleGlass.exr, UASTC HDR Level 1

Dimensions: 1000x810
Compression time: 1.989 seconds
ASTC: PSNR: 60.459099 dB
BC6H: PSNR: 60.397514 dB

Tonemap exposure scale: x0.0625

  • ASTC HDR:
    image

  • BC6H:
    image

Tonemap exposure scale: x4

  • ASTC HDR:
    image

  • BC6H:
    image

Tonemap exposure scale: x32

  • ASTC HDR:
    image

  • BC6H:
    image

office.hdr, UASTC HDR Level 1

Dimensions: 2000x1312
Compression time: 1.777 seconds
ASTC PSNR: 60.984371 dB
BC6H PSNR: 60.851002 dB
UASTC HDR Level 1

Tonemap exposure scale: x4

  • ASTC HDR:
    image

  • BC6H:
    image

yucca.exr, UASTC HDR Level 1

Dimensions: 1296x972
Compression time: .765 seconds
ASTC PSNR: 53.553314 dB
BC6H PSNR: 53.533680 dB

Tonemap exposure scale: x1

  • ASTC HDR:
    image

  • BC6H:
    image

memorial.exr, UASTC HDR Level 1

Dimensions: 512x768
Compression time: .235 seconds
ASTC PSNR: 53.896767 dB
BC6H PSNR: 53.877651 dB
UASTC HDR Level 1

Tonemap exposure scale: x0.125

  • ASTC HDR:
    image

  • BC6H:
    image

Tonemap exposure scale: x4

  • ASTC HDR:
    image

  • BC6H:
    image

MtTamWest.exr, UASTC HDR Level 3

Dimensions: 1214x732
Compression time: 3.163 seconds
ASTC PSNR: 54.267570 dB
BC6H PSNR: 54.253075 dB

Tonemap exposure scale: x4

  • ASTC HDR:
    image

  • BC6H:
    image

Tonemap exposure scale: x16

  • ASTC HDR:
    image

  • BC6H:
    image