Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

THPS PS2 texture files (.tex.ps2) - help me convert it to tm2

Featured Replies

  • Author
  • Localization

BloodRaynare, posted Sun Mar 17, 2019 12:53 pm (45850)


Is it compressed or encrypted? Because when I try to view the textures via Console Texture Explorer none of them looks right.
  • Author
  • Localization

BloodRaynare, posted Wed Mar 27, 2019 2:14 am (46049)


Bump.
Has anybody figured it out?
  • Author
  • Localization

Acewell, posted Wed Mar 27, 2019 7:13 am (46067)


i took a look but could not get anything decent from the image data,
looks like the sample contains 7 paletted images though. :(
  • Author
  • Localization

episoder, posted Wed Mar 27, 2019 2:19 pm (46083)


yep. looks like ps2 block shuffle or swizzle. and 16 color (?) textures. i have no decoder for that. one of the weirdest formats this box has.
  • Author
  • Localization

BloodRaynare, posted Tue Dec 03, 2019 1:16 pm (52375)


Ok, some update after a quite long time. Turns out those .tex.ps2 files are using 7bpp (128 color palletes) format with 16-bit CLUT (2-bytes per color). I could just take one of the textures data and it's pallete then set the headers value accordingly to create a new TIM2 data out of it, but still need some help for unswizzle it correctly though.
  • Author
  • Localization

Allen, posted Sat Jan 18, 2020 6:33 am (53330)


The sample files are 8BPP palette format, 256 colors, and palette format 16BPP RGBA5551.
Pixel data is swizzled.

Put plugin to Noesis\plugins\python folder.

Edit: Updated support levels textures.
Edit 2: Updated support *.img.tex file.

tex_skater_thps_hawk_tex_ps2.zip

  • Author
  • Localization

BloodRaynare, posted Thu Apr 02, 2020 3:14 pm (55463)


I just noticed a reply to this thread after few months but thanks a bunch @Allen.

However, can you edit the scripts for extracting the levels textures as well?
Here's the samples

  • Author
  • Localization

Allen, posted Mon Apr 06, 2020 4:28 am (55573)


BloodRaynare wrote:
I just noticed a reply to this thread after few months but thanks a bunch @Allen.

However, can you edit the scripts for extracting the levels textures as well?
Here's the samples
bo.tex.rar
ca.tex.rar

Support for them has been updated. viewtopic.php?f=7&t=11052&p=55573#p53330
  • Author
  • Localization

BloodRaynare, posted Mon Apr 06, 2020 7:18 am (55575)


Allen wrote:
BloodRaynare wrote:
I just noticed a reply to this thread after few months but thanks a bunch @Allen.

However, can you edit the scripts for extracting the levels textures as well?
Here's the samples
bo.tex.rar
ca.tex.rar

Support for them has been updated. viewtopic.php?f=7&t=11052&p=55573#p53330


Thanks a bunch now the levels texture packs are extractable, though some texture still unswizzled incorrectly but maybe because some of the texture using unorthodox swizzle pattern. Like this single .img.ps2 texture files i put here as a example:

As you can see from the attachment files above, the swizzle pattern is kinda weird.
  • Author
  • Localization

JackTheRipper, posted Wed Jun 01, 2022 11:39 pm (71795)


One from some other neversoft titles don't work as expected.
  • Author
  • Localization

BloodRaynare, posted Thu Jun 02, 2022 2:15 am (71797)


JackTheRipper wrote:
One from some other neversoft titles don't work as expected.


These are the newer variants of the PS2 IMG format, first used in American Wasteland or Guitar Hero III i think. You can try using GH3 img tools for this one (if you managed to find it), though I can't say about reinserting the edited textures back.

EDIT: I forgot that the tools was in a really preliminary state, so some of the img will have incorrect colors when converted. Your best bet is using some raw texture viewer tools (like Kuriimu2), however you can only extract the textures (so no reinsert/reimport).

EDIT 2: Well, even the Kuriimu2 fails to display the palettes correctly (Already tried all the possible format), so IDK what this is.

EDIT 3: I tried it with TiledGGD, and it manages to display the textures correctly. Turns out the palettes were in "Tiled" mode, and currently Kuriimu2 lacks a feature to display the pallete in that mode. Though to be fair, TiledGGD also lacks the "unswizzling" feature to handle some swizzled PS2 textures, but luckily your example files uses none of that.
  • Author
  • Localization

Allen, posted Thu Jun 02, 2022 1:56 pm (71801)


JackTheRipper wrote:
One from some other neversoft titles don't work as expected.

Here is a noesis python script.

tex_Neversoft_img_ps2.zip

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.