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

Raw texture previewer/converter

Post by daemon1 »

Since I was finally tired of making DDS headers manually every time I need to check images from researched games, I made this tool. It needs microsoft's texconv to work.

It supports all DirectX image types and immediately converts to working DDS and PNG.
Supports PS3, PS4, PS5 and Nintendo Switch swizzle types.

UI version usage:
- drag&drop raw image onto ANY place on a window. This will try and detect image dimensions based on file size, make DDS header, convert to PNG and show it.
- If you don't like the result, change some settings then press SPACE (or click big button).

Command line version usage:
RawtexCmd <filename> [format] [offset] [width] [height]
<format> = BC1...BC7,BC5U,BC5S,DXT1,DXT3,DXT5 or decimal DX10 code
if no format specified, supposed DXT1
<width>, <height> - decimal
if no size specified, its guessed, like in UI tool
<offset> - hex

Examples:
RawtexCmd tex1.raw
RawtexCmd tex1.raw bc7
RawtexCmd tex1.raw bc7 10CF0
RawtexCmd tex1.raw bc7 10CF0 1024 1024

Image
You do not have the required permissions to view the files attached to this post.
Last edited by daemon1 on Sun Jul 09, 2023 7:32 am, edited 8 times in total.
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 »

All new command line version! You can use it to run batches on thousands of files.
User avatar
hi im daft
ultra-n00b
Posts: 2
Joined: Mon May 21, 2018 12:13 am
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by hi im daft »

This may sound dumb, but when previewing a file with this tool, does it change the DXT selection on the left to show what format the image itself is using? Or do you have to manually adjust that yourself? I'm actually trying to possibly use this tool to read what type of DXT file some images I already have are, so I know what to convert modified versions back into.
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 »

there is NO WAY to detect DXT format, so you have to choose yourself
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 »

New version!
Now supports PS3, PS4 and Nintendo Switch swizzle types.
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 »

This is incredibly useful! Any chance that the swizzling options can be added to the command line version too?
game456a
ultra-n00b
Posts: 3
Joined: Wed Jul 04, 2018 7:40 am
Has thanked: 3 times
Been thanked: 3 times

Re: Raw texture previewer/converter

Post by game456a »

Image
i have this problem when use it to open MHXX(MHGU) switch. Can you fix this?
game456a
ultra-n00b
Posts: 3
Joined: Wed Jul 04, 2018 7:40 am
Has thanked: 3 times
Been thanked: 3 times

Re: Raw texture previewer/converter

Post by game456a »

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 »

game456a wrote:i have this problem when use it to open MHXX(MHGU) switch. Can you fix this?
There's nothing to fix, everything is working perfectly. Use the field with bold letters "OFFSET"
And remove that huge screenshot, its really annoying

Image
Demonslayerx8
veteran
Posts: 99
Joined: Mon Jul 06, 2015 12:48 am
Has thanked: 26 times
Been thanked: 24 times

Re: Raw texture previewer/converter

Post by Demonslayerx8 »

does this work with PS4 texture files that have all the info located at the footer?
game456a
ultra-n00b
Posts: 3
Joined: Wed Jul 04, 2018 7:40 am
Has thanked: 3 times
Been thanked: 3 times

Re: Raw texture previewer/converter

Post by game456a »

daemon1 wrote:
game456a wrote:i have this problem when use it to open MHXX(MHGU) switch. Can you fix this?
There's nothing to fix, everything is working perfectly. Use the field with bold letters "OFFSET"
And remove that huge screenshot, its really annoying

Image
OMG thank you so much
jzrh1060
ultra-n00b
Posts: 1
Joined: Wed Jul 11, 2018 5:49 am
Has thanked: 1 time
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by jzrh1060 »

This is awesome! Could you please add an option for setting texture swizzling type through the Command Line? It'd be incredibly helpful for converting all the textures in an entire game's folders all in one go.

Thanks (and thanks for making this tool in the first place).
DeathChaos
ultra-n00b
Posts: 8
Joined: Wed Nov 01, 2017 7:27 am
Been thanked: 2 times

Re: Raw texture previewer/converter

Post by DeathChaos »

I tried this with a PS4 game, Final Fantasy Dissidia NT, textures seem to be swizzled somehow, however it seems to not be the standard PS4 swizzling?

Here are 2 simple sample files, the Square Enix logo and the Koei Tecmo logos shown when booting the game.

https://cdn.discordapp.com/attachments/ ... /logo_sqex
https://cdn.discordapp.com/attachments/ ... 84/logo_kt

Any ideas on what this could be?
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 »

its standard PS4 swizzling, just set correct size, 1920x1080, the size is in the file
DeathChaos
ultra-n00b
Posts: 8
Joined: Wed Nov 01, 2017 7:27 am
Been thanked: 2 times

Re: Raw texture previewer/converter

Post by DeathChaos »

Ah you were correct, thanks!
Post Reply