Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - SumiGhosh

#1
Hi,

You were right, it was file not found exception, i have dropped few images in drawables instead of assets folder. That's why texture is not showing.
#2
Hi EgonOlsen,

I too have seen only two textures are loading out of 16 log output. Sorry, by the way what you meant by actually calling the texture load code.

I have attached hello world code.

#3
Support / Few Textures are not loading into the model
August 20, 2015, 07:23:46 AM
Hi,

below is my code


TextureManager.getInstance().addTexture("james_body_lores.jpg", new Texture(getAssets().open("james_body_lores.jpg")));
TextureManager.getInstance().addTexture("james_face_color_lores.jpg", new          Texture(getAssets().open("james_face_color_lores.jpg")));
TextureManager.getInstance().addTexture("james_eye_green_lores.jpg", new Texture(getAssets().open("james_eye_green_lores.jpg")));
TextureManager.getInstance().addTexture("james_mouth_gum_lores.jpg", new Texture(getAssets().open("james_mouth_gum_lores.jpg")));
TextureManager.getInstance().addTexture("james_penis_lores.jpg", new Texture(getAssets().open("james_penis_lores.jpg")));
TextureManager.getInstance().addTexture("james_toenails_lores.jpg", new Texture(getAssets().open("james_toenails_lores.jpg")));
TextureManager.getInstance().addTexture("james_tongue_bump_lores.jpg", new Texture(getAssets().open("james_tongue_bump_lores.jpg")));
TextureManager.getInstance().addTexture("mpants2tex.jpg", new Texture(getAssets().open("mpants2tex.jpg")));
TextureManager.getInstance().addTexture("mcasshoe1tex.jpg", new Texture(getAssets().open("mcasshoe1tex.jpg")));
TextureManager.getInstance().addTexture("james_eye_inner_green.jpg", new Texture(getAssets().open("james_eye_inner_green.jpg")));
TextureManager.getInstance().addTexture("james_eyelashbottran.jpg", new Texture(getAssets().open("james_eyelashbottran.jpg")));
TextureManager.getInstance().addTexture("james_eyelashtoptran.jpg", new Texture(getAssets().open("james_eyelashtoptran.jpg")));
TextureManager.getInstance().addTexture("msock2rtex.jpg", new Texture(getAssets().open("msock2rtex.jpg")));
TextureManager.getInstance().addTexture("mtshirt3tex.jpg", new Texture(getAssets().open("mtshirt3tex.jpg")));
TextureManager.getInstance().addTexture("weavebumpbig4p6.jpg", new Texture(getAssets().open("weavebumpbig4p6.jpg")));
TextureManager.getInstance().addTexture("allback_blacktx.jpg", new Texture(getAssets().open("allback_blacktx.jpg")));
TextureManager.getInstance().addTexture("allback_tr.jpg", new Texture(getAssets().open("allback_tr.jpg")));



I am able to see only few textures on the model. I am using square images for all the texture. I have also attached log of the app.

Update:
I have also tried with loading images which not power of 2 like this

InputStream is=null;
    try {
is = getAssets().open("mcasshoe1tex.jpg");
Bitmap bitmap = BitmapHelper.rescale(BitmapFactory.decodeStream(is), 1024, 1024);
Texture texture = new Texture(bitmap);
bitmap.recycle();
TextureManager.getInstance().addTexture("mcasshoe1tex.jpg", texture);
           }catch(Exception e){}