Main Menu
Menu

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.

Show posts Menu

Messages - tuanphong

#1
Quote from: gman on October 19, 2010, 04:40:00 AM
Thanks a lot for your initiated ideas, specially for dl.zerocool and all jPCT team. Great !!!
I'm able to overlay the 3D object on the camera now. Quite fast on my HTC wildfire 2.1.

I have tried many 3D engine. jPCT is the fastest among other engine, rendering and loading.

Nice jPCT engine
Nice team developer.

Many Thanks.

Have you tried libGDX framework ?
Is it fast than jPCT ?
#2
Support / Re: animate md2 serialized object
December 12, 2010, 10:48:50 AM
I have solved this problem
Thanks for your help. :)
#3
Support / animate md2 serialized object
December 09, 2010, 04:20:51 AM
I have a md2 serialized object.
as I read from the documentation, I call function animate(0)
I write this code in onDrawFrame event but it don't animate

Please help me.
#4
Support / Re: Can't deserialize object
November 15, 2010, 12:21:22 AM
Hi, I have change file to mp3. It don't success
So I load it via zip input stream. But it also don't success.
Please help me.

11-15 06:09:35.781: INFO/jPCT-AE(318): Loading Texture...
11-15 06:09:35.822: INFO/jPCT-AE(318): Loading Texture...
11-15 06:09:35.842: INFO/jPCT-AE(318): Loading Texture...
11-15 06:09:35.941: DEBUG/dalvikvm(318): GC freed 181 objects / 7984 bytes in 95ms
11-15 06:09:36.031: DEBUG/dalvikvm(318): GC freed 49 objects / 1880 bytes in 80ms
11-15 06:09:36.082: INFO/jPCT-AE(318): Loading Texture...

[b]11-15 06:09:36.271: INFO/jPCT-AE(318): [ 1289776176272 ] - ERROR: Unsupported version: 0
11-15 06:09:36.271: WARN/System.err(318): java.lang.RuntimeException: [ 1289776176272 ] - ERROR: Unsupported version: 0
11-15 06:09:36.281: WARN/System.err(318):     at com.threed.jpct.Logger.log(Logger.java:159)
11-15 06:09:36.281: WARN/System.err(318):     at com.threed.jpct.DeSerializer.deserialize(DeSerializer.java:31)
11-15 06:09:36.281: WARN/System.err(318):     at com.threed.jpct.Loader.loadSerializedObject(Loader.java:97)
11-15 06:09:36.281: WARN/System.err(318):     at ar.jPCT.jPCT$MyRenderer.onSurfaceCreated(jPCT.java:295)
11-15 06:09:36.292: WARN/System.err(318):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1112)
11-15 06:09:36.301: WARN/System.err(318):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:975)[/b]

11-15 06:09:36.301: INFO/jPCT-AE(318): [ 1289776176307 ] - ERROR: Can't deserialize object: [ 1289776176272 ] - ERROR: Unsupported version: 0
11-15 06:09:36.341: INFO/ActivityManager(66): Displayed activity ar.jPCT/.jPCT: 2052 ms (total 2052 ms)
11-15 06:09:36.371: WARN/dalvikvm(318): threadid=15: thread exiting with uncaught exception (group=0x4001b188)
11-15 06:09:36.381: ERROR/AndroidRuntime(318): Uncaught handler: thread GLThread 8 exiting due to uncaught exception

[b]11-15 06:09:36.422: ERROR/AndroidRuntime(318): java.lang.RuntimeException: [ 1289776176307 ] - ERROR: Can't deserialize object: [ 1289776176272 ] - ERROR: Unsupported version: 0
11-15 06:09:36.422: ERROR/AndroidRuntime(318):     at com.threed.jpct.Logger.log(Logger.java:159)
11-15 06:09:36.422: ERROR/AndroidRuntime(318):     at com.threed.jpct.DeSerializer.deserialize(DeSerializer.java:188)
11-15 06:09:36.422: ERROR/AndroidRuntime(318):     at com.threed.jpct.Loader.loadSerializedObject(Loader.java:97)
11-15 06:09:36.422: ERROR/AndroidRuntime(318):     at ar.jPCT.jPCT$MyRenderer.onSurfaceCreated(jPCT.java:295)
11-15 06:09:36.422: ERROR/AndroidRuntime(318):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1112)
11-15 06:09:36.422: ERROR/AndroidRuntime(318):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:975)[/b]

11-15 06:09:36.441: INFO/Process(66): Sending signal. PID: 318 SIG: 3
11-15 06:09:36.441: INFO/dalvikvm(318): threadid=7: reacting to signal 3
11-15 06:09:36.451: ERROR/dalvikvm(318): Unable to open stack trace file '/data/anr/traces.txt': Permission denied


This is the deserialize code I have write

    Config.maxAnimationSubSequences=100;
       
    String textureString = "C:\\a\\skin.bmp";
        String obj3dString = "C:\\a\\tris_abm.md2";
        String output = "C:\\a\\sf15.ser";

        TextureManager.getInstance().flush();       
     
        Texture grass2 = new Texture(textureString);
        TextureManager tm = TextureManager.getInstance();
        tm.addTexture("grass2", grass2);

        Object3D grass = Loader.loadMD2(obj3dString, 5);
        grass.setTexture("grass2");
        grass.build();

        DeSerializer de = new DeSerializer();
        de.serialize(grass, new FileOutputStream(output), true);


This is serialize code
Loader.loadSerializedObject( new ZipInputStream( res.openRawResource( R.raw.sf15 ) ) );