the4chancup / pes-fmdl-blender

New and improved blender plugin for FMDL files used by Pro Evolution Soccer 2018 and later
7 stars 7 forks source link

Bounding Boxes. #3

Open Shawminator opened 4 years ago

Shawminator commented 4 years ago

I have an issues where the bounding boxes are too small after exporting from blender. manually checking the most outside vertices of the group i have(taking into the rotation when converting to fmdl) x max = 66.00005 x min = -79.91892 y max = 1.69e-05 x min = 0 z max = 67.2536 z min = -44.00002

the bounding box size in the converted fmdl is as follows x max = 54.50103 x min = -5504894 y max = 1.452863E-07 y min = 0 z max = 42.3854 min z = 22.05133

as you can see the boxes is quite a bit smaller and this causes clipping in games especially during replays i am using the script to export fmdls for stadiums if you are wondering why the boxes are so big.

Shawminator commented 4 years ago

Upon checking it seems that in the fmdl there is two bounding box definitions , one for each mesh group. should this not only contain one bounding box definition for all mesh groups within the one fmdl?

Shawminator commented 4 years ago

Sorry for so many updates, i was missing a parent in blender, the #win\fmdlname, this create the proper bounding box. but this way creates three bounding box difinitions, 1 for the whole group and two for each part in the group, i dont believe this is needed, only the main overall BB is needed