Hello,
How to load multi textured object in jpct-ae?
I load my textures
:
String[] textures = getAssets ().list("textures");
for (int i = 0; i < textures.length; ++i)
{
TextureManager.getInstance().addTexture(textures[i], new Texture(BitmapHelper.rescale(BitmapHelper.loadImage(getResources(). getAssets (). open ("textures" + "/" + textures[i])), 256, 256)));
}
After I load my model in .3ds format
:
ImageTargetsRenderer.obj3D = Object3D.mergeAll(Loader.load3DS(stream, absScale));
I use settexture()
:
obj3D.setTexture("Metal_Co");
obj3D.setTexture("Metal_Ro");
But finally stay just second texture
How to associate the texture with good object and not all objects?
I don't understand how load textures and show them in good place.
help please.