Page 1 of 1

Some .dds files have strange colors, what should I do?

Posted: Mon Nov 08, 2021 9:20 am
by guest-1001
I opened the .dds file in the program and some of the files have strange colors.
But when I open it in photoshop, I get a normal picture. what should i do?

Image

Image


https://youtu.be/oDXXPqD1Q3M

my file
https://drive.google.com/file/d/1yYq9Bw ... sp=sharing

Re: Some .dds files have strange colors, what should I do?

Posted: Tue Nov 09, 2021 1:30 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: Some .dds files have strange colors, what should I do?

Posted: Sat Nov 13, 2021 5:56 pm
by pocz
I used "texconv.exe" to batch convert a bunch of images from PNG to DDS.
With this code in the CMD:

Code: Select all

texconv -r "C:\png images\*.png" -o "C:\dds images" -m 1 -f DXT1
"-m 0" - means default number of mipmaps for the image,
"-m 1" - means one image
"-m 4" - means the image and 3 mip map levels.
-r is read from
-o is output
When not specyfying "-f DXT1" the default compression will be used. The output file will be big (useful for small UI icons).
"-f DXT1" is DXT1 compression method. It gives the smallest output possible (I think). No alpha is stored.
"-f DXT3" is good for images with sharp transitions from no-alpha to maximum transparency, like in GIF's.
"-f DXT5" is good for store all levels of transparency in an image. But the size of the file is the biggest of all the 3 lossy compressions.

I'm not sure, about this, but the width and the height has to be divisible by 4(?)
I'm not an expert about compressions. I'm only a user of the available tools.

XnConvert has no options when exporting into DDS.

DDS has a lot more compression options, but these are the basics. Just look how many exporting properties for DDS GIMP has. You don't need any extra plugins (since 2020).

Re: Some .dds files have strange colors, what should I do?

Posted: Thu Dec 02, 2021 11:55 am
by xnview
This problem is supposed to be fixed in XnView MP 0.99.4. Please check and confirm the bug fix here.

Re: Some .dds files have strange colors, what should I do?

Posted: Fri Dec 17, 2021 5:57 pm
by guest-1001
xnview wrote: Thu Dec 02, 2021 11:55 am This problem is supposed to be fixed in XnView MP 0.99.4. Please check and confirm the bug fix here.
It has been fixed. Thanks.