XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Sep 22, 2018 4:07 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Kingdom Hearts HD Models [PS4]
PostPosted: Thu Apr 26, 2018 10:51 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 230
Has thanked: 34 times
Have thanks: 192 times
Hello,

I recently got the game files of Kingdom Hearts HD on ps4, and I am looking for the model data. I wasn't quite sure where to start, as the extracted files don't have proper filenames or extensions. After looking at the files, I have found out some which seem to have index/vertex data.

Here are some samples : http://www.mediafire.com/file/1phso0fpk ... amples.rar

At first glance it looks like there are indices near the beginning, and a bit after that is a set of floats (possibly vertex data). Still there are lots of repeating indices which doesn't make much sense, so I might be mistaken. I would appreciate it if you can take a look.

Thanks for your help.


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Fri Apr 27, 2018 9:26 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2380
Location: Nexus, searching for Jim Kirk
Has thanked: 558 times
Have thanks: 1240 times
Hello, I'd suggest to start with vertices here, since as long as you don't get a decent point cloud even perfect face indices wouldn't help you.

I tried multiples of four for the FVF size (12, 16, ...) to no avail:


Attachments:


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


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Fri Apr 27, 2018 10:02 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 230
Has thanked: 34 times
Have thanks: 192 times
shakotay2 wrote:
I'd suggest to start with vertices here, since as long as you don't get a decent point cloud even perfect face indices wouldn't help you.

Thanks for the tip shakotay, I will focus on the vertices. I also still have doubts if these are really model files, so I will check out some other files first.


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Tue May 01, 2018 1:00 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 230
Has thanked: 34 times
Have thanks: 192 times
An update on this. Those were indeed not the model files. Also there are no indices for the meshes, vertices are already provided in order.

I decided to switch to KH1 files and noticed the "MOBJ" header in some files. The model format is almost identical to KH1 on ps2. So revelation's noesis plugin code is still viable. I just noticed a small difference for bone matrices, that's all.

In the end I was able to load quite a few models, by re-implementing the plugin code. Here is Yuffie for example.

Image

There are out of place vertices for some of the characters. Either there are some small changes in the format that I didn't notice or there is a slight problem with my implementation. Still it is sufficient for me atm.

The character models don't seem really impressing though. There is little to no improvement on the models/textures compared to the ps2 version. I will still take a look at the KH2 models, but I don't think I will see much improvement there either.


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Sun Jun 17, 2018 6:29 am 
Offline
ultra-n00b

Joined: Thu Aug 31, 2017 5:05 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
I just got Kingdom Hearts HD 1.5+2.5
How did you extract psacr files, my psarc.exe not working


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Sun Jun 17, 2018 10:15 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 230
Has thanked: 34 times
Have thanks: 192 times
onelight wrote:
my psarc.exe not working

Use this quickbms script : http://aluigi.org/bms/brink.bms


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Sun Jun 17, 2018 11:34 am 
Offline
ultra-n00b

Joined: Thu Aug 31, 2017 5:05 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
akderebur wrote:
onelight wrote:
my psarc.exe not working

Use this quickbms script : http://aluigi.org/bms/brink.bms

Think you, brink.bms working though files don't have proper filenames or extensions.


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Sun Jun 17, 2018 12:08 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 230
Has thanked: 34 times
Have thanks: 192 times
onelight wrote:
files don't have proper filenames or extensions.

Still the names don't seem to be all that random. It looks like files have hashes as names. For KH2 the extracted file with the name "00000000000000000000000000000000" contains the proper names for all of the files. There is also another file called "KH2.IDX" which seems to contain some offsets, and possibly hashes. I think you might be able to get proper names using both of those files.

I only wanted to get the models, so I ended up writing a program that bulk parses all the files and loads the ones that have model data. It worked out well for me, so I didn't bother with the file names.


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Sat Jun 30, 2018 8:18 am 
Offline
ultra-n00b

Joined: Thu Aug 31, 2017 5:05 pm
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
akderebur wrote:
onelight wrote:
files don't have proper filenames or extensions.

Still the names don't seem to be all that random. It looks like files have hashes as names. For KH2 the extracted file with the name "00000000000000000000000000000000" contains the proper names for all of the files. There is also another file called "KH2.IDX" which seems to contain some offsets, and possibly hashes. I think you might be able to get proper names using both of those files.

I only wanted to get the models, so I ended up writing a program that bulk parses all the files and loads the ones that have model data. It worked out well for me, so I didn't bother with the file names.

I finally found a worikng psarc.exe and get the files with right names.
BTW, do you have any idea how to modding this game, for exmaple, how to edit *.bar file


Attachments:


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



Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Sat Jun 30, 2018 9:02 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 230
Has thanked: 34 times
Have thanks: 192 times
File formats are almost identical to the ps2 version, at least the ones related to models. If you can find some info on ps2 modding, you can probably apply it to these files too.


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Mon Jul 02, 2018 8:54 am 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 925
Location: Russia, Siberia
Has thanked: 218 times
Have thanks: 104 times
akderebur, is any progress on the tool?

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Mon Jul 02, 2018 10:58 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 230
Has thanked: 34 times
Have thanks: 192 times
Tosyk wrote:
akderebur, is any progress on the tool?

I did make a tool for my personal use, but actually you don't need new tools to load these files. For KH2, after you unpack the psarc, you can use the bms script I attached to unpack the textures and the mdlx file from the model files. Finding which files are model related isn't easy without proper names, but if onelight shares the psarc program he mentioned, you can probably spot them easier. After you have the mdlx, you can just load it with Noesis, using the KH2 plugin for ps2.

Image

Of course the KH2 plugin doesn't use the new GNF textures, but it uses the lower quality ones (for ps2) inside the mdlx file. So I made a tool for myself to load the models faster and bit more conveniently. It is based on the ps2 model viewer khkh_xldMii, I just added support for the GNF textures. Also you don't need the bms script anymore. I might release it after I polish it a bit, but I don't think it is that necessary.

Image


Attachments:


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



Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Mon Jul 02, 2018 4:20 pm 
Offline
veteran
User avatar

Joined: Wed Nov 17, 2010 2:57 pm
Posts: 156
Location: Germany
Has thanked: 121 times
Have thanks: 48 times
Nice work here akderebur :)
Just for the future, Noesis supports .psarc files (also from PS4 games) with names extraction, should make it easier.


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Mon Jul 02, 2018 5:40 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Jul 08, 2011 10:36 am
Posts: 230
Has thanked: 34 times
Have thanks: 192 times
o0Crofty0o wrote:
Just for the future, Noesis supports .psarc files (also from PS4 games) with names extraction, should make it easier.

Didn't know that noesis is able to extract psarc archives. I will take note of that.


Top
 Profile  
 
 Post subject: Re: Kingdom Hearts HD Models [PS4]
PostPosted: Wed Jul 04, 2018 8:00 am 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 925
Location: Russia, Siberia
Has thanked: 218 times
Have thanks: 104 times
akderebur wrote:
Tosyk wrote:
akderebur, is any progress on the tool?

I did make a tool for my personal use ... I might release it after I polish it a bit, but I don't think it is that necessary.
thanks for the info, akderebur, I'll take a look at it when I get back home this evening. It' would be nice to have the better textures and the only way to get them is to use your tools as I understand - so please share it if possible :) thanks again

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: RandomTBush and 6 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