Closed GoogleCodeExporter closed 9 years ago
Sample file
Original comment by lars.m.w...@gmail.com
on 23 Aug 2010 at 11:56
Attachments:
I thought that the DDS spec said that the pitch of DDS files was supposed to be
aligned to 32 bits. This should be true for files generated by NVTT. However, I
cannot find anything on the web about this requirement anymore. I'll contact
Chuck Walbourn @ Microsoft for clarification.
Original comment by cast...@gmail.com
on 24 Aug 2010 at 7:25
BTW, I like your hole filling algorithm, is that a push-pull filter?
Original comment by cast...@gmail.com
on 24 Aug 2010 at 7:31
Alas, I can't take credit, so don't know.
FYI, the sample DDS was produced from Photoshop using (I believe) a plug-in
from NVIDIA.
Original comment by lars.m.w...@gmail.com
on 24 Aug 2010 at 7:46
Chuck confirms that the pitch is only byte-aligned. I'll fix this shortly then.
Original comment by cast...@gmail.com
on 26 Aug 2010 at 12:15
This issue was closed by revision r1148.
Original comment by cast...@gmail.com
on 7 Sep 2010 at 6:24
OK, this is now fixed. The 2.0 branch now uses byte alignment by default, while
in trunk you can select the desired alignment with the setPitchAlignment
function. By default it's set to 8.
I've also updated the documentation:
http://code.google.com/p/nvidia-texture-tools/wiki/ApiDocumentation#Pixel_Format
_Conversion
Note that the image loading code now assumes that the input is 8 bit aligned.
So, it may have problems loading images generated with previous versions of
NVTT.
Original comment by cast...@gmail.com
on 7 Sep 2010 at 6:29
Original issue reported on code.google.com by
lars.m.w...@gmail.com
on 23 Aug 2010 at 10:39