jansol / texpresso

A pure Rust texture compression suite
28 stars 2 forks source link

Weird issue with weighting? #10

Open Aerocatia opened 1 month ago

Aerocatia commented 1 month ago

When compressing this texture the cyan region encroaches into magenta. This happens even with color weights set to 1,1,1. This is compressing as DXT1A.

Here is with texpresso: texpresso

And here is with DirectXTex: dxtex

This is the input: marker color

Should this be happening?

Aerocatia commented 1 month ago

I should mention that libsquish did not do this.

jansol commented 1 month ago

That should definitely not be happening, no. As a wild guess, could this be related to the image dimensions?

Aerocatia commented 1 month ago

Not sure, the image is 128x128. The split between the rows is exactly between a DXT block, so 2px each color.