XeNTaX
http://forum.xentax.com/

Gravity Rush 2/Gravity Daze 2 (PS4)
http://forum.xentax.com/viewtopic.php?f=16&t=17815
Page 1 of 2

Author:  DillyDong [ Wed Mar 14, 2018 12:22 am ]
Post subject:  Gravity Rush 2/Gravity Daze 2 (PS4)

Hey, I have gotten the game files and I'm trying to look up to extract their models.
The textures can be extracted and loaded up fine without problem through Noesis, since they are .gnf files
Here are examples:
Image
Image

The models (not 100% sure) seem to be in .gfx or .evd files. I could be wrong though, I'll post example files of them:
http://www46.zippyshare.com/v/ko83yxAd/file.html

Thanks in advance.

Author:  Roflcopter [ Fri Mar 23, 2018 7:10 am ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Hope this isn't too big of a necrobump, but the model files are in the gfx folder. I'm using Model Researcher to figure things out, and verts extract directly from the hex data.

The models are in ZYX format, but there's a good number of wild vertices coming up. I think the face and UV data is intermingled with the vertices.

az_tree_set_01.gfx looks like one of the plants in the Enchanted Zone:
https://imgur.com/KXpHfSH

and this is Kat in her Shifter 2.0 uniform:
https://imgur.com/zisiIR7

They both seem to have a flat version of the main model, probably for shadows.

Finding the verts was easy enough, but it might be interesting figuring out how to get the faces and UV's working.

And thanks for the insight on the textures. I was hoping it was something someone's seen before.

Author:  akderebur [ Fri Mar 23, 2018 12:31 pm ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

The data you are reading is collection of vertex blocks. I am not familiar with Model Researcher, but you probably need to use the padding option. I will give you an example with hex2obj.

Here is the first mesh (kit01_base.gfx):
Image


Vertex blocks are 32 bytes each. Like you said they are easy to see in the hex editor.

For the first submesh after the end of the vertex blocks there are some 0s and then the face indices start. For another mesh I have seen that it starts right after the blocks end, with no 0s between. Still it seems to be right under the vertices. Shouldn't be hard to find.

UVs should probably be somewhere inside the vertex block, but I haven't checked that.

Author:  Roflcopter [ Sat Mar 24, 2018 1:41 am ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Ok, sweet! That got me a lot further. Indeed, a padding of 20 gives me the verts I want, and I'm able to get faces, too. But I'm getting a bunch more faces than I want on ModelResearcher, and they're inverted. I'm using shorts, which seems to be the right size, but so far I'm thinking I need to cut down the count to get rid of the junk.

EDIT:
Got a smooth looking mesh with a count of 4509. Hard to notice the shift in numbers.
Image

(hopefully the faces correct themselves as I continue.)

Author:  akderebur [ Sat Mar 24, 2018 3:32 am ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Roflcopter wrote:
Got a smooth looking mesh with a count of 4509. Hard to notice the shift in numbers.

Yes, hex2obj requires index count, while Mesh Researcher seems to require face count. Just do (index count/3) and you have the face count. 13524/3 = 4508

Also I looked at the files of Gravity Rush (first game) and they don't look very complex. I was able to get the skeleton and the weights too.

Image

It just has some slight problems with the weights. I will think of making a tool for exporting Gravity Rush models in the future. Maybe also for the second game, there seems to be just a couple of differences regarding the model data.

Author:  Roflcopter [ Sat Mar 24, 2018 12:15 pm ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Awesome. I don't have the first game's files yet, so I can't see the differences. Do you have some hex examples?

Quote:
I will think of making a tool for exporting Gravity Rush models in the future. Maybe also for the second game, there seems to be just a couple of differences regarding the model data.

I'd be looking forward to that. It definitely beats getting one mesh at a time.

EDIT: Shifter 2.0 progress. Even got the faces worked out (had to flip the Z-axis, haha)! Speaking of faces, she has a whopping 40 expressions. I guess instead of rigging her face, they decided to make a new mesh for each of her expressions.
Image
Now it's on to the UV's. They've been a pain to figure out so far, but I'm sure I'll get it pretty soon. Aside from the vertex and face data, there are two more alternating patterns near the end of the file. I haven't had any luck finding UV's alongside the vertex data, so maybe it's somewhere in there. Or I'm just not reading the vertex data correctly.

Author:  Roflcopter [ Thu Mar 29, 2018 1:35 am ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Ok, so I found the UV's but...
Image
I guess multiplying the V coordinate by 2 should do the trick. I'd love to know why it's like this, though. akderebur, have you been getting UV's like this?

As for the textures, the purist in me wants to know if there's a layered format we can export to, but I guess I'll just export to bmp. It's lossless and I haven't had trouble with it so far.

Author:  akderebur [ Thu Mar 29, 2018 7:58 am ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Roflcopter wrote:
akderebur, have you been getting UV's like this?

Edit:
I remembered that I actually didn't get the uvs for gr2, I got them for gr1. They were in the vertex block as half floats if I remember correctly. Also some of them were outside the 0.0 - 1.0 range but it is not a problem.

Looking at your image I see that it is a different result than what I have in gr1. I will take a look at the files when I have the time.

Author:  Lazov [ Sun Apr 01, 2018 2:00 pm ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

When texture coordinates are stored in Short, they need to be divided by a number in order to translate these coordinates into floating-point numbers. In the Model Researcher, this number is 0xffff. In this case, the calculated values are converted to texture sizes. To avoid this, you can use the script. I see from the screenshots that a Pro version. Change the value of dp to correctly apply the coordinates to the texture.
The texture can be loaded in the UVs tab so that it is also displayed when the script is run.

Image

Author:  Roflcopter [ Mon Apr 02, 2018 2:02 am ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Ah, ok! So the magic number for dp was of course 1024. And the script works nicely with the other textures.

Thanks for the help, you guys! That just leaves the skeleton/armature, as far as I can tell. But I can make an obj of Shifter 2.0 now.

Author:  akderebur [ Mon Apr 02, 2018 9:01 am ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Roflcopter wrote:
That just leaves the skeleton/armature, as far as I can tell.

I was able to get the skeleton in gr1 but couldn't find anything that looks like a mesh bone table. The bone ids in weights doesn't seem to be global, so there should be a data that tells which bones are used by a specific mesh. I will post a simple sample here, in case anyone wants to take a look:
This is the reason I haven't released my program actually. It can read the meshes fine, the skeleton and the weights too but that doesn't mean much if the bone indices are wrong.

Btw are there any other files that might be related to skeleton in gr2? I have checked "kit01_base.evd", it has some text that looks like bone names, but other data doesn't look very useful. I am wondering if there are other files with the extension ".skel", like in gr1.

Author:  Roflcopter [ Mon Apr 02, 2018 7:08 pm ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Yeah, in the eaf folder, I found a bunch of .mot files that look like actions, just judging from their names.

There are more evd files in the lua->chardefs->player folder. I see kit01.evd there.

Author:  akderebur [ Mon Apr 02, 2018 8:55 pm ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Roflcopter wrote:
There are more evd files in the lua->chardefs->player folder. I see kit01.evd there.

If they are inside the lua folder they are probably not what we are looking for.

If you find anything with the extension ".skel" or any other file that you think might be related to skeleton data, please post it here. I don't have the gr2 files.

Author:  Roflcopter [ Mon Apr 02, 2018 10:11 pm ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

Here are kat's .mot files; still haven't had a good chance to look at these myself. Thus far, all of the .evd files I've found were in the lua folder. And there don't seem to be any .skel files at all.

http://www108.zippyshare.com/v/La3ptWpV/file.html

edit: after a quick glance, I'm seeing what look like vertex blocks in the files I sent.

Author:  akderebur [ Mon Apr 02, 2018 10:41 pm ]
Post subject:  Re: Gravity Rush 2/Gravity Daze 2 (PS4)

It looks like they packed the animation and skeleton data into a single file. Still it is the right file. I can see some quaternions and float values together, they are probably bone transformations. I will look into it later.

Page 1 of 2 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/