Page 1 of 1
The Last of Us Remastered - Texture extractor?
Posted: Sun Jan 29, 2017 9:02 am
by luxox18
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 !

Re: The Last of Us Remastered - Texture extractor?
Posted: Mon Jan 30, 2017 5:27 am
by trexjones
You mad genius, Luxox! Hopefully someone can help you out with these!
Re: The Last of Us Remastered - Texture extractor?
Posted: Mon Jan 30, 2017 7:52 am
by luxox18
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.
Re: The Last of Us Remastered - Texture extractor?
Posted: Tue Jan 31, 2017 9:59 am
by Acewell
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

Re: The Last of Us Remastered - Texture extractor?
Posted: Tue Jan 31, 2017 3:52 pm
by akderebur
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 :
Some textures from the common file :
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.
Re: The Last of Us Remastered - Texture extractor?
Posted: Tue Jan 31, 2017 4:36 pm
by michalss
is there any way to export models as well ?
Re: The Last of Us Remastered - Texture extractor?
Posted: Wed Feb 01, 2017 12:52 am
by luxox18
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
Re: The Last of Us Remastered - Texture extractor?
Posted: Sun Feb 19, 2017 2:25 am
by volfin
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.
Re: The Last of Us Remastered - Texture extractor?
Posted: Mon Feb 20, 2017 11:03 pm
by luxox18
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
Re: The Last of Us Remastered - Texture extractor?
Posted: Mon Mar 27, 2017 8:39 am
by trexjones
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
Re: The Last of Us Remastered - Texture extractor?
Posted: Mon Mar 27, 2017 11:26 am
by akderebur
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?
Re: The Last of Us Remastered - Texture extractor?
Posted: Tue Mar 28, 2017 6:43 am
by luxox18
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

Re: The Last of Us Remastered - Texture extractor?
Posted: Tue Mar 28, 2017 11:47 am
by trexjones
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!

Sorry for the hassle!
Re: The Last of Us Remastered - Texture extractor?
Posted: Fri Mar 31, 2017 8:49 pm
by Xeeynamo
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.
Re: The Last of Us Remastered - Texture extractor?
Posted: Sat Feb 10, 2018 3:20 pm
by smasher248
Is there no way to repack them so I can have modified textures like the ps3 version?