Page 1 of 1

Writing DDS image format has major errors

Posted: Sat Aug 12, 2006 2:42 pm
by rra
the latest version can read DDS (type DXT1) OK , but saving the same image
in DDS DXT1 format gets data (colors) all scrambled up.

Not sure about other DDS types, anyone ??

René

V1.90 <x>

Re: writing DDS image format has major errors

Posted: Thu Aug 17, 2006 7:56 am
by xnview
rra wrote:the latest version can read DDS (type DXT1) OK , but saving the same image
in DDS DXT1 format gets data (colors) all scrambled up.

Not sure about other DDS types, anyone ??
Really, i have no problem. Could you send me original file?

Posted: Thu Aug 17, 2006 9:56 am
by rra
The file is rather big , 16384 x 8192 x 32 bit,
all together something like 87 MB.
I will rar the file (compressed to 28 MB) and put it on my
personal webspace.
Alternatively I can also look for a smaller file with the same problem.

its URL is:


http://members.home.nl/ramekers/Earth.rar .

Just reading the file with XnView and saving it back as the same type
with different name, and reading the copy back will show what went wrong.

If you have trouble obtaining the file send me a message.

Thanks ,

René

Posted: Thu Aug 17, 2006 1:36 pm
by xnview
rra wrote:The file is rather big , 16384 x 8192 x 32 bit,
all together something like 87 MB.
I will rar the file (compressed to 28 MB) and put it on my
personal webspace.
Alternatively I can also look for a smaller file with the same problem.

its URL is:


http://members.home.nl/ramekers/Earth.rar .

Just reading the file with XnView and saving it back as the same type
with different name, and reading the copy back will show what went wrong.

If you have trouble obtaining the file send me a message.

Thanks ,

René
Do you have a smaller file??

Posted: Thu Aug 17, 2006 2:14 pm
by rra
Yes , this one is "only" 8 MB, problem is the same is te bigger one:


http://members.home.nl/ramekers/Earth8k.zip


René

Posted: Tue Dec 19, 2006 12:45 pm
by Olivier_G
Samples are not available anymore.

I tried saving in DDS format and got the right colors/images (dimensions are 2^n only, but that seems to be a characteristics of the format itself).

Posted: Tue Dec 19, 2006 6:38 pm
by rra
I have placed a similar DDS texture on my website,
it is rarred to conserve space.


http://members.home.nl/ramekers/Earth8k.rar


Just resize the original 8K DDS file (50% for example), save it into DDS format, and reload the smaller DDS file again !!


René Ramekers[/img]

Posted: Tue Dec 19, 2006 7:36 pm
by xnview
rra wrote:I have placed a similar DDS texture on my website,
it is rarred to conserve space.


http://members.home.nl/ramekers/Earth8k.rar


Just resize the original 8K DDS file (50% for example), save it into DDS format, and reload the smaller DDS file again !!


René Ramekers[/img]
Yes, but currently i don't find this bug...

Posted: Tue Dec 19, 2006 8:07 pm
by rra
Pierre, are you saying the bug is fixed ??
What version (beta ??) are you referring to ?
I tried it with beta 5 I believe .

René

Posted: Tue Dec 19, 2006 9:05 pm
by xnview
rra wrote:Pierre, are you saying the bug is fixed ??
What version (beta ??) are you referring to ?
I tried it with beta 5 I believe .

René
No, i don't find how to fix it....

Posted: Thu Dec 21, 2006 1:16 pm
by eyebex
I can confirm the bug "rra" described (using beta 5). Here's what I did exactly:

- Open the DDS by double-clicking on it (if needed, you need to associate it with XnView first).

- Resize the image to 50% with "Keep ratio" and "Lanczos" checked.

- "Save as..." the image under a different name.

- Close XnView.

- Open the new image by double-clicking on it.

Here's how the broken new image looks like:
http://www.tu-bs.de/~y0011326/Earth8k_resized.png

EDIT: In case you've written the DDS / DXT (de-)compression code yourself, I can recommend to use squish instead.