Skip to content

Artifact pixels when using -fixbc4x4 on certain DDS files #315

Open

Description

@wet-dog

I'm getting artifact pixels when running texconv -fixbc4x4 -m 1 -y file.dds on some files where the top-level width & height are not multiples of 4.

Input DDS
Output DDS

circleOutput

I'm using the latest January 31, 2023 release of texconv.exe.

Activity

  1. walbourn commented on Mar 10, 2023

    @walbourn
    Collaborator

    The -fixbc4x4 switch is a bit of a hack, so it really depends on how the original compressor handles 1x1, 2x1, 1x2, 2x2, etc. size blocks. Most of them do it by pixel replication which is probably what's showing up here.

    I'll have to see if there's a good way to 'clear out' the originally unused pixels, but I'm not sure how to do that robustly.

  2. wet-dog commented on Mar 13, 2023

    @wet-dog
    Author

    Would it be possible for texconv to pad the images before compression?

  3. walbourn commented on Mar 26, 2023

    @walbourn
    Collaborator

    DirectXTex compressor uses the same pixel replication pattern as D3DX did for blocks that are less than 4x4 in size, which is where the 'artifact' you are describing comes from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtoolsApplies to texconv, texdiag, texassemble, etc.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions