Hi again,
After reading the wiki, I tried the following code.. and i got this..where am i wrong?
static Object3D cube;
public static void main(String[] args) {
cube = Object3D.mergeAll(Loader.loadOBJ(("models/airboat.obj"), null, 10));
try {
new DeSerializer().serialize(cube, new FileOutputStream("models/cube.ser"), true);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
cube.build();
}
Processing object from OBJ-file: noname
Processing object from OBJ-file: shroud
Object 'shroud_jPCT-2' created using 2224 polygons and 1136 vertices.
Processing object from OBJ-file: boat
Object 'boat_jPCT-1' created using 896 polygons and 454 vertices.
Processing object from OBJ-file: engine
Object 'engine_jPCT0' created using 1852 polygons and 1010 vertices.
Processing object from OBJ-file: heads
Object 'heads_jPCT1' created using 520 polygons and 320 vertices.
Processing object from OBJ-file: cylinders
Object 'cylinders_jPCT2' created using 896 polygons and 544 vertices.
Processing object from OBJ-file: emounts
Object 'emounts_jPCT3' created using 1328 polygons and 712 vertices.
Processing object from OBJ-file: intakes
Object 'intakes_jPCT4' created using 644 polygons and 340 vertices.
Processing object from OBJ-file: exhaust
Object 'exhaust_jPCT5' created using 600 polygons and 314 vertices.
Processing object from OBJ-file: shaft
Object 'shaft_jPCT6' created using 446 polygons and 229 vertices.
Processing object from OBJ-file: hub
Object 'hub_jPCT7' created using 618 polygons and 360 vertices.
Processing object from OBJ-file: prop
Object 'prop_jPCT8' created using 426 polygons and 252 vertices.
Processing object from OBJ-file: rudder
Object 'rudder_jPCT9' created using 160 polygons and 84 vertices.
Processing object from OBJ-file: seat
Object 'seat_jPCT10' created using 242 polygons and 128 vertices.
Processing object from OBJ-file: stand
Object 'stand_jPCT11' created using 268 polygons and 140 vertices.
Processing object from OBJ-file: steer
Object 'steer_jPCT12' created using 94 polygons and 52 vertices.
Processing object from OBJ-file: throttle
Object 'throttle_jPCT13' created using 94 polygons and 52 vertices.
[ Wed Dec 26 21:29:31 IST 2012 ] - WARNING: This OBJ-file contains n-polygons with n>4! These polygons wont be displayed correctly!
The problem is, the obj file is of 301kb but the .ser file is greater than 1mb.
Wont it affect the performance of the system?