Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - BABABLACK_911

Pages: [1]
1
Support / Error while trying to load .SER file in jPCT-AE
« on: December 31, 2012, 08:54:54 am »
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.

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. :)

2
Support / To convert an OBJ into .SER format.
« on: December 21, 2012, 07:07:32 pm »
Hello everyone, i am new to jpct engine and i've tried some examples given on the website. Tried loading some .obj file and it worked fine.

however, i have a question that it is mentioned that jpct-ae also uses .ser files but I dont know how to convert (obj, 3ds etc ) into
.ser format.

Do i need to write my own code for this or is there any other method?

Please help.

Sid,  ;)

Pages: [1]