Important information: this site is currently scheduled to go offline indefinitely by end of the year.

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
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by xLegacyGT »

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
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by NWPlayer123 »

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
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by Turisto »

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
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Raw texture previewer/converter

Post by daemon1 »

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: 5
Joined: Tue Dec 17, 2019 10:41 am
Been thanked: 2 times

Re: Raw texture previewer/converter

Post by chrnodroid »

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: 21
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 20 times

Re: Raw texture previewer/converter

Post by TheUkrainianBard »

Because:
1) offset is 1E0
2) format is b8g8r8a8_unorm
chrnodroid
ultra-n00b
Posts: 5
Joined: Tue Dec 17, 2019 10:41 am
Been thanked: 2 times

Re: Raw texture previewer/converter

Post by chrnodroid »

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
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by JahsehLLJ »

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
n00b
Posts: 11
Joined: Thu Jun 09, 2016 2:36 am
Has thanked: 1 time
Been thanked: 2 times

Re: Raw texture previewer/converter

Post by Kabalstein03 »

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
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Raw texture previewer/converter

Post by daemon1 »

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
n00b
Posts: 11
Joined: Sat Mar 24, 2018 4:33 pm
Has thanked: 3 times
Been thanked: 5 times

Re: Raw texture previewer/converter

Post by Blorbster »

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
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Raw texture previewer/converter

Post by daemon1 »

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
n00b
Posts: 11
Joined: Sat Mar 24, 2018 4:33 pm
Has thanked: 3 times
Been thanked: 5 times

Re: Raw texture previewer/converter

Post by Blorbster »

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
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by RavenMac »

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.
Snake128
ultra-n00b
Posts: 3
Joined: Tue May 12, 2020 4:26 pm
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by Snake128 »

daemon1 wrote: 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.

Hi Master,
I'm working with your program and is amazing, but I have a question about.

Your program get a .nhtex "switch swizzle" file and convert to .dds file perfectly with the correct parameters, but is posible to do the reverse, I mean get a .dds file and convert to a .nhtex "switch swizzle" file?

Thanks.

Best Regards

Rafa
Post Reply