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 - JKumar

Pages: [1]
Support / Model Size Issue
« on: December 09, 2010, 11:39:49 am »
        Is there any way to reduce the .ser file size as my single md2 is around 700-800 kb but when serialized it goes to 3.5-4.5 MB which is increasing the size.And my app is required to have 15-20 models.

Any way to reduce the file size?

Support / Device issue for the app
« on: November 23, 2010, 02:46:54 pm »

       My app is working on HTC Desire but not able to run on DROID and DROID X. I am developing my app using jPCT engine.

Its not able to load the models in the other devices.Saying can't de-serialize.

What could be the possibility?

Support / Blitting Image using TexturePack
« on: October 22, 2010, 01:35:25 pm »

      I created a texture and added a single image only for testing.

TexturePack Creation:

TexturePack mTexturePack = new TexturePack();   
int imageId = mTexturePack.addImage(((BitmapDrawable)getResources().getDrawable(;

Using the TexturePack
When i am using in the draw as following -

mTexturePack.blit(fb, imageId, 100, 100, true);

Nothing is displaying on the screen and also its getting out of memory. See the log below-

     at com.threed.jpct.VisList.<init>(
    at com.threed.jpct.VisListManager.getVisList(
     at com.threed.jpct.World.renderScene(
    at android.thearena.Game_old$Renderer.onDrawFrame(
    at android.opengl.GLSurfaceView$GLThread.guardedRun(
     at android.opengl.GLSurfaceView$

What i am doing wrong ?

Support / Not able to clear the data
« on: October 12, 2010, 06:04:39 pm »

         I am trying to load the followings

1. A serialized md2 model.
2. A texture
3. A primittives.

It runs fine for the first time but when i restart the app, it gives me OutOfMemory exception.

i used


but the same issue is coming.

Can anyone help out in getting  a way as How to release the resources onDestroy?

Support / Using GLView in xml file
« on: October 12, 2010, 10:19:32 am »

            I am using GLView in xml with some image buttons on it. I am finding problem in recreating it on onResume as not being a part of jPCT.

Can any one guide me as how to utilize jPCT for recreating the GLContext where GLView being in the xml file.

Support / Can't deserialize object
« on: October 07, 2010, 04:53:00 pm »

        I am having a md2 file with 1.67MB and after serializing, it comes to be 9.78 MB.

It gets serialized with some error at the last  and when i am trying to deserialize in jPCT-AE it says

 "Can't deserialize object"

see the log

[7:25:04 PM] JKumar: Number of GL-commands: 15731
Number of Frames: 440
Reading Texture coordinates...
Reading polygonal data...
Reading keyframes...
Coverting MD2-format into jPCT-format...
Processing: walk...
Processing: jump...
Processing: shieldblockdo...
Processing: blockonhead...
Processing: swingattackch...
Processing: swingattackhe...
Processing: jumpattack...
Processing: swingattackch...
Processing: swingattackwa...
Processing: stabwa...
Processing: blockchest...
Processing: deadbackward...
Processing: roll...
Processing: rollblock...
Processing: rollattack...
Processing: kick...
Processing: punch...
Processing: breath...
Processing: standturnlr...
Processing: walkbendr...
[ Thu Oct 07 19:24:49 IST 2010 ] - ERROR: Too many sub-sequences defined. Modify configuration to allow a higher number.
Processing: fencingwalk...
[ Thu Oct 07 19:24:49 IST 2010 ] - ERROR: Too many sub-sequences defined. Modify configuration to allow a higher number.
Processing: absorbingattac...
[ Thu Oct 07 19:24:49 IST 2010 ] - ERROR: Too many sub-sequences defined. Modify configuration to allow a higher number.

Is there issue with md2 file as its running fine in  "md2Viewer 1.4".

Any guess


              I am having a md2 file with different animation sequence. I am able to run all of them as they are in the model.

  For simulating the walk animation in 3D World in jPCT, i need to translate the model.The problem i am facing is that the walk simulation is not coming correctly, as lag between animation and translation.

And my question is that -

is there any way where the animation object can return simple vector and it can be passed to translate method ?

Or any other way of achieving the lag between animation and translation?

Support / Model getting rotated while translating
« on: October 04, 2010, 08:35:02 am »

        My models are getting rotated when i am trying to translate it.

I am attaching my file......Plz help it out.

[attachment deleted by admin]

Support / Facing problem on onResume
« on: September 28, 2010, 03:11:02 pm »

       I am using my app in landscape mode and when it is resuming, the app is displaying the black screen only.

I am testing on HTC Tattoo.

Support / How to add multiple lights in Android Engine
« on: September 22, 2010, 09:16:23 am »

       I want  to add multiple lights in android engine but not sure how to proceed.

Plz help me out.

Support / Not able load md2 file with size 358 KB
« on: September 15, 2010, 02:52:14 pm »

          I tried to load a md2 file with size 358 kb but its going out of memory.

Is there any max limit for the jPCT engine for rendering md2 files??

Can anyone provide any reference for loading and rendering a md2 file as i followed the same process of using Loader.loadMD2 but its going out of memory?

Please help

Support / OBJ file and animation implementation
« on: August 30, 2010, 09:45:41 am »

          I have an obj file and i am looking for implementing animation without using a set of obj, like using bones, skeleton information as in Ninja project.

 I am looking for a suggestion to proceed.

I am in urgent need of help so that i can start thinking in that direction.

Please Help

Pages: [1]