ScanMountGoat / ultimate_tex

Texture conversion utilities for Smash Ultimate
MIT License
12 stars 0 forks source link

Artifacts (incomplete conversion) of PNG/DDS files from Nutexb/BNTX #5

Closed DevorySSBU closed 1 year ago

DevorySSBU commented 1 year ago

Hello. I've come across a new issue. If you convert a bntx or nutexb file to png or dds, the new image's right side seems dotted, striped or "incomplete", and has like parts of that side erased almost.

This only seems to happen when selecting PNG as the export option, or selecting DDS and then selecting Color sRGB for output format. If you select Color (Linear), the artifacts are actually not there. Selecting PNG will cause this issue no matter the case (options are disabled anyways.)

Here is the program version I use (and what I did): image And then, here is the outcome picture. Notice the right side of the image seems like it's striped. Hmm: image

ScanMountGoat commented 1 year ago

There's a subtle bug in the decoding step (converts compressed DDS to uncompressed RGBA) causing it to not copy the pixels correctly. This will be fixed for the next release.