Vertical lines in TEX files converted to DDS with Rawtex

Textures, recreate headers, conversions, algorithms and parsing of image files
johnz1
Posts: 14
Joined: Thu Jan 17, 2019 4:00 am

Vertical lines in TEX files converted to DDS with Rawtex

Post by johnz1 »

I've been able to export (and re-import) many textures for NBA JAM: On Fire Edition for PS3. However, player body textures are giving me trouble. Using Rawtex, when I convert the body textures using a 0x80 offset, 1024x512, and DXT1, the output looks right except for black vertical lines every 4 pixels.

KEVIN_GARNETT_HOME_BODY_DIF.png


I know I'm close to the correct format of these DDS images. Does anyone recognize these vertical lines, and know what I need to change in order to get the full, correct texture?

Here are the original TEX file and the converted DDS image: https://mega.nz/folder/LZFEAAYA#tu-1gkUTgSCOOnt75D5cAA

Thanks!
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: Vertical lines in TEX files converted to DDS with Rawtex

Post by Allen »

You can try:
dxt5/bc3 format width:512
deepshit
Posts: 22
Joined: Fri Aug 08, 2014 6:24 am

Re: Vertical lines in TEX files converted to DDS with Rawtex

Post by deepshit »

johnz1 wrote:I've been able to export (and re-import) many textures for NBA JAM: On Fire Edition for PS3. However, player body textures are giving me trouble. Using Rawtex, when I convert the body textures using a 0x80 offset, 1024x512, and DXT1, the output looks right except for black vertical lines every 4 pixels.

KEVIN_GARNETT_HOME_BODY_DIF.png

I know I'm close to the correct format of these DDS images. Does anyone recognize these vertical lines, and know what I need to change in order to get the full, correct texture?

Here are the original TEX file and the converted DDS image: https://mega.nz/folder/LZFEAAYA#tu-1gkUTgSCOOnt75D5cAA

Thanks!


Vertical lines are usually for incorrect DXT format.
your texture is a DXT5.
https://www.mediafire.com/file/8h3fyei1 ... F.dds/file
johnz1
Posts: 14
Joined: Thu Jan 17, 2019 4:00 am

Re: Vertical lines in TEX files converted to DDS with Rawtex

Post by johnz1 »

Thanks for the help.

When I open the DXT5 image in GIMP and Paint.net, it only has blue, green, and red accessories - the rest is blank/transparent. As you can see in the DXT1 image that I uploaded (as PNG), the texture includes skin color. You can see the outline of the arms and hands. None of this is present in the DXT5 image. Also, I can confirm that when one of these BODY_TEX files are replaced with QuickBMS, the player's skin color changes.

Is there some sort of layering that I'm missing in the DXT5 image?
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: Vertical lines in TEX files converted to DDS with Rawtex

Post by Allen »

DXT5's alpha channel wipes out the arms etc, I think you can remove the alpha channel to fix the problem.
Maybe the current texture is not the main texture. Or you just need to invert the alpha channel.
deepshit
Posts: 22
Joined: Fri Aug 08, 2014 6:24 am

Re: Vertical lines in TEX files converted to DDS with Rawtex

Post by deepshit »

It's because of the alpha channel. The alpha channel contains skin color.
open it in photoshop with dds plugin.
johnz1
Posts: 14
Joined: Thu Jan 17, 2019 4:00 am

Re: Vertical lines in TEX files converted to DDS with Rawtex

Post by johnz1 »

Yes! The skin is in the alpha channel. Thank you very much.

For anyone using paint.net, the transparency of the alpha channel can be adjusted with BoltBait's "Transparency" plugin.