READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Help with vertices blocks and faces data!!!

Post questions about game models here, or help out others!
mita996
advanced
Posts: 45
Joined: Wed Oct 10, 2018 10:45 pm
Has thanked: 14 times

Re: Help with vertices blocks and faces data!!!

Post by mita996 » Wed Nov 21, 2018 12:59 pm

shakotay2 wrote:
mita996 wrote:Actually the fifa 14 head is fifa12, but I converted to fifa14. What can I do precise, sorry I"m noob
yeah, I was just "expanding" my post. Do you have any coding skills?
Master, can you please help me with the faces and scoreboard. I know you are very busy.. I was tryin til this time, but not success

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2727
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 674 times
Been thanked: 1405 times

Re: Help with vertices blocks and faces data!!!

Post by shakotay2 » Wed Nov 21, 2018 5:34 pm

head with uvs 16 bit (word) swap:
head_115533_0-192190.zip
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

mita996
advanced
Posts: 45
Joined: Wed Oct 10, 2018 10:45 pm
Has thanked: 14 times

Re: Help with vertices blocks and faces data!!!

Post by mita996 » Wed Nov 21, 2018 5:57 pm

shakotay2 wrote:head with uvs 16 bit (word) swap:
head_115533_0-192190.zip
Awesome, i will fix eyes with blender. Very thankful for this, if you can help with other files, when you have time :)) Thank you

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2727
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 674 times
Been thanked: 1405 times

Re: Help with vertices blocks and faces data!!!

Post by shakotay2 » Wed Nov 21, 2018 9:54 pm

mita996 wrote:Very thankful for this, if you can help with other files, when you have time :)) Thank you
well, guess it's better when you try it for yourself:

This is my endianness swapper for binary 3D model files.
The idea is to swap vertex and face index (FI) data from big endian to little endian or vice versa.

Generally you can swap face index data using a hexeditor supporting byte swapping for WORD (16 bit uint).
For combined data as is for head_192190_0_0_0.rx3 (vertex float and uvs half float) it's not so simple.

Here is where Make_obj-swap.exe will come in handy.
Follow the instructions carefully.

A param.txt file is required (one for the vertex block, another for the FIs, see params-FIs folder)

I won't explain in detail how to create params.txt for different model files
but using hex2obj (another tool of mine) with head_192190_0_0_0.rx3 and the belonging H2O file
should give some understanding.

You can find the rx3 file in the HEADS.rar from the opening post here:
viewtopic.php?f=16&t=19026

instructions
------------
Start Make_obj-swap and load head_192190_0_0_0.rx3; params.txt must be present in the same folder!
A swapped.bin will be created.

RENAME it to swappedv.bin and copy it to the folder params-FI.
Start Make_obj-swap and load swappedv.bin,
another swapped.bin will be created with FIs swapped, too.

Finally you can copy (paste/overwrite) the FIs block (size: FIcount x 2) and the vertex block (size vertexCount x FVFsize)
from that swapped.bin to (FIFA12) head_115533_0.rx3.
Make_obj-swap.zip
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

mita996
advanced
Posts: 45
Joined: Wed Oct 10, 2018 10:45 pm
Has thanked: 14 times

Re: Help with vertices blocks and faces data!!!

Post by mita996 » Wed Nov 21, 2018 11:37 pm

shakotay2 wrote:
mita996 wrote:Very thankful for this, if you can help with other files, when you have time :)) Thank you
well, guess it's better when you try it for yourself:

This is my endianness swapper for binary 3D model files.
The idea is to swap vertex and face index (FI) data from big endian to little endian or vice versa.

Generally you can swap face index data using a hexeditor supporting byte swapping for WORD (16 bit uint).
For combined data as is for head_192190_0_0_0.rx3 (vertex float and uvs half float) it's not so simple.

Here is where Make_obj-swap.exe will come in handy.
Follow the instructions carefully.

A param.txt file is required (one for the vertex block, another for the FIs, see params-FIs folder)

I won't explain in detail how to create params.txt for different model files
but using hex2obj (another tool of mine) with head_192190_0_0_0.rx3 and the belonging H2O file
should give some understanding.

You can find the rx3 file in the HEADS.rar from the opening post here:
viewtopic.php?f=16&t=19026

instructions
------------
Start Make_obj-swap and load head_192190_0_0_0.rx3; params.txt must be present in the same folder!
A swapped.bin will be created.

RENAME it to swappedv.bin and copy it to the folder params-FI.
Start Make_obj-swap and load swappedv.bin,
another swapped.bin will be created with FIs swapped, too.

Finally you can copy (paste/overwrite) the FIs block (size: FIcount x 2) and the vertex block (size vertexCount x FVFsize)
from that swapped.bin to (FIFA12) head_115533_0.rx3.
Make_obj-swap.zip
So thankful for this message. You are the greatest and very kind man. Thanks very much!

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2727
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 674 times
Been thanked: 1405 times

