I'm starting with the cartoon network code for a framework because it's small and a little easier to understand and I'm rusty with my Java. Anyway, I have an object loaded from this code:
Object3D[] obj= Loader.load3DS("Shadow.3DS", 1);
Object3D Toy=new Object3D(0);
for (int i=0; i<obj.length; i++) {
Object3D part=obj[i];
part.setCenter(SimpleVector.ORIGIN);
part.rotateX((float)-Math.PI);
part.rotateMesh();
part.setRotationMatrix(new Matrix());
Toy=Object3D.mergeObjects(Toy, part);
}
Toy.translate(0, 0, 0);
What I don't quite understand is it starts out with this Object3d array named obj, loads the model, and doesn't mention it again until it's rotating some parts. What I'd like to know is how would I load the next object and would that rotation code that sets it aright with the world work for the second object also, or is that just parts of one object and it has to be redone?
So, this code was made for some kind of cartoon effect, but I want to modify it so it just loads multiple objects and sets them right side up.