3D Model looking strange after loaded in LibGDX

Anything libgdx related goes here!

3D Model looking strange after loaded in LibGDX

Postby niks » Fri Feb 28, 2014 8:15 pm

Hi everybody,

I have developed a model in Blender which looks like this:

1.jpg
1.jpg (16.67 KiB) Viewed 1560 times


But for some reason when I load it into LibGDX this freak of nature pops out:

2.jpg
2.jpg (10.96 KiB) Viewed 1560 times


I exported it from Blender as fbx and then converted to g3dj to load it into LibGDX.

Do you have any idea what might be the reason? :roll: Thanks in advance!
niks
 
Posts: 15
Joined: Sat Feb 08, 2014 7:46 pm

Re: 3D Model looking strange after loaded in LibGDX

Postby xoppa » Fri Feb 28, 2014 9:26 pm

Assuming you mean that the texture is incorrectly mapped on the model (your first image doesn't show a texture at all), make sure to use the -f command line option of fbx-conv to flip the texture coordinates.
fbx-conv -f -o G3DJ model.fbx
xoppa
 
Posts: 689
Joined: Thu Aug 23, 2012 11:27 pm

Re: 3D Model looking strange after loaded in LibGDX

Postby niks » Sun Mar 02, 2014 1:14 pm

xoppa wrote:Assuming you mean that the texture is incorrectly mapped on the model (your first image doesn't show a texture at all), make sure to use the -f command line option of fbx-conv to flip the texture coordinates.
fbx-conv -f -o G3DJ model.fbx


Actually it turned out that I was using the -f and exactly that was the problem. Thanks! ;)
niks
 
Posts: 15
Joined: Sat Feb 08, 2014 7:46 pm


Return to Libgdx

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], xpdt and 1 guest