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 117 forks source link

Can't load any file #97

Closed midn1 closed 8 years ago

midn1 commented 8 years ago

Whenever I try to load an FBX file the program says this: `----------------------------------- fbx-conv-win32.exe -v -m 32 -b 12 -w 4 spaceship1.fbx libgdx-model-viewer.temp.g3dj

INFO: FBX to G3Dx converter, version 0.01.0071 x32 , FBXSDK 2015.01 STATUS: Loading source file ERROR: FBX SDK encountered an error (1): Unexpected file type ERROR: Error loading source file STATUS: Closing source file `

If it's an OBJ: `----------------------------------- fbx-conv-win32.exe -v -m 32 -b 12 -w 4 spaceship1.obj libgdx-model-viewer.temp.g3dj

INFO: FBX to G3Dx converter, version 0.01.0071 x32 , FBXSDK 2015.01 STATUS: Loading source file ERROR: FBX SDK encountered an error (1): File not opened ERROR: Error loading source file STATUS: Closing source file`

xoppa commented 8 years ago

Works fine for me. Without more information my guess is that your source model is invalid or something.

midn1 commented 8 years ago

I exported both of them from C4D. Really have no idea what to change in the export settings.

xoppa commented 8 years ago

How did you verify it is indeed an issue with fbx-conv and not with the file? Perhaps consider testing the file in another application the uses FBX-SDK. E.g. the Autodesk FBX Converter.

midn1 commented 8 years ago

I just tried Autodesk's FBX converter and it worked.

xoppa commented 8 years ago

Must be something else then, perhaps try another file or desktop. Anyways, as said, without the required information to reproduce the issue, there's not much we can do.

midn1 commented 8 years ago

I tried it on my Ubuntu and the same error occoured.

xoppa commented 8 years ago

Yeah, let's close this. As said, if you don't want to provide the required information then there is nothing we can do.

gerpanobanano commented 6 years ago

Got the same issue with C4D R19, since this issue still pops in the first page on google I would like to share what worked for me: inspecting the .obj file exported by C4D it comes out that it has some empty lines, just remove them and repeat the conversion, it works.

userLikun commented 5 years ago

image image image

Got the same issue with 3D demo file