SOLVEDHello it is me again
Thanks to the help of Egon i applied textures to my .3ds object and load it successfully into android
now i got another question i have read all the posts about multitexturing but i still have a question about it
In some posts its said that .3ds doest not support multi texturing but there is also said that you can apply multiple textures by using the TExtureManager with the rigth names
so what do i have to do?
Do i have to load my model splitted up by texture like one .3ds file for the roof with the roof texture
another .3ds for the wall with the wall texture
and then merge them together
or
do i have to apply all the textures on one .3ds model and use the texture names for the texture manager??
i tried it using the texturemanager but i am not getting it to work the textures are not showed at all
so what is the best way and maybe some explination code would help
thank you
this is my code right now
try {
Texture teppich=new Texture(assetManager.open("teppichHems.jpg"));
Texture decke=new Texture(assetManager.open("StyroporDecke.jpg"));
Texture wand=new Texture(assetManager.open("WandBlech.jpg"));
TextureManager.getInstance().addTexture("Texture.001", teppich);
TextureManager.getInstance().addTexture("Texture", decke);
TextureManager.getInstance().addTexture("Texture.002", wand);
} catch (IOException e) {
e.printStackTrace();
}
try {
model = Loader.load3DS( assetManager.open("thirdfloorAndroid.3ds"), 1);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}