Page 1 of 1

Battlefield 4 mesh importer - smoothing groups

Posted: Tue Sep 15, 2015 8:29 pm
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?

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Tue Sep 15, 2015 8:38 pm
by MichaelDarkAngel
Smoothing may be done in the game engine and not saved as part of the model file.

--MDA

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Tue Sep 15, 2015 8:49 pm
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.

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Tue Sep 15, 2015 9:43 pm
by Murdock
thanks for the fast replies!
@Highflex: that would be very appreciated!

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Thu Sep 24, 2015 5:12 pm
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

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Thu Sep 24, 2015 7:51 pm
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.

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Thu Sep 24, 2015 11:41 pm
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.

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Mon Sep 28, 2015 12:27 am
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 ) (:

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Tue Sep 29, 2015 2:20 am
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

Re: Battlefield 4 mesh importer - smoothing groups

Posted: Tue Sep 29, 2015 7:17 am
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.