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

the opacity is 0,if convert fbx export by maya2014 #101

Open talentJian opened 7 years ago

talentJian commented 7 years ago

I found a problem,sames model,Export from Maya and convert to g3dj,the materials atrribute "opacity " is "0.00",if export by 3dMax and convert to g3dj thats "1.000"

talentJian commented 7 years ago

maybe ,maya opacity 0 mean the model is not alpha,but on libgdx it is.

xoppa commented 7 years ago

https://github.com/libgdx/libgdx/wiki/More-Info

talentJian commented 7 years ago

"materials": [ { "id": "TanksScene:TankColour", "ambient": [ 0.000000, 0.000000, 0.000000], "diffuse": [ 0.109395, 0.607843, 0.107266], "emissive": [ 0.000000, 0.000000, 0.000000], "opacity": 0.000000, "specular": [ 0.500000, 0.500000, 0.500000], "shininess": 6.311791 }, { "id": "TanksScene:TankGrey", "ambient": [ 0.588235, 0.588235, 0.588235], "diffuse": [ 0.128206, 0.128206, 0.128206], "emissive": [ 0.000000, 0.000000, 0.000000], "opacity": 0.000000, "specular": [ 0.000000, 0.000000, 0.000000], "shininess": 6.311791 }, { "id": "TanksScene:TankLights", "ambient": [ 0.000000, 0.000000, 0.000000], "diffuse": [ 1.000000, 1.000000, 1.000000], "emissive": [ 0.000000, 0.000000, 0.000000], "opacity": 0.000000, "specular": [ 0.500000, 0.500000, 0.500000], "shininess": 6.311791 } ],

look,if i use fbx-convert to convert fbx which maya export,the opacity is 0.0000

mgsx-dev commented 5 years ago

i know it's pretty old but i tested with a FBX file from Maya and opacity is fine with master branch.

i guess because of fix #94 which is not part of latest fbx-conv release.

@talentJian maybe you can provide your original FBX file in order to confirm?