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

Pages: [1]
1
Support / Re: Need to collide two md2 (animated character)
« on: October 30, 2010, 11:53:39 am »
!!!!Thanks anyway!!!!!

2
Support / Re: Need to collide two md2 (animated character)
« on: October 29, 2010, 04:58:25 pm »
Thanks My friend....I think Idea two is perfect...can you please tell me some coding syntex for the Idea two, means how can i do this as i am new in this field and dnt know much more about this...it will be highly appreciated if you can do this..or just give some sample code of this....please don't reffer me to some other link... ;)..thanks!!!!!

3
Support / Re: Need to collide two md2 (animated character)
« on: October 29, 2010, 03:00:55 pm »
yes...My Friend...I want to recognize punches and kicks, not the simple object collision..

4
Support / Re: Need to collide two md2 (animated character)
« on: October 29, 2010, 02:34:05 pm »
No..it will be like two ninja character but in md2 form not like bones files...and wants to fight them with each other and show some change in color or kind of blood on hit.

5
Support / Re: Need to collide two md2 (animated character)
« on: October 29, 2010, 07:06:36 am »
Ok then what is solution of this? Please let me know the steps to solve this problem...Im just having 1. A and B two animated files only 2. Loading these two by loadSerializedObject...now what next steps i need to follow to collide these two file with eachother? what method, listeners and under which class or functions in need to delacre all those....Please Help me !!!!! just make a simple example of this in android or just guide me in right direction....Please please please!!!!!!

6
Support / Need to collide two md2 (animated character)
« on: October 28, 2010, 05:43:44 pm »
Hi All,
 
I am loading two md2 (in serialize form) file using Loader.loadSerializedObject(A) and Loader.loadSerializedObject(B) in side onSurfaceCreated. A and B both are animated (like Ninja they Jump, Kick) and using animate to animate these two charcter. I want to collide both there Animated Character and want to show some change in color kind of blood when they both collide. Please let me know if anyone know the solution and please tell me the steps how can I achieve this collision between these two animated characters. I will give him some reward if he/she can help me to get out of this problem or find some solution.
Inside public void onSurfaceCreated(GL10 gl, EGLConfig config) I am trying with following method but itís  not working . I am not able to find any Collision and CollisionListener is not working.

A.animate (counter, animationSequenceCounter)
B.animate (counter, animationSequenceCounter)

A.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
A.setCollisionOptimization(Object3D.COLLISION_DETECTION_OPTIMIZED);
B.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
B.setCollisionOptimization(Object3D.COLLISION_DETECTION_OPTIMIZED);
A.addCollisionListener(new CollisionListener()
{
@Override
public boolean requiresPolygonIDs()
{
                                 return true;
}
@Override
public void collision(CollisionEvent e)
{
   if (e.getType()==CollisionEvent.TYPE_TARGET && e.getSource()!=null)
     {
                                    destroy();
                     
    
}
}
 });
B.addCollisionListener(new CollisionListener()
{
@Override
public boolean requiresPolygonIDs()
{
return true;
}
               
@Override
public void collision(CollisionEvent e)
{
                  
if (e.getType()==CollisionEvent.TYPE_TARGET && e.getSource()!=null)
 {
destroy();
    }
                  
}
 });

Thanks & Regards,
GKapoor

7
Support / Re: out of memory
« on: October 17, 2010, 12:41:32 pm »
After recovering from a pause...

8
Support / out of memory
« on: October 16, 2010, 12:22:38 pm »
Hi, i am not able load model second time its giving out of memory issue..first time its working fine....please see this log

