Log in or register to post comments

Texture on my 3D model is so messed up

October 23, 2012 - 4:55am #1

hi guys, i have a problem at my texture on my 3D model..

i have followed all of the messages herehttps://ar.qualcomm.at/content/replace-3d-model-different-3d-model
and now the 3D model have shown on my android, but the problem is it had a very bad texture..

for the case, i have created my object (named nyancat.blend), to make a Texture Coordinate and the Texture Image i followed this video on youtube - baking textures on blender http://www.youtube.com/watch?v=Tj-S5QAac3U, i saved my texture image (named nyancattexture.png) then i export it to nyancat.obj also convert it into nyancat.h

i have changed my ImageTarget.cpp to show my model, and changed my ImageTarget.java to modify its texture instead of a teapot texture. My model have shown very nice without any glitch vertex, but the texture was sooo messed up..

am i did it wrong when i bake my texture on blender?

Texture on my 3D model is so messed up

October 24, 2012 - 12:04am #4

You're welcome :-)

By the way, if you don't want to flip all your images with an Image Editor, you can flip either flip them programmatically (using the Bitmap API of the Android SDK), like in the example below:

Bitmap temp = BitmapFactory.decodeResource(context.getResources(), resource, opts);
Bitmap bmp = Bitmap.createBitmap(temp, 0, 0, temp.getWidth(), temp.getHeight(), flip, true);

where "flip" is a transformation matrix doing the flip,

or otherwise you can also just flip the texture coordinates, like explained in this Thread:


Enjoy your 3D models!



Texture on my 3D model is so messed up

October 23, 2012 - 11:44pm #3

Waw! Thank you so much Alessandro! :D
Hahaha, it really works, now i can make my own 3D model with vuforia..

Texture on my 3D model is so messed up

October 23, 2012 - 5:29am #2

Hi, the reason could be that your texture is flipped upside-down (we have seen this issue occurring many times);

to fix it, open your image with an image editor, flip it vertically and save it. Then let me know if that was the issue.


Log in or register to post comments