Page 1 of 3

Kingdom Hearts HD Models [PS4]

Posted: Thu Apr 26, 2018 10:51 pm
by akderebur
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.

Re: Kingdom Hearts HD Models [PS4]

Posted: Fri Apr 27, 2018 9:26 am
by shakotay2
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

Re: Kingdom Hearts HD Models [PS4]

Posted: Fri Apr 27, 2018 10:02 am
by akderebur
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.

Re: Kingdom Hearts HD Models [PS4]

Posted: Tue May 01, 2018 1:00 am
by akderebur
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.

Re: Kingdom Hearts HD Models [PS4]

Posted: Sun Jun 17, 2018 6:29 am
by onelight
I just got Kingdom Hearts HD 1.5+2.5
How did you extract psacr files, my psarc.exe not working

Re: Kingdom Hearts HD Models [PS4]

Posted: Sun Jun 17, 2018 10:15 am
by akderebur
onelight wrote:my psarc.exe not working
Use this quickbms script : http://aluigi.org/bms/brink.bms

Re: Kingdom Hearts HD Models [PS4]

Posted: Sun Jun 17, 2018 11:34 am
by onelight
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.

Re: Kingdom Hearts HD Models [PS4]

Posted: Sun Jun 17, 2018 12:08 pm
by akderebur
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.

Re: Kingdom Hearts HD Models [PS4]

Posted: Sat Jun 30, 2018 8:18 am
by onelight
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

Re: Kingdom Hearts HD Models [PS4]

Posted: Sat Jun 30, 2018 9:02 am
by akderebur
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.

Re: Kingdom Hearts HD Models [PS4]

Posted: Mon Jul 02, 2018 8:54 am
by Tosyk
akderebur, is any progress on the tool?

Re: Kingdom Hearts HD Models [PS4]

Posted: Mon Jul 02, 2018 10:58 am
by akderebur
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

Re: Kingdom Hearts HD Models [PS4]

Posted: Mon Jul 02, 2018 4:20 pm
by HeliosAI
Nice work here akderebur :)
Just for the future, Noesis supports .psarc files (also from PS4 games) with names extraction, should make it easier.

Re: Kingdom Hearts HD Models [PS4]

Posted: Mon Jul 02, 2018 5:40 pm
by akderebur
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.

Re: Kingdom Hearts HD Models [PS4]

Posted: Wed Jul 04, 2018 8:00 am
by Tosyk
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