Join also our Discord channel! Click here.

Raw texture previewer/converter

Get your graphics formats figures out here! Got details for others? Post here!
xLegacyGT
ultra-n00b
Posts: 1
Joined: Mon Sep 09, 2019 1:43 am

Re: Raw texture previewer/converter

Post by xLegacyGT » Mon Sep 09, 2019 2:11 am

Thank you for your work daemon1.

I'm having issues with getting the preview to work, I added texconv.exe into the same folder as your tools and it still wont work. I also tried the methods mentioned in previous posts.

NWPlayer123
ultra-n00b
Posts: 1
Joined: Tue Mar 27, 2012 8:27 pm

Re: Raw texture previewer/converter

Post by NWPlayer123 » Mon Sep 09, 2019 5:49 pm

Any chance you could post the source code? would be pretty useful, even if it isn't the best coding in the world

Turisto
ultra-n00b
Posts: 1
Joined: Wed Oct 30, 2019 8:17 pm

Re: Raw texture previewer/converter

Post by Turisto » Sat Nov 09, 2019 12:37 pm

Unfortunately this tool doesn't support uncompressed rgba formats.
There are lot of such textures in PS4 "The Last of us" in swizzled form.

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2200
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1800 times

Re: Raw texture previewer/converter

Post by daemon1 » Sat Nov 09, 2019 1:38 pm

Turisto wrote:
Sat Nov 09, 2019 12:37 pm
Unfortunately this tool doesn't support uncompressed rgba formats.
There are lot of such textures in PS4 "The Last of us" in swizzled form.
the tool SUPPORTS uncompressed rgba formats.

chrnodroid
ultra-n00b
Posts: 4
Joined: Tue Dec 17, 2019 10:41 am

Re: Raw texture previewer/converter

Post by chrnodroid » Tue Dec 17, 2019 6:57 pm

Sample file:
https://mega.nz/#!e4UnyCyS!ayMSZh6V38Li ... 2UGICo-_jI

What's the problem here?

The texture should be b8g8r8a8 with ps4 swizzling

Image

thank you in advance :)

TheUkrainianBard
beginner
Posts: 20
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 19 times

Re: Raw texture previewer/converter

Post by TheUkrainianBard » Tue Dec 17, 2019 7:53 pm

Because:
1) offset is 1E0
2) format is b8g8r8a8_unorm

chrnodroid
ultra-n00b
Posts: 4
Joined: Tue Dec 17, 2019 10:41 am

Re: Raw texture previewer/converter

Post by chrnodroid » Tue Dec 17, 2019 8:17 pm

TheUkrainianBard wrote:
Tue Dec 17, 2019 7:53 pm
Because:
1) offset is 1E0
2) format is b8g8r8a8_unorm
Thank you very much!!!! :D
Have a nice day!

JahsehLLJ
ultra-n00b
Posts: 2
Joined: Sat Dec 28, 2019 6:30 pm

Re: Raw texture previewer/converter

Post by JahsehLLJ » Sat Dec 28, 2019 6:42 pm

Sample files:
https://drive.google.com/open?id=102hxJ ... l0sCf6MDX3

Image

What i'm supposed to do? I'm almost sure that theses files are textures, but he can't recognize...

Kabalstein03
ultra-n00b
Posts: 8
Joined: Thu Jun 09, 2016 2:36 am
Has thanked: 1 time
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by Kabalstein03 » Mon Mar 30, 2020 2:14 am

Hello there, i'm trying to use this program to convert some textures from Borderlands 3, these "colorize arrays" that can help us paint the model textures with their respective colors, so far I've tried to put them through this software but they come out very pixelated, repeated, or in very low quality.

I'll provide a link for anyone to see if they can manage to port these out successfully, or at least find the right settings to port these out, any help is appreciated, thank you.
http://www.mediafire.com/file/3eu7oypyy ... y.zip/file
You do not have the required permissions to view the files attached to this post.

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2200
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1800 times

Re: Raw texture previewer/converter

Post by daemon1 » Thu Jun 18, 2020 4:11 pm

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.

Blorbster
ultra-n00b
Posts: 8
Joined: Sat Mar 24, 2018 4:33 pm
Has thanked: 3 times

Re: Raw texture previewer/converter

Post by Blorbster » Fri Jul 03, 2020 2:16 pm

The PS4 command line version consistently crashes for me on every file I've tested:

Code: Select all

Unhandled Exception: System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at RawtexBatch.RawtexBatch.Main(String[] args)
If I run the regular command line version with the same parameters, it works (but the file is obviously swizzled).

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2200
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 53 times
Been thanked: 1800 times

Re: Raw texture previewer/converter

Post by daemon1 » Fri Jul 03, 2020 4:37 pm

Blorbster wrote:
Fri Jul 03, 2020 2:16 pm
The PS4 command line version consistently crashes for me on every file I've tested:
If I run the regular command line version with the same parameters, it works (but the file is obviously swizzled).
Its not crashing here whatever i try on any images.
You must be using some VERY wrong parameters which is impossible to use in swizzling.

Blorbster
ultra-n00b
Posts: 8
Joined: Sat Mar 24, 2018 4:33 pm
Has thanked: 3 times

Re: Raw texture previewer/converter

Post by Blorbster » Fri Jul 03, 2020 6:25 pm

daemon1 wrote:
Fri Jul 03, 2020 4:37 pm
Its not crashing here whatever i try on any images.
You must be using some VERY wrong parameters which is impossible to use in swizzling.
The exact command I'm running is:

Code: Select all

.\rawtexcmd_ps4.exe "ps4texture.example" BC3 0x72cce 1040 1720
It works correctly if I use those same parameters with PS4 swizzling in the GUI, or in the non-PS4 version.

RavenMac
ultra-n00b
Posts: 2
Joined: Sun Apr 07, 2019 4:00 am
Has thanked: 2 times

Re: Raw texture previewer/converter

Post by RavenMac » Fri Jul 03, 2020 11:26 pm

Got two questions:
1) To batch process files, do i just select the folder they are all in? I saw it was added quite a while back, but with no explanation.

2) Is there any option to select swizzles in the command line version? Trying to use the switch swizzle on a few thousand files.

Great tool by the way. I love just exploring game files.

Post Reply