READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

The Last of Us Remastered - Texture extractor?

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 41 times

The Last of Us Remastered - Texture extractor?

Post by luxox18 » Sun Jan 29, 2017 9:02 am

Hello!

finally I have a decrypted backup of TLOU Remastered and right now I want to extract some textures.

the problem is the current tools available for extract textures from ps3 versions doesn't work in the ps4 version and is very difficult to locate a certain texture using texturefinder because everything is swizzled.

the swizzled method is not a problem, I solved the problem thanks to m0xf but I want to extract all textures classified and with respective names like the ps3 versions.

there are some big files that contains all textures of a respective stage in game. This files only contain textures with the same structure that the following samples.

so, here are some samples with models if anyone want to take a look, maybe someone can create a tool or can explain me the logic about how to find a start address of a specific texture.

http://www.mediafire.com/file/53w3n68di ... ctor50.rar

same files from ps3 for compare.

http://www.mediafire.com/file/64hck7cgj ... el-ps3.rar

here is a big file

http://www.mediafire.com/file/c5jbys1ak ... -tstrm.rar

NOTE: YES, ALL MODELS ARE DECOMPRESSED ! :D
Last edited by luxox18 on Mon Jan 30, 2017 9:34 am, edited 1 time in total.

trexjones
veteran
Posts: 108
Joined: Mon Oct 13, 2014 6:54 am
Has thanked: 52 times
Been thanked: 6 times

Re: The Last of Us Remastered - Texture extractor?

Post by trexjones » Mon Jan 30, 2017 5:27 am

You mad genius, Luxox! Hopefully someone can help you out with these!

luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 41 times

Re: The Last of Us Remastered - Texture extractor?

Post by luxox18 » Mon Jan 30, 2017 7:52 am

trexjones wrote:You mad genius, Luxox! Hopefully someone can help you out with these!
thanks, I hope too because I can't understand the logic in files for locate a texture.

User avatar
Acewell
VIP member
VIP member
Posts: 1263
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2392 times
Been thanked: 730 times

Re: The Last of Us Remastered - Texture extractor?

Post by Acewell » Tue Jan 31, 2017 9:59 am

the problem is the current tools available for extract textures from ps3 versions doesn't work in the ps4 version
what tools you use for the PS3 version? is there source available for it?

in the joel-head-destroyed-tstrm.pak sample it look like texture or pallete data might start at 0xbcde0
near "RAW_DATA" and this is also true in the PS3 sample of almost the same name at 0x4dac0.
these files are a mess in my eyes, you can see the pattern changes which might indicate a new
texture but i don't see an obvious way to split it to files :?
maybe aluigi could have better luck :scaredy:

akderebur
ultra-veteran
ultra-veteran
Posts: 396
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 50 times
Been thanked: 395 times

Re: The Last of Us Remastered - Texture extractor?

Post by akderebur » Tue Jan 31, 2017 3:52 pm

Hi,

after being contacted by luxox, I updated my last of us ps3 texture editor to support ps4 files. It is incomplete but I still wanted to share it.

Preview is only supported for DXT1 compressed textures but you can still export other textures to view them with gimp/photoshop etc.

There are 4 export options :

1) DDS Export :
Probably the best option for easy exporting. It tries to find the compression type of the texture data, uses the unswizzle algortihm (by m0xf) on the data and exports it with a proper header. After that you have to open the exported images with photoshop/gimp. The problem is that the program sometimes finds the compression type wrong and the resulting image might be garbage. I am trying to improve this. Still it is the easiest method.

2) Raw Data :
Just exports the raw texture data from the file. You need to add the header yourself and unswizzle the data.

3) Raw Data + Header
Raw data with a header automatically added by the program. Still the header might be wrong and you need to unswizzle the data yourself.

4) PNG
Only works for DXT1 compressed textures. It is basically the full scale version of the preview image.

Also I added a no preview version of the tool to load bigger files faster. It unswizzles the data during export and only for dds export. It should be better if you are interested in exporting raw data.

Program Screenshot :
Image

Some textures from the common file :
Image

Download :

Huge thanks to luxox18 and m0xf.

Edit : I removed the preview version, it makes loading times longer and not really useful. Just select the dds export and open exported files with gimp.
You do not have the required permissions to view the files attached to this post.
Last edited by akderebur on Thu Mar 09, 2017 2:44 pm, edited 2 times in total.

michalss
Moderator
Posts: 941
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 134 times

Re: The Last of Us Remastered - Texture extractor?

Post by michalss » Tue Jan 31, 2017 4:36 pm

is there any way to export models as well ?
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/

luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 41 times

Re: The Last of Us Remastered - Texture extractor?

Post by luxox18 » Wed Feb 01, 2017 12:52 am

michalss wrote:is there any way to export models as well ?
for the moment only with hex2obj

http://www.mediafire.com/file/z5zl54f5y ... ctor50.rar

User avatar
volfin
ultra-veteran
ultra-veteran
Posts: 439
Joined: Sun Jul 06, 2014 6:30 am
Has thanked: 105 times
Been thanked: 291 times

Re: The Last of Us Remastered - Texture extractor?

Post by volfin » Sun Feb 19, 2017 2:25 am

Can you explain how you decrypted the PS4 game? Because so far what I see is nobody has figured out how to do that for the PFS blocks, only the RSA blocks.

luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 41 times

Re: The Last of Us Remastered - Texture extractor?

Post by luxox18 » Mon Feb 20, 2017 11:03 pm

volfin wrote:Can you explain how you decrypted the PS4 game? Because so far what I see is nobody has figured out how to do that for the PFS blocks, only the RSA blocks.

check your pm

trexjones
veteran
Posts: 108
Joined: Mon Oct 13, 2014 6:54 am
Has thanked: 52 times
Been thanked: 6 times

Re: The Last of Us Remastered - Texture extractor?

Post by trexjones » Mon Mar 27, 2017 8:39 am

I'm having trouble opening up the normals exporting as DDS files, and tried both gimp and photoshop. Is there something I'm missing or a specific version or plug in I should have? The other textures work great, just these ones are tripping me up a bit. Anyone able to take a look at these?

https://mega.nz/#!DYZgTLKK!X-dsOXlM9oXs ... lf4hLtJ-8Y
https://mega.nz/#!iUBmDRBI!_6GFcOhndtLl ... eEpn66nBRs

akderebur
ultra-veteran
ultra-veteran
Posts: 396
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 50 times
Been thanked: 395 times

Re: The Last of Us Remastered - Texture extractor?

Post by akderebur » Mon Mar 27, 2017 11:26 am

trexjones wrote:I'm having trouble opening up the normals exporting as DDS files, and tried both gimp and photoshop
Are you using the latest version? I updated the program on 9th of March.

If yes, from what file did you extract the textures?

luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 41 times

Re: The Last of Us Remastered - Texture extractor?

Post by luxox18 » Tue Mar 28, 2017 6:43 am

trexjones wrote:I'm having trouble opening up the normals exporting as DDS files
in this case use the latest version of the tool, but in the future if you have problems with BC7 or BC5 textures use noesis :)

trexjones
veteran
Posts: 108
Joined: Mon Oct 13, 2014 6:54 am
Has thanked: 52 times
Been thanked: 6 times

Re: The Last of Us Remastered - Texture extractor?

Post by trexjones » Tue Mar 28, 2017 11:47 am

Just sat down with it then and it works perfectly! Stupidly I did not remember to put the new texture tool in until you guys mentioned it! :P Sorry for the hassle!

User avatar
Xeeynamo
ultra-n00b
Posts: 8
Joined: Fri Jan 07, 2011 11:25 am
Has thanked: 1 time
Been thanked: 2 times

Re: The Last of Us Remastered - Texture extractor?

Post by Xeeynamo » Fri Mar 31, 2017 8:49 pm

luxox18 wrote:
volfin wrote:Can you explain how you decrypted the PS4 game? Because so far what I see is nobody has figured out how to do that for the PFS blocks, only the RSA blocks.

check your pm
I would like to know how to do that too.

smasher248
n00b
Posts: 17
Joined: Fri Aug 14, 2015 2:52 am
Has thanked: 1 time

Re: The Last of Us Remastered - Texture extractor?

Post by smasher248 » Sat Feb 10, 2018 3:20 pm

Is there no way to repack them so I can have modified textures like the ps3 version?

Post Reply