Page 1 of 1
Model or Not?
Posted: Thu Jun 13, 2019 4:20 am
by nightwolf1982
So, I've been trying to figure out Tomb Raider Anniversary's models, which has proven to be a very frustrating endeavor. I've been
told unequivocally that this .gnc file is a model file, but I haven't been able to successfully get a full model using hex2obj. I've determined there are multiple vertex indices, but when I hex2obj them, The model elements (belts, holsters, etc...) all seem to be centered together, rather than in their proper positions. I'm including a link to the gnc file, if anyone wants to look.
Lara
Re: Model or Not?
Posted: Thu Jun 13, 2019 10:54 am
by shakotay2
nightwolf1982 wrote: ↑Thu Jun 13, 2019 4:20 ambut I haven't been able to successfully get a full model using hex2obj.
the tool was never intended to get full models (other than simple models)
I try to get the parameters for a first submesh then usually do some coding (
https://forum.xentax.com/viewtopic.php?f=29&t=15955)
I've determined there are multiple vertex indices, but when I hex2obj them, The model elements (belts, holsters, etc...) all seem to be centered together, rather than in their proper positions.
That's not a matter of
hex2obj. It's how the gnc creators built their meshes.
Usually you need to find the offsets for the different submeshes but you need to get properly separated submeshes
before.
Which is not easy here, as an example
0x1F6BC 3315
Vb1
16 99
0x3E00 6679
020400
0x0 255
Might become tricky to get proper submeshes:
lara_part.png
(I'd start getting all the FI blocks which are separated by FFFF (and 000000000000000000 / 0000) as it seems.)
Re: Model or Not?
Posted: Thu Jun 13, 2019 3:56 pm
by nightwolf1982
That's one of the reasons I'm not sure this is supposed to be the model. I've never seen a game that stored the character models in such a jumbled state; usually the models are in the standard T or A pose. There's also the fact that, similar to TR Legend, the gnc files appear to store skeleton and rigging data. I would have thought the mesh sections would be properly positioned for the rigging.
Re: Model or Not?
Posted: Thu Jun 13, 2019 7:53 pm
by nightwolf1982
OK, these are the offsets for all of the Face Indices, as far as I can tell. Looking at the resulting meshes though, I can't see this being the actual model for the game. All of the model parts seem to be collapsed down or overlapping to the point of being non-sensical. It would take months to reposition everything into just the basic t-pose.
Code: Select all
0x1DF84
0x1E10C
0x1E3A8
0x1F3B8
0x1F6BC
0x210B0
0x22918
0x24336
0x24794
0x24880
0x24A5C
0x24C44
0x24D84
0x24F0C
0x25094
0x27C30
0x28AB0
0x28CE0
0x292B8
0x29734
0x299D0
Re: Model or Not?
Posted: Thu Jun 13, 2019 9:59 pm
by shakotay2
nightwolf1982 wrote: ↑Thu Jun 13, 2019 7:53 pmAll of the model parts seem to be collapsed down or overlapping to the point of being non-sensical.
wouldn't it be funny to solve this riddle? Not to get correct positions, just understand what this gnc is good for
bodyparts.png
(There's some floating point tables from 0x1A0 to 0x3950. Might be matrices -> 222 x 64 bytes.)
Maybe try out floats at 0x1C0, 0x200, ... (step 0x40) as positions?
Re: Model or Not?
Posted: Thu Jun 13, 2019 10:27 pm
by nightwolf1982
Consider the riddle solved, then. TR Legend has the same "gnc" files, which contain the same type of vertex and index information. When you hex2obj the Legend Lara file, you get the same type of screwed up model. I'm now convinced these files are just skeleton or rigging files, and that the Anniversary models are stored somewhere other than the drms. Just can't seem to figure out where.
Re: Model or Not?
Posted: Fri Jun 14, 2019 3:09 am
by nightwolf1982
Reposting the link to the drm file, in case anyone wants to take a look at it:
Lara
Re: Model or Not?
Posted: Fri Jun 14, 2019 9:15 pm
by nightwolf1982
So the question now is where are the models? Are they in separate file? Hardcoded in the exe? Or are these "gnc" files really supposed to be the model files?
Re: Model or Not?
Posted: Mon Jun 17, 2019 6:12 pm
by shakotay2
nightwolf1982 wrote: ↑Fri Jun 14, 2019 9:15 pm
So the question now is where are the models? Are they in separate file?
possible
Hardcoded in the exe?
I've never come across a game that stored model data (vertices) in its exe.
Or are these "gnc" files really supposed to be the model files?
You might try out some simple static meshes (such as a book, a chest, a table, a plank or something like that) to decide this.
btw: you could try out byte 8 or byte 10 (of the FVF block, starts with byte 0) as a vertex group number for separating meshes (just a wild guess).