Help swap face index data using a hexeditor please

Skeletons, animations, shaders, texturing, converting, fixing and anything else related to read game models
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Help swap face index data using a hexeditor please

Post by MITA996 »

Can someone please help me and swap 3d model from fifa 11 to fifa14. This is what shakotay2 told to me, but I'm not good with hex editor:
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.

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.

credits:shakotay2
MITA996
Posts: 104
Joined: Wed May 23, 2018 1:00 pm

Re: Help swap face index data using a hexeditor please

Post by MITA996 »

fifa 3d files: