Kingdom Hearts HD Models [PS4]

Post questions about game models here, or help out others!
akderebur
ultra-veteran
ultra-veteran
Posts: 341
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 47 times
Been thanked: 306 times

Kingdom Hearts HD Models [PS4]

Post by akderebur » Thu Apr 26, 2018 10:51 pm

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.

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2631
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 648 times
Been thanked: 1352 times

Re: Kingdom Hearts HD Models [PS4]

Post by shakotay2 » Fri Apr 27, 2018 9:26 am

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:
modsamp4.jpg
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

akderebur
ultra-veteran
ultra-veteran
Posts: 341
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 47 times
Been thanked: 306 times

Re: Kingdom Hearts HD Models [PS4]

Post by akderebur » Fri Apr 27, 2018 10:02 am

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.

akderebur
ultra-veteran
ultra-veteran
Posts: 341
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 47 times
Been thanked: 306 times

Re: Kingdom Hearts HD Models [PS4]

Post by akderebur » Tue May 01, 2018 1:00 am

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.

onelight
ultra-n00b
Posts: 6
Joined: Thu Aug 31, 2017 5:05 pm

Re: Kingdom Hearts HD Models [PS4]

Post by onelight » Sun Jun 17, 2018 6:29 am

I just got Kingdom Hearts HD 1.5+2.5
How did you extract psacr files, my psarc.exe not working

akderebur
ultra-veteran
ultra-veteran
Posts: 341
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 47 times
Been thanked: 306 times

Re: Kingdom Hearts HD Models [PS4]

Post by akderebur » Sun Jun 17, 2018 10:15 am

onelight wrote:my psarc.exe not working
Use this quickbms script : http://aluigi.org/bms/brink.bms

onelight
ultra-n00b
Posts: 6
Joined: Thu Aug 31, 2017 5:05 pm

Re: Kingdom Hearts HD Models [PS4]

Post by onelight » Sun Jun 17, 2018 11:34 am

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.

akderebur
ultra-veteran
ultra-veteran
Posts: 341
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 47 times
Been thanked: 306 times

Re: Kingdom Hearts HD Models [PS4]

Post by akderebur » Sun Jun 17, 2018 12:08 pm

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.

onelight
ultra-n00b
Posts: 6
Joined: Thu Aug 31, 2017 5:05 pm

Re: Kingdom Hearts HD Models [PS4]

Post by onelight » Sat Jun 30, 2018 8:18 am

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
tt.PNG
You do not have the required permissions to view the files attached to this post.

akderebur
ultra-veteran
ultra-veteran
Posts: 341
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 47 times
Been thanked: 306 times

Re: Kingdom Hearts HD Models [PS4]

Post by akderebur » Sat Jun 30, 2018 9:02 am

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.

User avatar
Tosyk
double-veteran
double-veteran
Posts: 936
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 226 times
Been thanked: 107 times
Contact:

Re: Kingdom Hearts HD Models [PS4]

Post by Tosyk » Mon Jul 02, 2018 8:54 am

akderebur, is any progress on the tool?
Thank you for all you do here
my blog | my forum

akderebur
ultra-veteran
ultra-veteran
Posts: 341
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 47 times
Been thanked: 306 times

Re: Kingdom Hearts HD Models [PS4]

Post by akderebur » Mon Jul 02, 2018 10:58 am

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
You do not have the required permissions to view the files attached to this post.

User avatar
o0Crofty0o
mega-veteran
mega-veteran
Posts: 161
Joined: Wed Nov 17, 2010 2:57 pm
Location: Germany
Has thanked: 138 times
Been thanked: 50 times

Re: Kingdom Hearts HD Models [PS4]

Post by o0Crofty0o » Mon Jul 02, 2018 4:20 pm

Nice work here akderebur :)
Just for the future, Noesis supports .psarc files (also from PS4 games) with names extraction, should make it easier.

akderebur
ultra-veteran
ultra-veteran
Posts: 341
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 47 times
Been thanked: 306 times

Re: Kingdom Hearts HD Models [PS4]

Post by akderebur » Mon Jul 02, 2018 5:40 pm

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.

User avatar
Tosyk
double-veteran
double-veteran
Posts: 936
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 226 times
Been thanked: 107 times
Contact:

Re: Kingdom Hearts HD Models [PS4]

Post by Tosyk » Wed Jul 04, 2018 8:00 am

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

Post Reply