You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any news about this? I'm trying to batch convert a bunch of images using a C# wrapper of this library but I'm getting the typical green-ish artifacts in every DXT1/DXT5, there's a workaround that can be done through code or something like that?
This issue is specifically for compressing 4x4 blocks that all contain exactly the same color. BC1-3 (a.k.a. DXT1-5) all use 5:6:5 for RGB so that sometimes can make the result be a little green tinted depending on the input values.
By default the DXT1-5 compressor is using a 'luminance perceptual' weighting for the colors. You could try TEX_COMPRESS_UNIFORM (which for texconv is -bc u switch). It could also be the result of SRGB vs. Linear color space mix ups.
Using TEX_COMPRESS_FLAGS.UNIFORM doesn't change anything, getting the same artifacts as always.
I tried using almost every combination of WIC_FLAGS and TEX_COMPRESS_FLAGS
PD: The wrapper is using the March 2024 version of the lib.
Activity
walbourn commentedon Mar 4, 2021
Algorithm discussed in this blog
walbourn commentedon Jun 9, 2021
Q: What do to about dithering with the single-color blocks?
Hancapo commentedon Aug 12, 2024
Any news about this? I'm trying to batch convert a bunch of images using a C# wrapper of this library but I'm getting the typical green-ish artifacts in every DXT1/DXT5, there's a workaround that can be done through code or something like that?
walbourn commentedon Aug 12, 2024
This issue is specifically for compressing 4x4 blocks that all contain exactly the same color. BC1-3 (a.k.a. DXT1-5) all use 5:6:5 for RGB so that sometimes can make the result be a little green tinted depending on the input values.
By default the DXT1-5 compressor is using a 'luminance perceptual' weighting for the colors. You could try
TEX_COMPRESS_UNIFORM(which fortexconvis-bc uswitch). It could also be the result of SRGB vs. Linear color space mix ups.Hancapo commentedon Aug 13, 2024
Using
TEX_COMPRESS_FLAGS.UNIFORMdoesn't change anything, getting the same artifacts as always.I tried using almost every combination of
WIC_FLAGSandTEX_COMPRESS_FLAGSPD: The wrapper is using the March 2024 version of the lib.
walbourn commentedon Aug 13, 2024
Can you attach the
original.png?Hancapo commentedon Aug 13, 2024
Sure:
Image