Hi, recently i deserialied an OBJ using jPCT's Desktop Version. (Deserializer)
I Got the resultant .ser file but the problem is that when I try to use that .SER in HelloWorld-AE Example, All I see is the blank screen.
Here's how I deserialized the OBJ file.
And this is what I did in HelloWorld-AE Example...
Hope anyone can solve my query.
I Got the resultant .ser file but the problem is that when I try to use that .SER in HelloWorld-AE Example, All I see is the blank screen.
Here's how I deserialized the OBJ file.
Code Select
static Object3D cube = null;
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
cube = Object3D.mergeAll(Loader.loadOBJ(("models/cube.obj"), null, 10));
cube.build();
new DeSerializer().serialize(cube, new FileOutputStream("ser/cube.ser"), true);
System.out.println("done:");
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
And this is what I did in HelloWorld-AE Example...
Code Select
cube = Loader.loadSerializedObject(res.openRawResource(R.raw.cube));
cube.build();
world.addObject(cube);
Hope anyone can solve my query.