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

Convert OBJ with texture generates G3DJ with opacity 0 #49

Closed lfrodrigues closed 10 years ago

lfrodrigues commented 10 years ago

When I use fbx-conv 0.01.0000 x64 to convert a OBJ into G3DJ the texture material gets opacity value 0 so the model won't be visible (0 for transparent, right?).

If I change the opacity value in G3DJ file to 1 the model becomes visible.

xoppa commented 10 years ago

Assuming you're using blender, this is a known problem of the latest version of blender. See also: https://github.com/libgdx/libgdx/wiki/Importing-Blender-models-in-LibGDX#wiki-troubleshooting-missing-textures. The problem is that blender wrongfully uses zero as a default value when a value isn't explicitly set. This is also the cause of the RrSs warning. The solution is simply to set the opacity to one in blender. If this isn't the issue you're experiencing, please supply more information on how to reproduce the issue. BTW: Never ever use OBJ files, instead use FBX.

lfrodrigues commented 10 years ago

I'm using 3DS, is it a known problem also?

lfrodrigues commented 10 years ago

@xoppa, apparently this has been solved in one of the latest nightly, right? At least all my test files are converting fine.

xoppa commented 10 years ago

Not that I'm aware of, perhaps it was fixed by updating the fbx-sdk. Anyways, glad it's fixed for you.