Page 1 of 1

PS2 Texture Swizzling?

Posted: Fri Jan 02, 2015 12:48 am
by Gh0stBlade
I've been trying to unswizzle some PS2 textures. Using Noesis' implemented "rapi.imageUntwiddlePS2" is somewhat useful. It seems to unswizzle the data fine but there are some problems with the image.

Before Swizzle:

Image

After Swizzle

Image

What could be wrong with this? The images are 8-bit with a palette so perhaps the palette needs swizzling/reordering?

Sample: Download

Re: PS2 Texture Swizzling?

Posted: Sat Jan 03, 2015 2:25 pm
by shakotay2
You don't have the original pic, do you?
If so you could try this trick from Mr.Mouse:
I then made a screenshot and used the original testpicture as overlay in Photoshop and set the blending option to "Difference".
here viewtopic.php?f=18&t=3894&hilit=eagt&start=15

(Didn't read the whole thread, Mr.Mouse wrote something about primary colors,
so I made a simple rgb entry reducing test which didn't reveal anything:)
b5.tr8sgl-newPaletteout-7F_3F.jpg

Re: PS2 Texture Swizzling?

Posted: Sat Jan 03, 2015 7:12 pm
by Gh0stBlade
Well I have the original of a smaller sample which I've uploaded here:

BGR Ver.
TGA Ver.

This was dumped from PCSX2. Some of the image data is just not how it should be.

B2.SGL
E1 4D 99 18
2A 0E 06 80 72 52 3C 80 42 1E 11 80 5A 2E 1C 80

B2.TGA
2A 0E 06 80 29 0E 07 80 2E 0E 08 80 2E 12 09 80

So yeah it looks like and issue with the palette or the swizzle algorithm must have been slightly altered.

Re: PS2 Texture Swizzling?

Posted: Sat Jan 03, 2015 8:36 pm
by shakotay2
Use Mr.Mouse's EAGT tool to exchange the palette ("Convert PS2 EA palette"):
b2_comp.JPG

Re: PS2 Texture Swizzling?

Posted: Sat Jan 03, 2015 9:00 pm
by shakotay2
working with your first sample, too:
b5.tr8sgl-EAGTout.JPG

Re: PS2 Texture Swizzling?

Posted: Sat Jan 03, 2015 10:07 pm
by Gh0stBlade
shakotay2 wrote:working with your first sample, too:
b5.tr8sgl-EAGTout.JPG
Thank you, I need to get this working in Noesis so I can get the textures auto loaded onto some PS2 meshes. Since there's no source provided I'll just drop Mr.Mouse a PM asking how it's done.