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
448 stars 116 forks source link

fbx-conv-lin64 FbxMesh geometry #63

Closed rcampos209 closed 10 years ago

rcampos209 commented 10 years ago

The latest version of fbx-conv-lin64 is correctly creating the parts under each node. Thank you xoppa your work is greatly appreciated.

There is one more issue that seems to be occurring. The models seem to be triangulating the mesh geometry for every other mesh.

....
WARNING:  [Box_One] Node uses RrSs mode, transformation might be incorrect
STATUS:   [shape(Box_Four)] Triangulating FbxMesh geometry
STATUS:   [shape(Box_Two)] Triangulating FbxMesh geometry
VERBOSE:  [shape(Box_Three)] polygons: 6 (18 indices), control points: 8
VERBOSE:  [shape(Box_One)] polygons: 6 (18 indices), control points: 8
VERBOSE:  [shape(Box_Four)] polygons: 12 (36 indices), control points: 8
VERBOSE:  [shape(Box_Two)] polygons: 12 (36 indices), control points: 8
STATUS:   Converting source file
....

These are box shapes, so the polygons count should be 12 and indices 36. Here is the FBX file i am using: FBX File

xoppa commented 10 years ago

Thanks, should be fixed now...

traviswimer commented 10 years ago

I have tried the precompiled binaries from both http://libgdx.badlogicgames.com/fbx-conv and http://libgdx.badlogicgames.com:8080/ , and it still appears to be skipping triangulation for half of the meshes. (I am using the Linux version)

Were the binaries simply not updated, or is this still a bug?

traviswimer commented 10 years ago

Sorry, that was my mistake. I was accidentally still using the old version. The current binary works fine.