Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe

PS2 Texture Swizzling?

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 804 times

PS2 Texture Swizzling?

Post 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
Click the thanks button if I helped!
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4300
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1152 times
Been thanked: 3938 times

Re: PS2 Texture Swizzling?

Post 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
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 804 times

Re: PS2 Texture Swizzling?

Post 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.
Click the thanks button if I helped!
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4300
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1152 times
Been thanked: 3938 times

Re: PS2 Texture Swizzling?

Post by shakotay2 »

Use Mr.Mouse's EAGT tool to exchange the palette ("Convert PS2 EA palette"):
b2_comp.JPG
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4300
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1152 times
Been thanked: 3938 times

Re: PS2 Texture Swizzling?

Post by shakotay2 »

working with your first sample, too:
b5.tr8sgl-EAGTout.JPG
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Gh0stBlade
Moderator
Posts: 719
Joined: Mon Jul 05, 2010 8:55 pm
Has thanked: 20 times
Been thanked: 804 times

Re: PS2 Texture Swizzling?

Post 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.
Click the thanks button if I helped!
Post Reply