facebookincubator / FBX2glTF

A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.
Other
2.09k stars 330 forks source link

Artifacts after converting to gltf #137

Open alekbarszczewski opened 6 years ago

alekbarszczewski commented 6 years ago

Here is a fbx file I am trying to convert to gtltf: https://s3-eu-west-1.amazonaws.com/some-tmp-files/pocky_FBX_notextures.fbx with command

FBX2glTF --binary --verbose pocky_FBX_notextures.fbx

I am using version FBX2glTF version 0.9.6 of converter. For some reason gltf gets deformed a little bit during animation (box particulary). However when I load fbx in autodesk fbx review then it looks ok (not deformed).

gltf_viewer

FBX is exported from Maya3D 2017. The strange thing is that if those three mesh groups (box, bag and sticks) are exported to separate fbx files then converting each of them to separate glb file generates correct (not deformed) model.

Here are GLBs from separate FBXes (those three were actually generated with some online tool but it works same with FBX2glTF - nothing is deformed):

Any idea why this deformation is happening? I am struggling with this for few days now and still can't figure it out? I guess it must be something with skinning/bones?

zellski commented 6 years ago

Wow, this is mysterious and interesting. Thanks for the detailed report. I don't have any immediate thoughts on what's going on, but hopefully I can replicate the issue. That should it easier to find.