i don't arrive to load the texture, actually i think to load in my code several texture but the application load only one texture on the all object of the scene.
in my jpct to create the ser i write nothing on the texture, don't you?*
in my application android, (my textures are 256*256 or 512*512) it's not a problem?
TextureManager.getInstance().flush();
TextureManager tm = TextureManager.getInstance();
Texture textureai1 = new Texture(getResources().getDrawable(R.drawable.ai1));
Texture textureai2 = new Texture(getResources().getDrawable(R.drawable.ai2));
tm.addTexture("ai1", textureai1);
tm.addTexture("ai2", textureai2);
Object3D[] scee = Loader.loadSerializedObjectArray(getResources().openRawResource(R.raw.sersce));
world.addObjects(scee);
for(int i = 0; i < scee.length; i++) {
System.out.println("serializing object: " + i + "/" + scee.length);
SimpleVector Sv = new SimpleVector();
Sv.x = 0;
Sv.y = 0;
Sv.z = 0;
scee[i].strip();
scee[i].build();
so i have tried this second code too, because i have said me that the size of texture is too much, but it's more long and sometimes there is a bug (i have to load 32 textures)
TextureManager.getInstance().flush();
TextureManager tm = TextureManager.getInstance();
Texture textureai1 = new Texture(BitmapHelper.rescale(BitmapHelper.convert(getResources().getDrawable(R.drawable.ai1)), 256, 256));
Texture textureai2 = new Texture(BitmapHelper.rescale(BitmapHelper.convert(getResources().getDrawable(R.drawable.ai2)), 256, 256));
textureai1.compress();
textureai2.compress();
tm.addTexture("ai1", textureai1);
tm.addTexture("ai2", textureai2);
Object3D[] scee = Loader.loadSerializedObjectArray(getResources().openRawResource(R.raw.sersce));
world.addObjects(scee);
for(int i = 0; i < scee.length; i++) {
System.out.println("serializing object: " + i + "/" + scee.length);
SimpleVector Sv = new SimpleVector();
Sv.x = 0;
Sv.y = 0;
Sv.z = 0;
scee[i].strip();
scee[i].build();
Do you have a solution??
and another question, if i put color on object in my 3ds ,and i put a spotlight (near camera) in my 3ds or with the application android, will i have the shape effect on the object??