Moonbase Shootout: Texture Mapping Issues
So in Moonbase Shootout, my entrant for Mini LD #28, I ran into some texture mapping issues.
I'm on LibGDX (which was great to work with!), and here's what my model should look like, textured:
Unfortunately, in-game, the textures didn't map correctly to the mesh.
As you see here, the stripe that should circle the UFO is actually on the bottom, and the purple dome doesn't sit flush.
Here's my texture:
And here's the offending code to load the mesh and the texture:
InputStream in = Gdx.files.internal("data/ufo.obj").read();
Mesh alienMesh = ModelLoaderOld.loadObj(in);
in.close();
Texture alienTexture = new Texture(Gdx.files.internal("data/ufo.png"), Format.RGB565, true);
alienTexture.setFilter(TextureFilter.MipMap, TextureFilter.Linear);
Anyone seen this before?
Comments
JohnColburn
01. Aug 2011 · 23:04 UTC
This is just a guess, but is it possible that the texture is being flipped?
