XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Jul 24, 2017 1:53 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Wed Nov 12, 2014 11:40 pm 
Offline
n00b

Joined: Mon Sep 01, 2014 8:33 am
Posts: 10
Has thanked: 3 times
Have thanks: 1 time














You can make the ads go away by registering

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!


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Mon Nov 17, 2014 11:00 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2078
Has thanked: 393 times
Have thanks: 1049 times
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:


Attachments:


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


_________________
Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip

"We are Microsoft. You will be assimilated. Resistance is Futile."


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Fri Jan 09, 2015 4:14 am 
Offline
beginner

Joined: Tue Jul 28, 2009 6:14 pm
Posts: 22
Has thanked: 0 time
Have thanks: 1 time
I'm interesting in converting maps.
Do you think this is possible with the script too?


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Fri Feb 20, 2015 4:23 am 
Offline
n00b

Joined: Mon Sep 01, 2014 8:33 am
Posts: 10
Has thanked: 3 times
Have thanks: 1 time
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.


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Fri May 13, 2016 2:16 am 
Offline
beginner

Joined: Tue Jul 28, 2009 6:14 pm
Posts: 22
Has thanked: 0 time
Have thanks: 1 time
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.


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Mon May 16, 2016 6:55 pm 
Offline
beginner
User avatar

Joined: Sat Sep 13, 2014 2:05 pm
Posts: 26
Has thanked: 7 times
Have thanks: 12 times
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:
Detected file type: Phyre
version: -1118371840
version not supported: -1118371840


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Thu Dec 08, 2016 7:04 am 
Offline
ultra-n00b

Joined: Thu Dec 08, 2016 6:42 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
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
Quote:
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/mastersdegree/workshops/ps3introductiontogcm/GCM%20Texturing.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


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Mon Jan 30, 2017 5:23 am 
Offline
ultra-n00b

Joined: Tue Dec 13, 2016 6:16 am
Posts: 2
Has thanked: 1 time
Have thanks: 5 times
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:
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.


Attachments:


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



Last edited by dtester1 on Tue Jan 31, 2017 8:33 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Mon Jan 30, 2017 9:02 am 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 817
Location: Russia, Siberia
Has thanked: 147 times
Have thanks: 83 times
dtester1, thanks for this! Great work :mrgreen:

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


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Sun Feb 05, 2017 11:26 am 
Offline
ultra-n00b
User avatar

Joined: Sun Feb 05, 2017 11:20 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
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?


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Thu Feb 09, 2017 9:47 pm 
Offline
beginner

Joined: Tue Jul 28, 2009 6:14 pm
Posts: 22
Has thanked: 0 time
Have thanks: 1 time
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?


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Fri Feb 10, 2017 9:13 am 
Offline
ultra-n00b

Joined: Tue Dec 13, 2016 6:16 am
Posts: 2
Has thanked: 1 time
Have thanks: 5 times
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.


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Sun May 07, 2017 9:12 am 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1212
Has thanked: 19 times
Have thanks: 526 times
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


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Wed Jun 21, 2017 3:50 am 
Offline
ultra-n00b

Joined: Mon Jun 19, 2017 8:48 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
Can someone please explain how to get any of this to work?


Top
 Profile  
 
 Post subject: Re: Final Fantasy X/X-2 HD Remaster
PostPosted: Sat Jun 24, 2017 4:26 pm 
Offline
ultra-n00b

Joined: Wed Jun 10, 2015 11:19 pm
Posts: 4
Has thanked: 3 times
Have thanks: 0 time
Just drag and drop the files into the program


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Adngel and 8 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