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.


Messages - 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
Projects / Re: Alien Runner W.I.P
« on: December 29, 2012, 05:37:14 pm »
Thanks for the projects, i'd like to say that the prototype one is working. :) Just need to clean up my project all the time before running it. :P
Its a great help to me to understand the concepts more clearly and more clear jPCT-AE :)

3
Support / Re: jPCT-AE wiki
« on: December 29, 2012, 04:31:35 pm »
Thanks a lot Egon, I've activated my account. Also thanks for the prototype projects you sent to me.
I sure will post anything related to jPCT-AE in the wiki.

4
Projects / Re: Alien Runner W.I.P
« on: December 28, 2012, 06:52:44 am »
Hello Egon, are there any other resources available other than the AlienRunner-AE game, So that we can dig in with a few more references?

5
Support / Re: jPCT-AE wiki
« on: December 28, 2012, 06:24:47 am »
Hello Egon, I'd also like to contribute to the wiki, if you dont mind. :)

6
Support / Re: To convert an OBJ into .SER format.
« on: December 27, 2012, 04:00:14 pm »
Okay, Thanks for the support.
And I've seen the ninja example that is implemented using Bones in Android.
So All the animation poses will be defined by the 3d animator or by the programmer's end?

7
Support / Re: To convert an OBJ into .SER format.
« on: December 26, 2012, 05:47:40 pm »
Okay, I have one more Question to ask.
There is an OBJ file named minicooper.OBJ of size more than 6 MB which took 30sec to load on a device powered with mali.
Anyways the point is, I got it serialized to a size of 10Mb, Now wont that increase the size of my Apk ?

Both the objects(OBJ files) loaded  correctly without any issues...

8
Support / Re: To convert an OBJ into .SER format.
« on: December 26, 2012, 05:02:34 pm »
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?

9
Support / Re: To convert an OBJ into .SER format.
« on: December 26, 2012, 04:01:40 pm »
The desktop version isn't running properly.
I am getting this as an error in the desktop version..
please see to it.

--------------------------------------------------

Loading Texture...box.jpg
Java version is: 1.7.0_01
-> support for BufferedImage
Version helper for 1.5+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at org.lwjgl.Sys$1.run(Sys.java:73)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
   at org.lwjgl.Sys.loadLibrary(Sys.java:95)
   at org.lwjgl.Sys.<clinit>(Sys.java:112)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
   at com.threed.jpct.GLHelper.findMode(GLHelper.java:63)
   at com.threed.jpct.GLHelper.findMode(GLHelper.java:58)
   at com.threed.jpct.GLHelper.init(GLHelper.java:156)
   at com.threed.jpct.GLRenderer.init(GLRenderer.java:24)
   at com.threed.jpct.FrameBuffer.enableRenderer(FrameBuffer.java:1134)
   at com.threed.jpct.FrameBuffer.enableRenderer(FrameBuffer.java:753)
   at com.threed.jpct.FrameBuffer.enableRenderer(FrameBuffer.java:700)
   at HelloWorldOGL.loop(HelloWorldOGL.java:38)
   at HelloWorldOGL.main(HelloWorldOGL.java:16)

10
Support / Re: To convert an OBJ into .SER format.
« on: December 25, 2012, 10:49:50 am »
Okay, sure I have downloaded the desktop version for the same. I have read the javadoc for it but I am clueless on how this works?

Sorry for asking this silly question but I am a newbie here.

Hope you don't mind :) :)

11
Support / Re: To convert an OBJ into .SER format.
« on: December 22, 2012, 11:51:17 am »
How to do it in Android?

12
Support / Re: Loading Serialized Object (JPCT-AE)
« on: December 21, 2012, 07:14:31 pm »
Hello Egon,
Is there any other way to convert an OBJ into .SER?
or should we just go with the plugin itself?

13
Support / Re: loading 3d's
« on: December 21, 2012, 07:10:58 pm »
I've achieved the loading of OBJ files.... just replace the code in hello world..

/*cube = Primitives.getDoubleCone(20);
            cube.calcTextureWrapSpherical();
            cube.setTexture("texture");
            cube.strip();
            cube.build();
world.addObject(cube);*/

by this...

cube = Object3D.mergeAll(Loader.loadOBJ(getResources().getAssets().open("airboat.obj"), null, 10));
               cube.build();
               world.addObject(cube);

be sure to surround this snippet by a try catch block.
hope this helps.

14
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]