I am able to change image dynamically using this code :
public void changeImage()
{
Log.d("debug1", "" + getCurrentScene().getNumChildren());
ArrayList<Object3D> objectList = getCurrentScene().getChildrenCopy();
Material material = objectList.get(0).getMaterial();
for (ATexture texture : material.getTextureList())
{
material.removeTexture(texture);
texture = null;
}
Texture t = new Texture("sphereTexture",R.drawable.newImage);
t.shouldRecycle(true);
try {
material.addTexture(t);
}
catch (Exception e){e.printStackTrace();}
}
Now I want to change image with animation.Please help how to animate sphere.
Try this,
On click of your imageview, add an animation.