1
Support / Serialize Object3D on android
« on: September 12, 2013, 07:12:58 pm »
Hello,
I'm working on an android app, where I load .obj meshes loaded via network. This works quite good so far.
Nevertheless, I'd like to cache known meshes on the device to speed up my application.
I tried writing the Object3D[] array which builds the object to a file using java.io.ObjectOutputStream. When I load this file using java.io.ObjectInputStream, I get my Object3D[] back. When I try to add the contained Object3D's to a new created World, I get the error: "ERROR: Object with name 'bottle_part0' already exists!"
Am I doing something obviously wrong?
Is there a chance for a serialization support of Object3D in jPCT-AE?
Thank you!
I'm working on an android app, where I load .obj meshes loaded via network. This works quite good so far.
Nevertheless, I'd like to cache known meshes on the device to speed up my application.
I tried writing the Object3D[] array which builds the object to a file using java.io.ObjectOutputStream. When I load this file using java.io.ObjectInputStream, I get my Object3D[] back. When I try to add the contained Object3D's to a new created World, I get the error: "ERROR: Object with name 'bottle_part0' already exists!"
Am I doing something obviously wrong?
Is there a chance for a serialization support of Object3D in jPCT-AE?
Thank you!