I have no idea if this compiles or work, but that code pretty much holds the idea of what you will need to do to load multiple files and make an animation from it.
//simply merges all of the meshes together
public static Object3D meshMerge(Object3D[] arrayObject3D){
Object3D resultingObject3D = new Object3D(0);
for(int i=0; i<arrayObject3D.length; i++){
Object3D tempObject3D = arrayObject3D[i];
resultingObject3D = Object3D.mergeObjects(resultingObject3D, tempObject3D);
}
return resultingObject3D;
}
public void initAnimation(){
this.animation = new Animation(3);
this.animation.addKeyFrame(meshMerge(Loader.load3DS("man01.3ds", 1)).getMesh());
this.animation.addKeyFrame(meshMerge(Loader.load3DS("man02.3ds", 1)).getMesh());
this.animation.addKeyFrame(meshMerge(Loader.load3DS("man03.3ds", 1)).getMesh());
}
Don't forget to create the main object, set the animation to this.animation, and then play the animation. Here are the following functions to do so:
new Object3D(Object3D obj)
Object3D.setAnimationSequence(Animation anim)
Object3D.animate(float index, int seq)
The loadObjectFromFolder will most likely contain an instance of File so that you can have an idea of what files are inside a particular directory. From there, the function will be loading each Object3D and making that a big animation.