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

Pages: 1 [2] 3
16
Support / Md2 format conversion problems to the ser
« on: July 04, 2011, 09:09:05 am »
 ::)     i'll try change the md2 format(228,764  bytes) to ser,but its size become too large(1,063,604  bytes) , e.g. i want to conversion snork.md2 to snork.ser,there is my code .

Code: [Select]
TextureManager.getInstance().addTexture("disco",
new Texture("res/disco.jpg"));
Object3D alien = Loader.loadMD2("res/snork.md2", 0.8f);
alien.setTexture("disco");
alien.compile(true);
alien.build();
alien.getAnimationSequence().remove(3);
alien.getAnimationSequence().remove(4);
alien.getAnimationSequence().remove(6);
alien.getAnimationSequence().remove(7);
new DeSerializer().serialize(alien, new FileOutputStream("snork.ser"),
true);


i wonder why it become too large after conversion format ;D

17
Support / Re: State of OpenGL ES2.0 support
« on: May 26, 2011, 05:28:41 am »
eh,can you open up the source code of some of the above?They look very nice. :o

18
Support / Re: AdvancedExample OutOfMemoryError
« on: May 25, 2011, 02:41:51 am »
i see, I will try, thank you ;)

19
Support / Re: AdvancedExample OutOfMemoryError
« on: May 24, 2011, 02:48:10 pm »
eh,i borrow my classmate's HD2, :D,running,So excited.

20
Support / Re: AdvancedExample OutOfMemoryError
« on: May 24, 2011, 02:29:47 pm »
I do not understand the "remove the sequences from the animation that you don't need and save the result via the DeSerializer class"
hope you give a brief introduction about it,thank you very much  ;D

21
Support / AdvancedExample OutOfMemoryError
« on: May 24, 2011, 03:46:08 am »
 ::),when i test the example AdvancedExample,i occur the OutOfMemoryError,i try to check it ,and found if load the format md2(after create plane ,rock,not create sky) ,this situation will be encountered.i also setting some parameters. e.g  call forceGeometryIndices() before build() and call strip().  also called the method Texture.defaultTo4bpp(true).
btw : I reduced the size of the picture
there is my error message
Code: [Select]
05-24 01:26:29.331: ERROR/AndroidRuntime(997): java.lang.OutOfMemoryError
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at org.apache.harmony.luni.platform.OSMemory.malloc(Native Method)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at org.apache.harmony.luni.platform.PlatformAddressFactory.alloc(PlatformAddressFactory.java:129)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:65)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at java.nio.ReadWriteDirectByteBuffer.<init>(ReadWriteDirectByteBuffer.java:48)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at java.nio.BufferFactory.newDirectByteBuffer(BufferFactory.java:93)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:65)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at com.threed.jpct.GLRenderer.getTextureStages(GLRenderer.java:1535)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at com.threed.jpct.GLRenderer.init(GLRenderer.java:469)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at com.threed.jpct.FrameBuffer.<init>(FrameBuffer.java:82)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at sim.feel.MyRenderer.onSurfaceChanged(MyRenderer.java:107)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1356)
05-24 01:26:29.331: ERROR/AndroidRuntime(997):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)

22
Support / Re: a question about collision detection
« on: May 23, 2011, 11:49:17 am »
ok i know,very very grateful for your patience and answers

23
Support / Re: null pointer at world 1021
« on: May 23, 2011, 11:32:38 am »
Your code may be less
"world = new World()"or "fb=new FrameBuffer(gl,width,height)"

24
Support / Re: null pointer at world 1021
« on: May 23, 2011, 11:21:56 am »
Null pointer in this line "at com.loxai.run.GameRenderer.onDrawFrame(GameRenderer.java:104)"

25
Support / Re: a question about collision detection
« on: May 23, 2011, 11:11:48 am »
well,thanks for you answer,and maybe it is right,but its speed i can't accept ,as you know,one game running slowly(fps only 1~3) would't popular. :P

26
Support / Re: a question about collision detection
« on: May 23, 2011, 04:58:42 am »
 :-[, i running it on emulator, which version is 2.1-update1, i change it to 2.3.1,but running slowly too.
btw,i have a htc g1.

27
Support / Re: a question about collision detection
« on: May 22, 2011, 05:13:03 am »
yes, i know ,but i found a program from the website that 'http://www.jpct.net/wiki/index.php/Collision_detection' running low too, how can i optimize it, hope you give me some advise or some examples , thank you. ;D

28
Support / Re: a question about collision detection
« on: May 21, 2011, 11:32:08 am »
Why is the efficiency of the program up and running so low, fps only 1 or 2, Is there any way to optimize it, the following is the information displayed in Logcat,   :(

Code: [Select]
05-21 09:25:33.636: INFO/System.out(224): 2fps
05-21 09:25:33.726: DEBUG/dalvikvm(224): GC freed 16112 objects / 519040 bytes in 177ms
05-21 09:25:33.726: INFO/System.out(224): 2fps
05-21 09:25:36.886: DEBUG/dalvikvm(224): GC freed 15199 objects / 487848 bytes in 120ms
05-21 09:25:38.426: INFO/System.out(224): 2fps
05-21 09:25:39.776: DEBUG/dalvikvm(224): GC freed 14251 objects / 457592 bytes in 244ms
05-21 09:25:40.256: INFO/System.out(224): 1fps
05-21 09:25:41.786: INFO/System.out(224): 1fps
05-21 09:25:42.906: DEBUG/dalvikvm(224): GC freed 17772 objects / 570376 bytes in 221ms
05-21 09:25:43.617: INFO/System.out(224): 1fps
05-21 09:25:45.246: INFO/System.out(224): 1fps
05-21 09:25:45.937: DEBUG/dalvikvm(224): GC freed 17038 objects / 546856 bytes in 219ms
05-21 09:25:47.056: INFO/System.out(224): 1fps

29
Support / Re: a question about collision detection
« on: May 18, 2011, 01:21:34 pm »
EgonOlsen,thank you, ;)

30
Support / Re: a question about collision detection
« on: May 18, 2011, 11:35:47 am »
 ;D   Ah, I know, e.g. if a cube and a sphere to a collision, how to deal with it.

Pages: 1 [2] 3