----------------------------------------------------------
10-16 15:20:27.552: INFO/dalvikvm-heap(3017): Clamp target GC heap from 25.982MB to 24.000MB
10-16 15:20:27.552: DEBUG/dalvikvm(3017): GC freed 886 objects / 22952 bytes in 39ms
10-16 15:20:27.552: INFO/dalvikvm-heap(3017): Forcing collection of SoftReferences for 3812-byte allocation
10-16 15:20:27.592: INFO/dalvikvm-heap(3017): Clamp target GC heap from 25.982MB to 24.000MB
10-16 15:20:27.592: DEBUG/dalvikvm(3017): GC freed 0 objects / 0 bytes in 39ms
10-16 15:20:27.592: ERROR/dalvikvm-heap(3017): Out of memory on a 3812-byte allocation.
10-16 15:20:27.592: INFO/dalvikvm(3017): "GLThread 9" prio=5 tid=13 RUNNABLE
10-16 15:20:27.592: INFO/dalvikvm(3017):   | group="main" sCount=0 dsCount=0 s=N obj=0x46421490 self=0x161568
10-16 15:20:27.592: INFO/dalvikvm(3017):   | sysTid=3055 nice=0 sched=0/0 cgrp=default handle=1300368
10-16 15:20:27.592: INFO/dalvikvm(3017):   at com.threed.jpct.DeSerializer.readFloatArray(DeSerializer.java:~300)
10-16 15:20:27.592: INFO/dalvikvm(3017):   at com.threed.jpct.DeSerializer.readMesh(DeSerializer.java:279)
10-16 15:20:27.592: INFO/dalvikvm(3017):   at com.threed.jpct.DeSerializer.readAnimation(DeSerializer.java:236)
10-16 15:20:27.592: INFO/dalvikvm(3017):   at com.threed.jpct.DeSerializer.deserialize(DeSerializer.java:180)
10-16 15:20:27.592: INFO/dalvikvm(3017):   at com.threed.jpct.Loader.loadSerializedObject(Loader.java:97)
10-16 15:20:27.592: INFO/dalvikvm(3017):   at android.thearena.Game$Renderer.onSurfaceCreated(Game.java:623)
10-16 15:20:27.592: INFO/dalvikvm(3017):   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1114)
10-16 15:20:27.592: INFO/dalvikvm(3017):   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:977)
10-16 15:20:27.592: ERROR/dalvikvm(3017): Out of memory: Heap Size=20423KB, Allocated=19819KB, Bitmap Size=4188KB
10-16 15:20:27.632: WARN/dalvikvm(3017): threadid=13: thread exiting with uncaught exception (group=0x4001b390)
10-16 15:20:27.642: ERROR/AndroidRuntime(3017): Uncaught handler: thread GLThread 9 exiting due to uncaught exception
10-16 15:20:27.642: ERROR/AndroidRuntime(3017): java.lang.OutOfMemoryError
10-16 15:20:27.642: ERROR/AndroidRuntime(3017):     at com.threed.jpct.DeSerializer.readFloatArray(DeSerializer.java:300)
10-16 15:20:27.642: ERROR/AndroidRuntime(3017):     at com.threed.jpct.DeSerializer.readMesh(DeSerializer.java:279)
10-16 15:20:27.642: ERROR/AndroidRuntime(3017):     at com.threed.jpct.DeSerializer.readAnimation(DeSerializer.java:236)
10-16 15:20:27.642: ERROR/AndroidRuntime(3017):     at com.threed.jpct.DeSerializer.deserialize(DeSerializer.java:180)
10-16 15:20:27.642: ERROR/AndroidRuntime(3017):     at com.threed.jpct.Loader.loadSerializedObject(Loader.java:97)
10-16 15:20:27.642: ERROR/AndroidRuntime(3017):     at android.thearena.Game$Renderer.onSurfaceCreated(Game.java:623)
10-16 15:20:27.642: ERROR/AndroidRuntime(3017):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1114)
10-16 15:20:27.642: ERROR/AndroidRuntime(3017):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:977)
10-16 15:20:27.682: VERBOSE/WifiStateTracker(77): DhcpHandler: DHCP request succeeded
10-16 15:20:27.692: DEBUG/WifiStateTracker(77): DhcpHandler: release ddWakeLock
10-16 15:20:27.692: INFO/wpa_supplicant(123): Rx Data Filter Add [5] command
10-16 15:20:27.692: DEBUG/WifiStateTracker(77): change state to connected for wifi supplicant state=COMPLETED
---------------------------------------------------------------------------------------------

!!!!!!!!!!!!!!please help me to get out of this issue!!!!!!!!!!!!!!



9
Yes i read it..but not able find anything related to my issue. Do you have any sample or code from where i start use of jPCT-AE in android. Actually i want to load one model character(.obj format) and wants to animate that mode like jump, fight similar to skelelton example but in android using jPCT-AE and obj model. I don't how can i do this by using jPCT-AE...please help me...

Thanks
GKapoor


10
If i convert these file to png or jpg then how can i texture??

11
Hello,

Please Help me!!!!!!!!! :(

Im having following files

1. subordinate.obj
2. sub_tex_002.tga
3. weap_tex_010.tga
4. weap_tex_012.tga
5. weap_tex_019.tga
6. subordinate.mtl

4 tga texture file and one mtl file of my single .obj file. How can i texture "subordinate.obj" file with these tga file?
 
Thanks & Regards,
gkapoor

12
Support / How to Load .obj file using JPCT in Android?
« on: August 24, 2010, 02:08:19 pm »
Hello,

I am a newer to JPCT. I want to load .obj file using JPCT. It will be very appreciated if anyone could give me such example.

Thanks & Regards,

gkapoor

Pages: [1]