Help us keep the site up! Got some change to spare? Why not donate a few bits and buy us a coffee. Image

Battlefield 4 chunk meshes

Post questions about game models here, or help out others!
Post Reply
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 43 times

Battlefield 4 chunk meshes

Post by luxox18 »

inside the file *.mesh we can found the name of the 3d model chunk

Image

the models are not compressed.

http://www.mediafire.com/download/ogu86 ... e1u/mp.rar

maybe someone can analyze and convert the models

thanks
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4131
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1123 times
Been thanked: 2150 times

Re: Battlefield 4 chunk meshes

Post by shakotay2 »

that's too easy, isn't it?
Image

H2O file:
0xDD10 3780
VB1
36 32
0x0 1144
0202

(Search for UV data might be more difficult.)
edit: nope - UVpos is 32
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Some things will never change. [roll]
"You quoted the whole thing, what a mess."
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 43 times

Re: Battlefield 4 chunk meshes

Post by luxox18 »

thanks for this, was easy but I don't know how to calculate the VB size.

note: the name of the lod00 models inside the mesh file are in 0xC8 position.

Image
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4131
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1123 times
Been thanked: 2150 times

Re: Battlefield 4 chunk meshes

Post by shakotay2 »

Vertex Block size should be the same for most models in the game.

You don't need to calculate it - it's just experience, finding patterns:

Image

VBsize is the distance (offset in bytes) between the patterns.
(ehm, yes, in the 2nd pattern I missed the first zero. :cry: )
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Some things will never change. [roll]
"You quoted the whole thing, what a mess."
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 43 times

Re: Battlefield 4 chunk meshes

Post by luxox18 »

thanks for the simple explanation! :)

other thing.... some meshes look like this , specifically head meshes.

Image

I'm doing something wrong? (VB: 36)

here is the chunk model:

http://www.mediafire.com/download/o3ed1 ... 3702ff.rar

thanks
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4131
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1123 times
Been thanked: 2150 times

Re: Battlefield 4 chunk meshes

Post by shakotay2 »

You did not take care of submeshes in face index list: 0x1D840, 0x1D8DC, 0x2269A etc..

glasses SM0:
0x1D840 78
VB1
36 32
0x0 28
0202

head SM1:
0x1D8DC 9951
VB1
36 32
0x3F0 2103
0202

startaddress of head to be calculated as addr[SM+1]= addr[SM]+28*36
SM is previous submesh, so addr[0]=0x0 here; addr[1]= 0 + 0x3F0

addr[2]= addr[1]+vertsCount[1] *36= 0x3F0 + 2103*36= 0x12BAC

Image
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Some things will never change. [roll]
"You quoted the whole thing, what a mess."
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 43 times

Re: Battlefield 4 chunk meshes

Post by luxox18 »

thanks! all submeshes imported :)

Image
artworkplay
veteran
Posts: 116
Joined: Wed Oct 05, 2011 9:40 pm
Has thanked: 49 times
Been thanked: 4 times

Re: Battlefield 4 chunk meshes

Post by artworkplay »

Great work guys...
since the files aren't compressed, is it possible to get skeletal information as well?
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 43 times

Re: Battlefield 4 chunk meshes

Post by luxox18 »

I found other head models where I can't define the VB block. (some head models use VB40)
the file structure looks a little bit different

here are some chunks:

http://www.mediafire.com/download/uqcr1 ... /Heads.rar

note: ninja ripper extract head meshes with deformity but with HEX2OBJ I can export heads in perfect condition.
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 43 times

Re: Battlefield 4 chunk meshes

Post by luxox18 »

artworkplay wrote:Great work guys...
since the files aren't compressed, is it possible to get skeletal information as well?
binds and skeletal structure are in different files but I don't know where are this files
matt55
beginner
Posts: 36
Joined: Mon Apr 19, 2010 1:13 pm
Has thanked: 4 times

Re: Battlefield 4 chunk meshes

Post by matt55 »

Guys! Is it possible to get mesh using this method from NFS:Rivals since it's running on the same engine as BF4?
I posted a topic here with attachment: viewtopic.php?f=10&t=10997
I can't ripp 3d mesh from the game, only textures can be grabbed, I use Ninja ripper 1.1.4.
Post Reply