Raw texture previewer/converter

Textures, recreate headers, conversions, algorithms and parsing of image files
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Raw texture previewer/converter

Post by spiritovod »

@ChrisX930: All works fine here. Exported from umodel with pre-defined platform in settings:
https://i.imgur.com/2qP6bA1.png
https://i.imgur.com/DtVf1m8.jpg
https://i.imgur.com/lJoUNyW.png
https://i.imgur.com/ECvHW7q.jpg

Also, don't extract assets, just open pak in umodel directly.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

i cant help you without original files
pngs will not help
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

I should've done that long time ago probably...

PS4 command line version added. Usage is the same as usual command line tool, but textures will be PS4-unswizzled. Now you can run batches on PS4 textures.
wisi
Posts: 1
Joined: Tue Aug 11, 2020 3:42 am

Re: Raw texture previewer/converter

Post by wisi »

@id-daemon Where can the PS3 swizzling algorithm be found?
EDIT: I found the code in the PRCS3 code: https://github.com/RPCS3/rpcs3/blob/be4 ... sx_utils.h
Thanks for the great program though! :)
lys1030
Posts: 2
Joined: Tue Dec 29, 2020 6:55 pm

Re: Raw texture previewer/converter

Post by lys1030 »

This tool is a legend. Does the cmd tool take swizzle arguments? If so, how? Thanks in advance!
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

No, its not.

p.s. there is a separate cmd tool for ps4 swizzle.
lys1030
Posts: 2
Joined: Tue Dec 29, 2020 6:55 pm

Re: Raw texture previewer/converter

Post by lys1030 »

would it be possible to add the Nintendo switch swizzle function to the cmd tool? It would be very useful for batch jobs.

Besides, when I tried the GUI tool with BC3 (DXT5), image size of 16*16 or smaller would throw an exception. Though, in most cases it's not an issue as the image size is usually bigger than that.
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

Re: Raw texture previewer/converter

Post by DJ Normality »

I too could use a Switch Swizzle CMD function.
VuHaiDang
Posts: 1
Joined: Mon Apr 25, 2022 2:55 am

Re: Raw texture previewer/converter

Post by VuHaiDang »

Hi, so after convert to .dds file, I can convert it to .png file to edit it. Then how to I convert the .png file back to .tex file?
mrhazzed
Posts: 2
Joined: Sun Sep 30, 2018 10:46 am

Re: Raw texture previewer/converter

Post by mrhazzed »

Hey, not sure if this thread is still alive but is there a way to generate mipmaps within the convert?
Mihna
Posts: 2
Joined: Thu Sep 22, 2022 6:28 pm

Re: Raw texture previewer/converter

Post by Mihna »

[Edit] Disregard—figured it out after hours of guesswork!
CidQu
Posts: 44
Joined: Tue Sep 14, 2021 12:25 am

Re: Raw texture previewer/converter

Post by CidQu »

Hi, thanks for the tool. I have a font file but couldn't find any way to extract it to DDS. I used rawtext to get some clues.

Image

How can I find the perfect settings? Thanks in advance!!

Example fonts:
https://drive.google.com/file/d/1CffUcI ... sp=sharing
CidQu
Posts: 44
Joined: Tue Sep 14, 2021 12:25 am

Re: Raw texture previewer/converter

Post by CidQu »

CidQu wrote:Hi, thanks for the tool. I have a font file but couldn't find any way to extract it to DDS. I used rawtext to get some clues.

Image

How can I find the perfect settings? Thanks in advance!!

Example fonts:
https://drive.google.com/file/d/1CffUcI ... sp=sharing
I find it using AMD Compressonator. These files are BC3 512x512.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

New version released, with partial support for PS5 swizzle.

It only works with block-compressed images (BC1-BC7) and 32-bit raw images (such as 4-byte RGBA).
If I can find other types used in PS5 games i can update it.

Image
Blaze Accelerator
Posts: 4
Joined: Wed Dec 21, 2022 3:20 am

Re: Raw texture previewer/converter

Post by Blaze Accelerator »

[quote="id-daemon"]New version released, with partial support for PS5 swizzle.

When I try to convert a swizzled image, I get a dds file that looks like TV static (see attached image). Am I doing something wrong? Or is it a problem with the file? The files I'm converting are .bundle files (ex: sp_cdil_com_y16592.bundle). I can see them swizzled in Asset Studio GUI though.
AhmedAAK
Posts: 1
Joined: Fri Jan 13, 2023 3:54 pm

Re: Raw texture previewer/converter

Post by AhmedAAK »

Blaze Did you find any solution to this? I have the same problem
Blaze Accelerator wrote:
id-daemon wrote:New version released, with partial support for PS5 swizzle.

When I try to convert a swizzled image, I get a dds file that looks like TV static (see attached image). Am I doing something wrong? Or is it a problem with the file? The files I'm converting are .bundle files (ex: sp_cdil_com_y16592.bundle). I can see them swizzled in Asset Studio GUI though.