Hi
I tried to load a house.3ds file using JPCT-AE. i have multiple texture files to add. Below is the way how i am attaching the textures.
house= load3DSModel(
mActivity.getResources().openRawResource(R.raw.cottagen131214),
0.5f);
TextureManager.getInstance().addTexture(
"003.jpg",
new Texture(
BitmapHelper.rescale(BitmapHelper.convert(mActivity
.getResources().getDrawable(R.drawable.c003)),
128, 128)));
TextureManager.getInstance().addTexture(
"009.jpg",
new Texture(
BitmapHelper.rescale(BitmapHelper.convert(mActivity
.getResources().getDrawable(R.drawable.c009)),
128, 128)));
TextureManager.getInstance().addTexture(
"119.jpg",
new Texture(
BitmapHelper.rescale(BitmapHelper.convert(mActivity
.getResources().getDrawable(R.drawable.c119)),
128, 128)));
TextureManager.getInstance().addTexture(
"221 roof gray.jpg",
new Texture(BitmapHelper.rescale(BitmapHelper.convert(mActivity
.getResources().getDrawable(R.drawable.c221roofgray)),
128, 128)));
TextureManager.getInstance().addTexture(
"Doski113.jpg",
new Texture(BitmapHelper.rescale(BitmapHelper.convert(mActivity
.getResources().getDrawable(R.drawable.doski113)), 128,
128)));
TextureManager.getInstance().addTexture(
"old3.jpg",
new Texture(
BitmapHelper.rescale(BitmapHelper.convert(mActivity
.getResources().getDrawable(R.drawable.old3)),
128, 128)));
TextureManager.getInstance().addTexture(
"OLDMETAL.jpg",
new Texture(BitmapHelper.rescale(BitmapHelper.convert(mActivity
.getResources().getDrawable(R.drawable.oldmetal)), 128,
128)));
TextureManager.getInstance().addTexture(
"stone_paving_01.jpg",
new Texture(BitmapHelper.rescale(BitmapHelper
.convert(mActivity.getResources().getDrawable(
R.drawable.stone_paving_01)), 128, 128)));
It seems not working. Please help me to apply the multiple textures to my .3ds model. thanks in advance.