Closed GoogleCodeExporter closed 9 years ago
Thanks for the bug report. This should be easy to fix.
Original comment by cast...@gmail.com
on 9 Mar 2009 at 9:16
Marco, I'm afraid the problem may be in the DXT decompression code of 3dsmax.
The
files produced by NVTT seem to be correct. Your proposed fix lowers the
compression
quality in all other applications. The feature proposed in Issue 53 would solve
the
problem for you, so I'm gonna close this bug as duplicate and add a note to the
other
bug about the bug in the 3dsmax decoder.
Original comment by cast...@gmail.com
on 18 Mar 2009 at 5:07
This issue is not strictly related to 3dsmax. The problem can be seen in our
directx
game and in other applications. Try to load the sky_error.dds with a simple
OpenGL
application like
http://www.codesampler.com/oglsrc/oglsrc_4.htm#ogl_dds_texture_loader
Copy the sky_error.dds in the tool folder as lena.dds. You can see those
artifacts.
Copy the sky_dither.dds now: the artifacts are gone.
I did these tests on nVidia cards and Ati's ones: the artifacts are equally
visible.
Probably I'm missing something...
Original comment by marcoalt...@gmail.com
on 18 Mar 2009 at 9:21
Ok, I'll investigate that further. I'm not sure what's going on here, there
shouldn't
be any significant difference between the way the hardware decompressed the DXT
blocks and what the software does.
Original comment by cast...@gmail.com
on 18 Mar 2009 at 7:19
Ok, the problem is a difference between the actual hardware decompression
algorithm
and the canonical approach. The error in the hardware decompression is
proportional
to the distance between the end points. I've updated the single color
compression
tables to take that into account.
I'd like to write an article about this issue. Could you provide two
screenshots of
the texture before and after the fix? Thanks!
Original comment by cast...@gmail.com
on 19 Mar 2009 at 10:05
Here they are. Thanks!
Original comment by marcoalt...@gmail.com
on 19 Mar 2009 at 2:02
Attachments:
Thanks! Here's the article:
http://castano.ludicon.com/blog/2009/03/19/gpu-dxt-decompression/
Original comment by cast...@gmail.com
on 19 Mar 2009 at 9:01
Original issue reported on code.google.com by
marcoalt...@gmail.com
on 7 Mar 2009 at 10:59Attachments: