Search code examples
libgdxblender.objuv-mapping

UV mapping not working on imported obj file


I have exported an .obj file (along with .mtl and a .png) from Blender to import into a libgdx project. The file contains both UV and normal data.

I am pulling the file into the app like this:

ModelLoader loader = new ObjLoader();
model = loader.loadModel(Gdx.files.internal("data/car.obj"));

The object should look like this: (Yes, I'm not an artist)

enter image description here

But it ends up looking like this:

enter image description here

What happened to my UV mapping?


Solution

  • Just flip the texture vertically and load the texture it will work fine.

    You can do it using photoshop.