[PS2] Help with RAW Texture Format

Textures, recreate headers, conversions, algorithms and parsing of image files
BL4CK0UT
Posts: 36
Joined: Wed Jun 15, 2016 4:17 pm

[PS2] Help with RAW Texture Format

Post by BL4CK0UT »

Wassup! So, i have finally got the decompressed textures from RACJIN Naruto Uzumaki Chronicles 2, now i need help to extract them, i'm pretty sure that it is a raw format, i can see a bit with TextureFinder:
Image
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: [PS2] Help with RAW Texture Format

Post by Allen »

Here is a Noesis plugin that supports reading your samples.
This format is not simple, it is a collection of pictures, a picture can be divided into many small pictures. Due to the confusing data, this script only supports reading large pictures. :)

*Edit*: Fixed 4bpp image height problems.
Last edited by Allen on Sat Nov 20, 2021 4:17 pm, edited 1 time in total.
BL4CK0UT
Posts: 36
Joined: Wed Jun 15, 2016 4:17 pm

Re: [PS2] Help with RAW Texture Format

Post by BL4CK0UT »

Allen wrote:Here is a Noesis plugin that supports reading your samples.
This format is not simple, it is a collection of pictures, a picture can be divided into many small pictures. Due to the confusing data, this script only supports reading large pictures. :)


Hello, sorry to bother after months, but could you help us out on upgrading that .RAW script for Naruto uzumaki chronicles?

https://discord.gg/Y2rFRJq
WilliamVaz
Posts: 25
Joined: Wed Feb 15, 2017 4:29 pm

Re: [PS2] Help with RAW Texture Format

Post by WilliamVaz »

Allen wrote:Here is a Noesis plugin that supports reading your samples.
This format is not simple, it is a collection of pictures, a picture can be divided into many small pictures. Due to the confusing data, this script only supports reading large pictures. :)


Hi, could you help me?
Your script works with some files but not others...
It works perfectly with files that look like this:
Texture
Palette
Texture
Palette
Texture
Palette
..........................
BUT it doesn't work with files like this:
Texture
Palette
Texture
Texture
Texture
Texture
Texture
Texture
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: [PS2] Help with RAW Texture Format

Post by Allen »

Hi, You can upload some samples.
WilliamVaz
Posts: 25
Joined: Wed Feb 15, 2017 4:29 pm

Re: [PS2] Help with RAW Texture Format

Post by WilliamVaz »

Allen wrote:Hi, You can upload some samples.

Here: It is a Japanese font file (4bpp)
https://drive.google.com/file/d/1TnOVWlvfXj4AvE6aWBHNg1QjKZ3TwkxK/view?usp=sharing


Image
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: [PS2] Help with RAW Texture Format

Post by Allen »

The font texture is divided into multiple images, using a common color palette.

The 4bpp swizzle algorithm of uzumaki chronicles is different from what I understand.
Other games can be solved by converting to 8bpp and then using the 8bpp unswizzle method, but the 4bpp of this game is different.
Only noesis can unswizzle.

Image
tex_NarutoUzumakiChronicles2_font.zip



I also fixed a small bug in the tex_raw.py script. The 4bpp image height problem.viewtopic.php?f=7&t=13414#p56173
WilliamVaz
Posts: 25
Joined: Wed Feb 15, 2017 4:29 pm

Re: [PS2] Help with RAW Texture Format

Post by WilliamVaz »

Allen wrote:The font texture is divided into multiple images, using a common color palette.

The 4bpp swizzle algorithm of uzumaki chronicles is different from what I understand.
Other games can be solved by converting to 8bpp and then using the 8bpp unswizzle method, but the 4bpp of this game is different.
Only noesis can unswizzle.

Image
tex_NarutoUzumakiChronicles2_font.zip


I also fixed a small bug in the tex_raw.py script. The 4bpp image height problem.viewtopic.php?f=7&t=13414#p56173


Thank you very much!!!