Thanks ad.
Because I want to show 3DS file instantly after download from free source, it must be 3DS format.
In that case, if I want to show 3DS file loading status, which API can I use?
In 3DS loading example, you use
Object3D[] model = Loader.load3DS(is,scale);
Object3D o3d = new Object3D(0);
Object3D temp = null;
for (int i = 0; i < model.length; i++) {
temp = model;
temp.setCenter(SimpleVector.ORIGIN);
temp.rotateX((float)( -.5*Math.PI));
temp.rotateMesh();
temp.setRotationMatrix(new Matrix());
o3d = Object3D.mergeObjects(o3d, temp); //almost time
o3d.build();// almost time - redundant build
}
It's possible to show status after each mergerObjects.
However, I improve loading time and memory by :
Object3D[] model = Loader.load3DS(is,scale);
Object3D temp = null;
for (int i = 0; i < model.length; i++) {
temp = model;
temp.setCenter(SimpleVector.ORIGIN);
temp.rotateX((float)( -.5*Math.PI));
temp.rotateMesh();
temp.setRotationMatrix(new Matrix());
}
o3d = Object3D.mergeAll(model);// almost time
o3d.build();// almost time
All time is for mergeAll and build, is it impossible to get status during mergeAll and build?