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

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
guest-1001
Posts: 2
Joined: Mon Nov 08, 2021 8:55 am

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

Post 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
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
pocz
Posts: 1
Joined: Sat Nov 13, 2021 5:32 pm

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

Post 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).
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.99.4. Please check and confirm the bug fix here.
Pierre.
guest-1001
Posts: 2
Joined: Mon Nov 08, 2021 8:55 am

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

Post 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.
Post Reply