ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Oct 18, 2017 4:49 pm

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed Aug 30, 2017 5:45 pm 

Joined: Sun Mar 22, 2015 7:09 pm
Posts: 646
Tools for fixing frostbite "distorted heads" will be released here.
Also mesh tool can convert ANY model, not only heads.

Currently tested games that can be fixed with this method:
- Battlefield 3
- Battlefield 4
- Battlefield Hardline
- Battlefield 1
- Medal of Honor Warfighter
- Star Wars Battlefront 1
- Star Wars Battlefront 2 (alpha)
- Mirror's Edge Catalyst


Video: https://youtu.be/_np_P8PUvfM

Image
Image


Last edited by id-daemon on Tue Oct 03, 2017 3:13 pm, edited 1 time in total.

Top
   
PostPosted: Wed Aug 30, 2017 8:04 pm 

Joined: Sun Mar 22, 2015 7:09 pm
Posts: 646
Battlefield 1

This first test version will only work with characters using 3pantskeleton.ebx, it must be in the same dir (for both tools)

Fb_BF1_mesh.exe - mesh extractor

Usage: Fb_BF1_mesh <mesh> <chunk>

Fb_BF1_faces.exe - face fixing tool

Usage: drop VisualUnlock file onto the tool

This will make a small .SMD file with skeleton pose, which will fix the head. Apply transformation to bake it.

To apply transformation:
Load the head mesh, delete its skeleton, then import small SMD (it will actually be new skeleton with 2 poses: initial pose and corrected pose), and connect it to the head.

If you prefer to do it manually, you can edit model SMD file as text file. Open head SMD, scroll down to the "triangles" line, and delete all lines before it (this is the skeleton). Then insert small SMD in the beginning of the file.

Star Wars Battlefront 1 - same 2 tools, same usage, skeleton name: humanmale.ebx


------------------------------------
VisualUnlock files allows to automatically find the needed face asset inside the bank.
Every mesh in ANY frostbite game must have this unlock file. Can be called different. Usually located near mesh.ebx file. Example:
\ebx\characters\sp\ep3_mudandblood\townsend_ingame\sp_townsend_head_ingame_vu.ebx
\ebx\characters\mp\faces\unlocks\mp_faces_ako.ebx

Note that for some characters, these VisualUnlock files may contain asset links not in head, but in teeth, hair or beard instead. There are also some weird cases, where head links to incorrect asset, and the correct one is in hair.

Also in the same dir must be .assetbank file (or files) where you think assets for this face can be.
These are usually biggest bank for the level, located in "res\animations\antanimations\"
You can place ALL banks there, tool will check them all. This can be slow, because banks are HUGE.
Some scripts incorrectly name .assetbank files as ".ANT", in this case you need to rename them.


Attachments:
fb_models_faces.rar [104.61 KiB]
Downloaded 71 times


Last edited by id-daemon on Thu Sep 14, 2017 4:07 pm, edited 7 times in total.
Top
   
PostPosted: Thu Aug 31, 2017 1:10 pm 

Joined: Sun Jun 11, 2017 6:00 pm
Posts: 4
I'd like to test this out but the method is a little vague. How does one get the mesh and chunks unpacked? Is there an updated python dumper tool for the BF games?


Top
   
PostPosted: Thu Aug 31, 2017 3:24 pm 

Joined: Sun Mar 22, 2015 7:09 pm
Posts: 646
The original plan was to make tools, that can do this all automatically. But I decided to post this test tool already. Later it will be improved. Also, yesterday I had no time to make instructions, this is why its so vague.

For now, you need to use existing tools (or python scripts) to dump files.


Top
   
PostPosted: Sat Sep 02, 2017 2:37 pm 

Joined: Sun Mar 22, 2015 7:09 pm
Posts: 646
Update. Models extracted with vertex normals.

Note: for some characters, these VisualUnlock files may contain asset links not in head, but in teeth or beard instead.


Top
   
PostPosted: Sat Sep 02, 2017 5:25 pm 

Joined: Wed Feb 24, 2016 4:24 pm
Posts: 32
Now this extractor works only for BF1 or for other frostbite games too?


Top
   
PostPosted: Thu Oct 12, 2017 4:35 pm 

Joined: Sun Mar 22, 2015 7:09 pm
Posts: 646
Tools added for SWBF2. Putting this here, because I can't edit posts anymore.


Attachments:
fb_models_faces.rar [157.39 KiB]
Downloaded 10 times
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited