Skip to content

BC7 (no GPU) compresses (255,255,255,0) to (255,255,255,1) #269

Open
@jpownby-es

Description

@jpownby-es

An image with a block of fully transparent white texels is getting compressed to white texels with an alpha value of 1 instead of 0.

To reproduce:

  • Take a 4x4 image where each uncompressed texel is (255,255,255,0)
  • (I have attempted to attach such an image, but it's not clear to me whether the attachment process worked)
  • Enter the following command in texconv:
  • texconv.exe -f BC7_UNORM -nogpu transparentWhite.png
  • Observe that the resulting compressed texels are (255,255,255,1), and no longer fully transparent

Note that if GPU compression is used the compressed values are the expected (255,255,255,0), and so the undesired alpha value only happens with non-GPU compression.

transparentWhite

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions