libgdx / fbx-conv

Command line utility using the FBX SDK to convert FBX/Collada/Obj files to a custom text/binary format for static, keyframed and skinned meshes.
Apache License 2.0
447 stars 116 forks source link

Vertices values "off" when converting to .g3db format #99

Closed CotterPin-Source closed 8 years ago

CotterPin-Source commented 8 years ago

When converting an fbx model from blender to .g3dj, the desired vertex positions are correct, however when converting to .g3db, a good portion of the vertices are very slightly "off".

http://i.imgur.com/EhveAW4.png

The above window shows the proper coordinates created in blender and converted to .g3dj, where the bottom window shows the coordinates generated in the .g3db file.

xoppa commented 8 years ago

That's correct, the g3dj file format is slightly less accurate than the g3db format because for g3dj the numbers are rounded to 6 digits for the textual representation, while for g3db the numbers are used as is. That's why you see a difference when comparing the 6 digit rounded g3dj number to your 8 digit rounded numbers textual representation. That's to be expected.