16
Support / Md2 format conversion problems to the ser
« on: July 04, 2011, 09:09:05 am »
i'll try change the md2 format(228,764 bytes) to ser,but its size become too large(1,063,604 bytes) , e.g. i want to conversion snork.md2 to snork.ser,there is my code .
i wonder why it become too large after conversion format
Code: [Select]
TextureManager.getInstance().addTexture("disco",
new Texture("res/disco.jpg"));
Object3D alien = Loader.loadMD2("res/snork.md2", 0.8f);
alien.setTexture("disco");
alien.compile(true);
alien.build();
alien.getAnimationSequence().remove(3);
alien.getAnimationSequence().remove(4);
alien.getAnimationSequence().remove(6);
alien.getAnimationSequence().remove(7);
new DeSerializer().serialize(alien, new FileOutputStream("snork.ser"),
true);
i wonder why it become too large after conversion format