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.


Topics - SumiGhosh

Pages: [1]
1
Support / Few Textures are not loading into the model
« on: August 20, 2015, 07:23:46 am »
Hi,

below is my code

Code: [Select]
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

Code: [Select]
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){}

Pages: [1]