Raw texture previewer/converter

Textures, recreate headers, conversions, algorithms and parsing of image files
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Raw texture previewer/converter

Post by id-daemon »

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.

Unlike texturefinder, it supports all image types and immediately converts to working DDS and PNG.
Supports PS3, PS4 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
Last edited by id-daemon on Sat Nov 05, 2022 2:57 pm, edited 4 times in total.
lupus
Posts: 36
Joined: Sun Dec 03, 2017 7:52 am

Re: Raw texture previewer/converter

Post by lupus »

Chrome blocking downloading this file
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

then dont use chrome
Nameless32
Posts: 35
Joined: Sun Dec 21, 2014 7:43 pm

Re: Raw texture previewer/converter

Post by Nameless32 »

Can you add a suport to " insert raw " ??

a litttle option to reinsert the " dds " binaries into source.

anyway thanks o/
EdwardZ
Posts: 15
Joined: Wed May 03, 2017 9:35 pm

Re: Raw texture previewer/converter

Post by EdwardZ »

Hey can anyone help me with this RAW files right here? i'm like almost 3 Years trying to mod this game but it's been a nightmare .. i tried the tool but i got this : https://imgur.com/a/mY6WT

if someone can help i will be very Grateful ...here some samples
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

These files are not textures. One folder is PS2 sounds, another one is something else
EdwardZ
Posts: 15
Joined: Wed May 03, 2017 9:35 pm

Re: Raw texture previewer/converter

Post by EdwardZ »

man ...the second can be models ? cause this should be the only file that the texture must be .... anyway to open then ?
EdwardZ
Posts: 15
Joined: Wed May 03, 2017 9:35 pm

Re: Raw texture previewer/converter

Post by EdwardZ »

https://imgur.com/a/6E2iP The "CFC.DIG" it's the biggest file of the game , and the file that the RAW files came from ..
GaaraChronicles
Posts: 2
Joined: Sun May 14, 2017 4:22 am

Naruto textures help

Post by GaaraChronicles »

My friend and I have been trying to extract RAW files for Naruto Uzumaki Chronicles 1 and 2. For over 2 years we have been working hard to extract and open the files but it's just so difficult and would like help on the task. Here is a link to the original topic. Thanks in advance

http://zenhax.com/viewtopic.php?f=7&t=7 ... 124#p32124
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

This has nothing to do with RAW textures. Try and find someone who worked with this engine before.
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: Raw texture previewer/converter

Post by happydance »

thanks for the very nice tool.

BTW can swizzled textures be incorporated within the app?
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

New version!
Now supports PS3, PS4 and Nintendo Switch swizzle types.
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: Raw texture previewer/converter

Post by happydance »

hello, whats the command for bgra8888 or argb8888?
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Raw texture previewer/converter

Post by id-daemon »

<format> = ... decimal DX10 code

you can find DX10 codes at microsoft
Rainx
Posts: 21
Joined: Sat Feb 24, 2018 7:24 am

Re: Raw texture previewer/converter

Post by Rainx »

id-daemon, can you add support for PSV swizzle?
TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

Re: Raw texture previewer/converter

Post by TheUkrainianBard »

It would be nice if you exposed unswizzling options for CLI.
blizzardy
Posts: 1
Joined: Fri Aug 23, 2019 9:48 pm

Re: Raw texture previewer/converter

Post by blizzardy »

Any plans to support Wii U swizzle?

I think there is some from this repo: https://github.com/aboood40091/GTX-Extractor
Sadly I can't convert the .tex to .gtx I provided in the attachment :(
ChrisX930
Posts: 35
Joined: Wed Feb 24, 2016 11:08 am

Re: Raw texture previewer/converter

Post by ChrisX930 »

I'm currently stuck.
I want to extract some content from the new Bravely Default II Demo (Nintendo Switch).

I've extracted the model with uModel, which worked pretty fine.
But the textures are swizzled :/

Image

Any Idea how to "unswizzle" them?

I've uploaded a few samples and packed them into a zip.
http://sp.cellenseres.dev/downloads/BravelyDefaultII/Textures.zip

maybe someone could help me out with this?
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Raw texture previewer/converter

Post by spiritovod »

ChrisX930 wrote:Any Idea how to "unswizzle" them?

Yes, use "Switch" as platform in umodel settings. It's kind of obvious.
ChrisX930
Posts: 35
Joined: Wed Feb 24, 2016 11:08 am

Re: Raw texture previewer/converter

Post by ChrisX930 »

spiritovod wrote:
ChrisX930 wrote:Any Idea how to "unswizzle" them?

Yes, use "Switch" as platform in umodel settings. It's kind of obvious.


if it were that easy, I'd already done this.
The result is still a swizzled dds.
Also the Texture doesn't even show up in the Tool.

Image