Simple question about some model data

Skeletons, animations, shaders, texturing, converting, fixing and anything else related to read game models
Wulf
Posts: 49
Joined: Mon Oct 27, 2014 8:30 pm

Simple question about some model data

Post by Wulf »

If it's relevant this is a sample of a few vertexes from Demon's Souls FLVER files, but I assume it's simple enough that anybody can figure it out by just looking at it. I'm just not very familiar with model data so was hoping somebody could explain each bit.

C258CB00 C413DBCC C32E1083 00000000
7FFE7F7F 007F7F00 FFFFFFFF FDCF0087

C2644370 C413DBCC C32FB172 00000000
7FFE7F7F 007F7F00 FFFFFFFF FDDC009E

C26BB4EA C413DBCC C3311999 00000000
7FFE7F7F 007F7F00 FFFFFFFF FDE700AD

The 3 floats are obviously xyz co-ords, but what would the rest signify?
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Simple question about some model data

Post by Acewell »

maybe not so simple :lol:
according to the 32 byte vertex type on lines 93-96 in this script by finale00
http://himeworks.com/redirect.php?type= ... kSouls_flv

vertex position X float - 4 bytes
vertex position Y float - 4 bytes
vertex position Z float - 4 bytes
unk float? - 4 bytes
U half float - 2 bytes
V half float - 2 bytes

i don't know what the rest is
unk half float?
unk half float?
unk float?
unk float?

there is probably normals and weights in there too but i cannot identify this data :oops:
Wulf
Posts: 49
Joined: Mon Oct 27, 2014 8:30 pm

Re: Simple question about some model data

Post by Wulf »

Oh good, then I don't have to feel bad for not recognizing it.

Thanks for the link to that script, a cursory glance shows that the data "seems" to match up with it. I'll poke through it and see what I can figure out from it.

Edit: Hmm, it seems that even between flver files of the same type, the vertex data can be different formats. I just looked at another flver and its vertices are 0x1C long instead of 0x20.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Simple question about some model data

Post by Acewell »

yeah there is 5 vertex types supported in that script - 28, 32, 36, 40, 44

edit
by coincidence shakotay is posting about identifying general normal and weight data here :D
http://forum.xentax.com/viewtopic.php?p=120567#p120567

you could check for weights and boneids in FVF block.
Weights are in the range of 0.0 to 1.0, sum of weights (for 4 boneids in most cases) is 1.0.

For ... normals (sum of squares = 1.0).
There might be boneIDs at FVF offset ...