Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Kingdom Hearts HD Models [PS4]

Post questions about game models here, or help out others!
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Kingdom Hearts HD Models [PS4]

Post 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.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4284
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1146 times
Been thanked: 2242 times

Re: Kingdom Hearts HD Models [PS4]

Post 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
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Kingdom Hearts HD Models [PS4]

Post 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.
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Kingdom Hearts HD Models [PS4]

Post 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.
onelight
ultra-n00b
Posts: 7
Joined: Thu Aug 31, 2017 5:05 pm

Re: Kingdom Hearts HD Models [PS4]

Post by onelight »

I just got Kingdom Hearts HD 1.5+2.5
How did you extract psacr files, my psarc.exe not working
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Kingdom Hearts HD Models [PS4]

Post by akderebur »

onelight wrote:my psarc.exe not working
Use this quickbms script : http://aluigi.org/bms/brink.bms
onelight
ultra-n00b
Posts: 7
Joined: Thu Aug 31, 2017 5:05 pm

Re: Kingdom Hearts HD Models [PS4]

Post 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.
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Kingdom Hearts HD Models [PS4]

Post 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.
onelight
ultra-n00b
Posts: 7
Joined: Thu Aug 31, 2017 5:05 pm

Re: Kingdom Hearts HD Models [PS4]

Post 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
You do not have the required permissions to view the files attached to this post.
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Kingdom Hearts HD Models [PS4]

Post 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.
User avatar
Tosyk
double-veteran
double-veteran
Posts: 1027
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 269 times
Been thanked: 154 times
Contact:

Re: Kingdom Hearts HD Models [PS4]

Post by Tosyk »

akderebur, is any progress on the tool?
Thank you for all you do here
my blog | my forum
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Kingdom Hearts HD Models [PS4]

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
HeliosAI
mega-veteran
mega-veteran
Posts: 166
Joined: Wed Nov 17, 2010 2:57 pm
Has thanked: 151 times
Been thanked: 62 times

Re: Kingdom Hearts HD Models [PS4]

Post 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.
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Kingdom Hearts HD Models [PS4]

Post 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.
User avatar
Tosyk
double-veteran
double-veteran
Posts: 1027
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 269 times
Been thanked: 154 times
Contact:

Re: Kingdom Hearts HD Models [PS4]

Post 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
Thank you for all you do here
my blog | my forum
Post Reply