Re: Help with vertices blocks and faces data!!!

Post by shakotay2 » Thu Nov 22, 2018 8:07 pm

mita996 wrote:You are the greatest
Nope, this title is reserved for one man only:
Muhammad Ali: The Greatest :D
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

mita996
advanced
Posts: 45
Joined: Wed Oct 10, 2018 10:45 pm
Has thanked: 14 times

Re: Help with vertices blocks and faces data!!!

Post by mita996 » Fri Jan 04, 2019 4:16 pm

shakotay2 wrote:
mita996 wrote:You are the greatest
Nope, this title is reserved for one man only:
Muhammad Ali: The Greatest :D
Mate, I've try and try, but always I got an error. Can you please, please do just this more head. It will be New year present. Happy New Year to you, all the best!!
You do not have the required permissions to view the files attached to this post.

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2727
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 674 times
Been thanked: 1405 times

Re: Help with vertices blocks and faces data!!!

Post by shakotay2 » Fri Jan 04, 2019 8:59 pm

Happy New Year to you, too, and all the best, mita996.
Which kind of error?

You need to understand the instructions in my post as of Wed Nov 21, 2018 9:54 pm.

btw: face indices count and vertex count are the same, so I don't see why it should not work with the actual params.txt files?
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

mita996
advanced
Posts: 45
Joined: Wed Oct 10, 2018 10:45 pm
Has thanked: 14 times

Re: Help with vertices blocks and faces data!!!

Post by mita996 » Sat Jan 05, 2019 12:33 pm

shakotay2 wrote:Happy New Year to you, too, and all the best, mita996.
Which kind of error?

You need to understand the instructions in my post as of Wed Nov 21, 2018 9:54 pm.

btw: face indices count and vertex count are the same, so I don't see why it should not work with the actual params.txt files?
Bro, here is what I did:
1) I've copied head_192190_0_0_0_0.rx3 to the make obj swap folder, I have head_192190_0_0_0_0.rx3 and head_192190_0_0_0_0.h2o now.
2) Now I've stared make make obj and load head_192190_0_0_0_0.rx3 and got swapped.bin, renamed it and copied to the params-FI folder.
3) Started make obj swap and load swappedv.bin and got swapped.bin with FIs swapped
4) I don't know how to copy (paste/overwrite) the FIs block (size: FIcount x 2) and the vertex block (size vertexCount x FVFsize)
from that swapped.bin to (FIFA12) head_115533_0.rx3. Are I supposed to do that with hex editor or?

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2727
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 674 times
Been thanked: 1405 times

Re: Help with vertices blocks and faces data!!!

Post by shakotay2 » Sat Jan 05, 2019 4:30 pm

mita996 wrote:4) I don't know how to copy (paste/overwrite) the FIs block (size: FIcount x 2) and the vertex block (size vertexCount x FVFsize)
from that swapped.bin to (FIFA12) head_115533_0.rx3. Are I supposed to do that with hex editor or?
yep.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

mita996
advanced
Posts: 45
Joined: Wed Oct 10, 2018 10:45 pm
Has thanked: 14 times

Re: Help with vertices blocks and faces data!!!

Post by mita996 » Sat Jan 05, 2019 5:09 pm

shakotay2 wrote:
mita996 wrote:4) I don't know how to copy (paste/overwrite) the FIs block (size: FIcount x 2) and the vertex block (size vertexCount x FVFsize)
from that swapped.bin to (FIFA12) head_115533_0.rx3. Are I supposed to do that with hex editor or?
yep.
But how to find FIs block, vertex blocks in hex editior, that is the right question :(

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2727
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 674 times
Been thanked: 1405 times

Re: Help with vertices blocks and faces data!!!

Post by shakotay2 » Sat Jan 05, 2019 5:35 pm

I assumed you knew how to use hex2obj :cry: ;
H2O file for head_115533_0.rx3:

0x2B0 16524
Vb1
32 20
0x98A0 2969
020100
0x0 255

the rest is simple math:
face indices block: 0x2B0 - 0x83C7, vertex block: 0x98A0 - 0x20BBF
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

mita996
advanced
Posts: 45
Joined: Wed Oct 10, 2018 10:45 pm
Has thanked: 14 times

Re: Help with vertices blocks and faces data!!!

Post by mita996 » Mon Jan 07, 2019 11:47 am

shakotay2 wrote:I assumed you knew how to use hex2obj :cry: ;
H2O file for head_115533_0.rx3:

0x2B0 16524
Vb1
32 20
0x98A0 2969
020100
0x0 255

the rest is simple math:
face indices block: 0x2B0 - 0x83C7, vertex block: 0x98A0 - 0x20BBF
Master I really want to learn, I look into your tutorial, but I need, also I very need these head. It will be easy If you done it for me, I see no light in the street xd Please, I will be start learning, but just help me with these head :(

Post Reply