XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Oct 21, 2017 8:31 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: The Last of Us Remastered - Texture extractor?
PostPosted: Sun Jan 29, 2017 9:02 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 29, 2011 9:18 pm
Posts: 176
Has thanked: 54 times
Have thanks: 39 times














You can make the ads go away by registering

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.

Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Mon Jan 30, 2017 5:27 am 
Offline
veteran

Joined: Mon Oct 13, 2014 6:54 am
Posts: 106
Has thanked: 52 times
Have thanks: 6 times
You mad genius, Luxox! Hopefully someone can help you out with these!


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Mon Jan 30, 2017 7:52 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 29, 2011 9:18 pm
Posts: 176
Has thanked: 54 times
Have thanks: 39 times
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.


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Tue Jan 31, 2017 9:59 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 893
Has thanked: 1879 times
Have thanks: 475 times
Quote:
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:

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Tue Jan 31, 2017 3:52 pm 
Offline
beginner

Joined: Fri Jul 08, 2011 10:36 am
Posts: 31
Has thanked: 0 time
Have thanks: 37 times
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.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Last edited by akderebur on Thu Mar 09, 2017 2:44 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Tue Jan 31, 2017 4:36 pm 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 935
Has thanked: 10 times
Have thanks: 120 times
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/


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Wed Feb 01, 2017 12:52 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 29, 2011 9:18 pm
Posts: 176
Has thanked: 54 times
Have thanks: 39 times
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


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Sun Feb 19, 2017 2:25 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Sun Jul 06, 2014 6:30 am
Posts: 344
Has thanked: 72 times
Have thanks: 219 times
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.


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Mon Feb 20, 2017 11:03 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 29, 2011 9:18 pm
Posts: 176
Has thanked: 54 times
Have thanks: 39 times
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


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Mon Mar 27, 2017 8:39 am 
Offline
veteran

Joined: Mon Oct 13, 2014 6:54 am
Posts: 106
Has thanked: 52 times
Have thanks: 6 times
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


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Mon Mar 27, 2017 11:26 am 
Offline
beginner

Joined: Fri Jul 08, 2011 10:36 am
Posts: 31
Has thanked: 0 time
Have thanks: 37 times
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?


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Tue Mar 28, 2017 6:43 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 29, 2011 9:18 pm
Posts: 176
Has thanked: 54 times
Have thanks: 39 times
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 :)


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Tue Mar 28, 2017 11:47 am 
Offline
veteran

Joined: Mon Oct 13, 2014 6:54 am
Posts: 106
Has thanked: 52 times
Have thanks: 6 times
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!


Top
 Profile  
 
 Post subject: Re: The Last of Us Remastered - Texture extractor?
PostPosted: Fri Mar 31, 2017 8:49 pm 
Offline
ultra-n00b
User avatar

Joined: Fri Jan 07, 2011 11:25 am
Posts: 8
Has thanked: 1 time
Have thanks: 2 times
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: PartyPizza22 and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group