Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Battlefield 4 mesh importer - smoothing groups

Post questions about game models here, or help out others!
Post Reply
Murdock
ultra-n00b
Posts: 6
Joined: Mon Aug 17, 2015 12:59 am
Has thanked: 5 times

Battlefield 4 mesh importer - smoothing groups

Post by Murdock »

Hello, maybe someone allready figured this out, but I can't find a solution. Alot of models I import with the mesh importer script have broken smoothing groups... The same happens when I import the mesh via the hex2obj method.
Does somebody know a way to get the models with proper smoothing groups?
MichaelDarkAngel
mega-veteran
mega-veteran
Posts: 267
Joined: Thu Nov 04, 2010 11:25 pm
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Been thanked: 165 times
Contact:

Re: Battlefield 4 mesh importer - smoothing groups

Post by MichaelDarkAngel »

Smoothing may be done in the game engine and not saved as part of the model file.

--MDA
Image
MDA

Like TBotR on Facebook
ARchive_neXt v4.03.27.0 Now Available!

"I intend to leave a memory of myself in the minds of others."
Leonardo da Vinci,
disciple of experience
Highflex
beginner
Posts: 34
Joined: Tue Jul 22, 2014 5:41 pm
Has thanked: 19 times
Been thanked: 9 times

Re: Battlefield 4 mesh importer - smoothing groups

Post by Highflex »

From what i remember when looking at the mesh files:

The 3ds max script and hex2obj are not reading the original normals so the tool tries to autogenerate them, causing some odd issues. When i get some time i will make a updated importer for Maya with normals and everything.
Murdock
ultra-n00b
Posts: 6
Joined: Mon Aug 17, 2015 12:59 am
Has thanked: 5 times

Re: Battlefield 4 mesh importer - smoothing groups

Post by Murdock »

thanks for the fast replies!
@Highflex: that would be very appreciated!
Highflex
beginner
Posts: 34
Joined: Tue Jul 22, 2014 5:41 pm
Has thanked: 19 times
Been thanked: 9 times

Re: Battlefield 4 mesh importer - smoothing groups

Post by Highflex »

Just edited the bf4 max script to import correct normals :)

Grab a copy from here:

https://github.com/Highflex/frostbite_3dsmax_scripts

Probably adding the other scripts too ( bf3, battlefront )

though i need to finish my maya plugin which will support everything plus the benefit of native code speed

comparison pictures:

https://www.dropbox.com/s/hwxya4upecc5s ... 2.PNG?dl=0
https://www.dropbox.com/s/rjbyf1mimc7j9 ... s.PNG?dl=0
artworkplay
veteran
Posts: 116
Joined: Wed Oct 05, 2011 9:40 pm
Has thanked: 49 times
Been thanked: 5 times

Re: Battlefield 4 mesh importer - smoothing groups

Post by artworkplay »

I hope your planned maya plugin will have a better way of exporting of head meshes without making them look like melted wax sculptures.
Highflex
beginner
Posts: 34
Joined: Tue Jul 22, 2014 5:41 pm
Has thanked: 19 times
Been thanked: 9 times

Re: Battlefield 4 mesh importer - smoothing groups

Post by Highflex »

artworkplay wrote:I hope your planned maya plugin will have a better way of exporting of head meshes without making them look like melted wax sculptures.
Ah i think that was a issue with how they exported stuff, like guns are all seperated and then its put together ingame using the animation. I will see if i can parse any animation data to easily solve this, i believe there are a lot of tpose anim dummys around.
Highflex
beginner
Posts: 34
Joined: Tue Jul 22, 2014 5:41 pm
Has thanked: 19 times
Been thanked: 9 times

Re: Battlefield 4 mesh importer - smoothing groups

Post by Highflex »

Just updated the scripts, reading skeleton files is now fully fixed and everything works with max 2016, ( i should make a new thread for this soon ) (:
artworkplay
veteran
Posts: 116
Joined: Wed Oct 05, 2011 9:40 pm
Has thanked: 49 times
Been thanked: 5 times

Re: Battlefield 4 mesh importer - smoothing groups

Post by artworkplay »

Highflex wrote:Just updated the scripts, reading skeleton files is now fully fixed and everything works with max 2016, ( i should make a new thread for this soon ) (:
Had a chance to try it with Max 2012 but got this while trying to import the skeleton
Error occurred in i loop; filename: C:\Program Files\Autodesk\3ds Max 2012\Scripts\bf4_skeleton_import_H2.ms; position: 2061; line: 94
JakeGreen
mega-veteran
mega-veteran
Posts: 164
Joined: Sun Aug 22, 2010 10:14 pm
Has thanked: 40 times
Been thanked: 11 times

Re: Battlefield 4 mesh importer - smoothing groups

Post by JakeGreen »

Highflex wrote:Just updated the scripts, reading skeleton files is now fully fixed and everything works with max 2016, ( i should make a new thread for this soon ) (:
Do you think you could fix the SWBF importer as it seems to not work with the AT-AT and a few other small models like the very detailed main menu models.
Post Reply