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

Final Fantasy X/X-2 HD Remaster

Post questions about game models here, or help out others!
Darkhowlings
mega-veteran
mega-veteran
Posts: 185
Joined: Mon Sep 01, 2014 8:33 am
Has thanked: 66 times
Been thanked: 7 times

Re: Final Fantasy X/X-2 HD Remaster

Post by Darkhowlings »

Szkaradek123 wrote:Hello

Here is Noesis script for geometry.
Bones and skinning not supported.
Copy script in noesis "...\plugins\python" folder.
ABSOLUTE THANK YOU!!!!
it works almost perfectly, but at least now its possible extract the models from the game without many problems! plus, its possible watch the DDS file it got too!

Irony of all:
If it get better, maybe it could end on extracting World models, as on the HD version, its possible get those models, because they're on DAE.Phyre too.

Still, gotta wait to!
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4285
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Final Fantasy X/X-2 HD Remaster

Post by shakotay2 »

lumekano wrote:
Szkaradek123 wrote:Hello

Here is Noesis script for geometry.
Bones and skinning not supported.
Copy script in noesis "...\plugins\python" folder.
can't open with noesis some file
those which can't be loaded by the script can be assembled manually.
But it's no fun. Also I didn't look for the uvs:
m132.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?"
Haro
beginner
Posts: 24
Joined: Tue Jul 28, 2009 6:14 pm
Been thanked: 1 time

Re: Final Fantasy X/X-2 HD Remaster

Post by Haro »

I'm interesting in converting maps.
Do you think this is possible with the script too?
Darkhowlings
mega-veteran
mega-veteran
Posts: 185
Joined: Mon Sep 01, 2014 8:33 am
Has thanked: 66 times
Been thanked: 7 times

Re: Final Fantasy X/X-2 HD Remaster

Post by Darkhowlings »

Haro wrote:I'm interesting in converting maps.
Do you think this is possible with the script too?
Late respond, but well, I was out:

Its not possible extract maps with the plugging (If you're saying about the world maps) Yet, the plugin it does open almost all the dds.phyre file, which are the texture of the models and even maps.
We can only wait till they upgrade the plunging.
Haro
beginner
Posts: 24
Joined: Tue Jul 28, 2009 6:14 pm
Been thanked: 1 time

Re: Final Fantasy X/X-2 HD Remaster

Post by Haro »

This thread's been dead for over a year.
Now that the PC version is out, maybe people are interested in working on a model converter again.
User avatar
MaKiPL
advanced
Posts: 60
Joined: Sat Sep 13, 2014 2:05 pm
Has thanked: 10 times
Been thanked: 20 times

Re: Final Fantasy X/X-2 HD Remaster

Post by MaKiPL »

Topher on Qhimm forums made an unpacker for Steam version (They use VBF files):
http://forums.qhimm.com/index.php?topic ... #msg240957
Might help for modding. They use the same file format and structure, therefore a script posted here should work on PC files too. I'm going to see right now.

Nope>

Code: Select all

Detected file type: Phyre
version: -1118371840
version not supported: -1118371840
twink333
ultra-n00b
Posts: 1
Joined: Thu Dec 08, 2016 6:42 am
Been thanked: 1 time

Re: Final Fantasy X/X-2 HD Remaster

Post by twink333 »

Haro wrote:Got my hands on the Phyre SDK.
It seems those .phyre files are exported blob files specified for the corresponding platform.
originally imported DAE files are XML, but they get compiled to a proprietary binary format.
In the SDK, there is no importer for this or whatsoever.
There are full source, and u actually can do a reverse tool from it.

About .phyre files
The PhyreEngine™ runtime requires that all assets are in an optimized format for the target platform. The PhyreEngine™ target format is a .phyre file – this is a binary serialized form of a PhyreEngine™ PCluster object, which is the internal mechanism the PhyreEngine™ game engine uses to cluster together related objects for loading and unloading. This format cannot be directly exported from typical DCC tools, but must be converted from an intermediate format. For typical 3D data, the supported format is COLLADA, and we provide exporters for Maya and MAX. Other COLLADA exporters (including those for other DCC packages) are available, but compatibility is not guaranteed. Other source formats are supported for different types of asset.
And there is some explanations about how this work: (not usefull for conversion .phyre, but still very interesting)https://research.ncl.ac.uk/game/masters ... turing.pdf

And here is what u looking for http://www63.zippyshare.com/v/s2GRiMEu/file.html
Maybe u should have a Cg Toolkit 3.0 February 2011 (Ididnt testet that yet)

For PC .phyre description is much simplier due the most procces already are part of yre graphic's driver.

So, phyre extension basicaly is a part of very complicated occlusion culling system.

For a DDS file u can actually cheat (Didnt tryed yet, but this Workflow should work). So dump a dds with a Untitled Project X from a memory, edit it, and then with that Asset tool, convert it in .phyre. This should work for a textures that didnt attached for a 3D models. Like backgrounds sprites etc

Some more:
http://www114.zippyshare.com/v/ixhAh6Rf/file.html
This is how engine read a dds.phyre format
dtester1
ultra-n00b
Posts: 2
Joined: Tue Dec 13, 2016 6:16 am
Has thanked: 1 time
Been thanked: 7 times

Re: Final Fantasy X/X-2 HD Remaster

Post by dtester1 »

Not sure if there's still any interest in getting out the models for this game on PC, but I made a python script that can extract both the character meshes as objs as well as the DDS textures. I haven't managed to figure out the exact format of these phyre files, so instead the script searches for the faces, vertices, UV maps, and normals by looking for certain markers. While this isn't absolutely foolproof, it's now robust enough to process every character mesh in FFX/FFX-2 without complaining. I haven't looked at every single mesh or texture to verify it, but for every file I have checked, it works correctly (including all the main character low and high poly meshes).

The main script itself is phyre.py. You'll need python 3 to run it (I ran it on 3.5). The basics to run it look like:

Code: Select all

from phyre import extractMesh, extractDDS
extractMesh(r'/path/to/file.dae.phyre', r'outputfile.obj')
extractDDS(r'/path/to/file.dds.phyre', r'outputfile.dds')
That's it. There are some additional keyword arguments you can supply, but they are debugging tools for the most part. The only one that might be of interest is includeNormals for extractMesh(). By default it doesn't export the normals since they're unnecessary, but if you want them just add includeNormals=True to extractMesh().

I've also included my two test wrapper scripts. test_extraction.py is just a simple wrapper for extracting a single model. grab_meshes.py will extract all the models in the chr folder for both games. It'll create about 2GB of data and create some log files from the output, and it takes a couple minutes to run. For both scripts, you'll need to change ffxBaseDir and ffx2BaseDir to your install location. They'll both dump everything into the current working directory.

There are a number of files that it can't process, but these don't appear to have any actual mesh data in them anyway. For FFX the files are c051, k002, k004, k007, k014, k015, k017, k201, k212, k214, k302, k303, k403 and k999. For FFX-2 they're k015, k201, k303, k403, and k999. The script will also give a warning for a random NPC (n174 in FFX, n119 in FFX-2) about the UV maps being out of bounds, but it's for a single tri, and that's actually how it's defined in the .dae.phyre file. The script will still process the file with the warning.

Finally, some caveats. This script is almost certainly only gonna work on the PC port of FFX/FFX-2 HD Remaster. It will definitely fail for the PS3 files due to the difference in endianness, and I'd be shocked if it worked on the PS4 version. I made it specifically for character meshes, and I haven't tested it out on anything outside of chr/. Finally, this is good for extracting meshes only. You're still SOL if you want to modify the meshes for in-game use.
You do not have the required permissions to view the files attached to this post.
Last edited by dtester1 on Tue Jan 31, 2017 8:33 am, edited 1 time in total.
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: Final Fantasy X/X-2 HD Remaster

Post by Tosyk »

dtester1, thanks for this! Great work :mrgreen:
Thank you for all you do here
my blog | my forum
User avatar
CasualCrash
ultra-n00b
Posts: 2
Joined: Sun Feb 05, 2017 11:20 am

Re: Final Fantasy X/X-2 HD Remaster

Post by CasualCrash »

Hi all! We translated Final Fantasy X in word documents. Now we want to put the text into the game. Can someone help us? With this extractor is it possible?
Haro
beginner
Posts: 24
Joined: Tue Jul 28, 2009 6:14 pm
Been thanked: 1 time

Re: Final Fantasy X/X-2 HD Remaster

Post by Haro »

Thanks for the work but converting this into a static obj will make us lose bones and other stuff right?
isn't there a way to convert this into collada?
dtester1
ultra-n00b
Posts: 2
Joined: Tue Dec 13, 2016 6:16 am
Has thanked: 1 time
Been thanked: 7 times

Re: Final Fantasy X/X-2 HD Remaster

Post by dtester1 »

You could convert it back to COLLADA if you knew the complete file structure. I'm not aware of any tools that can do that though, or else I wouldn't have made my scripts! As for getting bones and other data, I'm not familiar with how they are stored so I wouldn't know what to look for. I really just made the scripts to avoid having to manually create obj files using hex2obj for everything.

There is extra data associated with the vertices that would be easy to extract, but I don't know what it is. After the faces are defined, the rest of the file is a stream of the vertex data, ordered by each submesh. For each submesh with N vertices, the first 3*N floats are the vertex coordinates, the next 3*N floats are the normals, and the next 2*N floats are the UV coordinates. After that, there are x*N floats, but x isn't constant between files, or even always between submeshes within a file. I imagine at least some of this is vertex skinning data, but I don't know what else it may be.

If someone with more knowledge of skeletons and vertex skinning would like to extend my scripts, they are of course welcome to.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2870 times

Re: Final Fantasy X/X-2 HD Remaster

Post by daemon1 »

Tool successfully converted all 872 skeletal and 409 level files from FFX remaster. There were about 5 very small files containing only cameras, which i hope is not needed.

Proceeding to FFX2. viewtopic.php?p=130412#p130412

Image
Image
Aelthien
ultra-n00b
Posts: 1
Joined: Mon Jun 19, 2017 8:48 am

Re: Final Fantasy X/X-2 HD Remaster

Post by Aelthien »

Can someone please explain how to get any of this to work?
Beyond69
n00b
Posts: 17
Joined: Wed Jun 10, 2015 11:19 pm
Has thanked: 7 times
Been thanked: 1 time

Re: Final Fantasy X/X-2 HD Remaster

Post by Beyond69 »

Just drag and drop the files into the program
Post Reply