[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-17 Thread Streets Of Boston
Relax,
2.1 will come to your droid starting this week.
http://androidandme.com/2010/03/news/verizon-droid-does-android-2-1-this-week/


On Mar 16, 11:54 pm, Kevin Duffey andjar...@gmail.com wrote:
 Well if it makes you feel any better, us Moto Droid owners were supposed to
 have an Android experience phone, where we would get updates as soon as they
 came out, or soon after. We have been waiting for the 2.1 update for over 2
 months now, with no information from anyone regarding when we'll ever see
 it. It's a bunch of crap really. Nexus already had another update from what
 I understand and we're still waiting for 2.1 for some unknown reason. I
 don't mind waiting as much as the lack of information coming from
 moto/verizion/google. I would like the 2.1 update for the extras, and I
 don't want to root my phone either.



 On Tue, Mar 16, 2010 at 6:35 PM, Greg Donald gdon...@gmail.com wrote:
  On Tue, Mar 16, 2010 at 4:52 PM, Martin google-gro...@digle.de wrote:
   So bad that I cannot test it on my HTC Hero, because I have Android
   1.5 :-(

  Sucks to be us  :(

  My Hero was cool right up until I realized 1.5 sucked and HTC was in
  no hurry to update it.

  --
  Greg Donald
  destiney.com | gregdonald.com

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-17 Thread Mario Zechner
There's a couple of choices, none of them will work fast enough if you
use the Java implementations. Popular choices are Chipmunk (http://
code.google.com/p/chipmunk-physics/) and Box2D (http://
www.box2d.org/). There's also a Java port of Box2D which is called
JBox2D (http://www.jbox2d.org/) i really wouldn't recommend using it
though. It horribly leaks memory due to small object instantiation
when contact points are resolved. You best bet will be to write a JNI
bridge for Box2D or Chipmunk. Both compile easily with the NDK
provided you have a proper Android.mk file.

On 17 Mrz., 15:37, Jiri jiriheitla...@googlemail.com wrote:
 Sorry to be off topic, but can somebody also point me to a 'decent' _2d_
 physics engine.
 I seen a few, but i was wondering what the general consensus is about
 the 'most' reliable one in terms of steady/continues development.

 Cheers,

 Jiri

 On 15/03/2010 15:25, Kevin S. wrote:

      I've completed my first Android application.   It as 3D demo with a
  physics engine.   It uses the phone's accelerometer so that you can
  shake the world by moving the phone around.   There are  options to
  adjust things like gravity, friction, and elasticity.

     The physics engine is a 100% Java port of the open source JigLib
  physics engine.

     However, I only have a Motorola Droid, and I don't know if it will
  work on any other phone.   The project is set to use Android 1.6.

     Before I put it in the market, I was hoping to get some feedback
  from the developer community here.

     If anybody is interested in 3D stuff or physics simulation, you can
  give the app a try.   The link is on the follow page.   There is a
  screen shot there so you can get an idea of what the app is.

 http://www.pieintheskysoftware.com/menuitem-resources-pie-3d-physics-...

  -Kevin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-16 Thread String
You didn't have any 1.x feedback, so I thought I'd kick in...

Works OK on my G1 (stock 1.6), but I only get 5-6 fps. So obviously,
there would be some performance issues for real-time games or other
interactive uses. But it does work.

String

On Mar 15, 5:39 pm, Kevin S. dada...@gmail.com wrote:
 Thanks very much for the feedback Streets, Marc and Mario...

 I spent a lot of time using the profiler in a Windows version to
 reduce the allocation, but I still may need to work on it a bit more.

 When I was looking at physics engines before JJigLib I tried ODE4j,
 but it was too slow.   I didn't see JBullet at the time.   Thanks for
 the tip on JStackAlloc.

 Thanks for the extra points!

 -Kevin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-16 Thread Martin
So bad that I cannot test it on my HTC Hero, because I have Android
1.5 :-(

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: 3D Physics Engine For Android Demo

2010-03-16 Thread Greg Donald
On Tue, Mar 16, 2010 at 4:52 PM, Martin google-gro...@digle.de wrote:
 So bad that I cannot test it on my HTC Hero, because I have Android
 1.5 :-(

Sucks to be us  :(

My Hero was cool right up until I realized 1.5 sucked and HTC was in
no hurry to update it.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: 3D Physics Engine For Android Demo

2010-03-16 Thread Kevin Duffey
Well if it makes you feel any better, us Moto Droid owners were supposed to
have an Android experience phone, where we would get updates as soon as they
came out, or soon after. We have been waiting for the 2.1 update for over 2
months now, with no information from anyone regarding when we'll ever see
it. It's a bunch of crap really. Nexus already had another update from what
I understand and we're still waiting for 2.1 for some unknown reason. I
don't mind waiting as much as the lack of information coming from
moto/verizion/google. I would like the 2.1 update for the extras, and I
don't want to root my phone either.

On Tue, Mar 16, 2010 at 6:35 PM, Greg Donald gdon...@gmail.com wrote:

 On Tue, Mar 16, 2010 at 4:52 PM, Martin google-gro...@digle.de wrote:
  So bad that I cannot test it on my HTC Hero, because I have Android
  1.5 :-(

 Sucks to be us  :(

 My Hero was cool right up until I realized 1.5 sucked and HTC was in
 no hurry to update it.


 --
 Greg Donald
 destiney.com | gregdonald.com

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-15 Thread Streets Of Boston
Works pretty well on my Nexus One. I get about 30 - 35 frames a
second.

On Mar 15, 10:25 am, Kevin S. dada...@gmail.com wrote:
    I've completed my first Android application.   It as 3D demo with a
 physics engine.   It uses the phone's accelerometer so that you can
 shake the world by moving the phone around.   There are  options to
 adjust things like gravity, friction, and elasticity.

   The physics engine is a 100% Java port of the open source JigLib
 physics engine.

   However, I only have a Motorola Droid, and I don't know if it will
 work on any other phone.   The project is set to use Android 1.6.

   Before I put it in the market, I was hoping to get some feedback
 from the developer community here.

   If anybody is interested in 3D stuff or physics simulation, you can
 give the app a try.   The link is on the follow page.   There is a
 screen shot there so you can get an idea of what the app is.

 http://www.pieintheskysoftware.com/menuitem-resources-pie-3d-physics-...

 -Kevin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-15 Thread Mario Zechner
Tried it on my Milestone. Pretty neat. The fps degrade to around 12-15
after some time (essentially when the big plate starts to touch the
ground completely) probably due to there being a lot more contact
points then. Also, the garbage collector is getting a fair amount of
work to do every 5 seconds or so. I don't know much about JigLib but
maybe you could make it so that it uses JStackAlloc. JBullet uses that
library and has no garbage collection at all. I put together a simple
JBullet demo a while back, you can find information on that at
http://apistudios.com/hosted/marzec/badlogic/wordpress/?p=81. I do not
recommend using a pure Java based physics library at this point for a
full featured game unless the scene is really really simple. Consider
using bullet via the NDK.

You get extra points for implementing the activity life cycle
correctly :)

On 15 Mrz., 15:43, Marc Lester Tan mail...@gmail.com wrote:
 Works well on my Nexus One. Cool!

 On Mon, Mar 15, 2010 at 10:25 PM, Kevin S. dada...@gmail.com wrote:
    I've completed my first Android application.   It as 3D demo with a
  physics engine.   It uses the phone's accelerometer so that you can
  shake the world by moving the phone around.   There are  options to
  adjust things like gravity, friction, and elasticity.

   The physics engine is a 100% Java port of the open source JigLib
  physics engine.

   However, I only have a Motorola Droid, and I don't know if it will
  work on any other phone.   The project is set to use Android 1.6.

   Before I put it in the market, I was hoping to get some feedback
  from the developer community here.

   If anybody is interested in 3D stuff or physics simulation, you can
  give the app a try.   The link is on the follow page.   There is a
  screen shot there so you can get an idea of what the app is.

 http://www.pieintheskysoftware.com/menuitem-resources-pie-3d-physics-...

  -Kevin

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: 3D Physics Engine For Android Demo

2010-03-15 Thread Kevin S.

Thanks very much for the feedback Streets, Marc and Mario...

I spent a lot of time using the profiler in a Windows version to
reduce the allocation, but I still may need to work on it a bit more.

When I was looking at physics engines before JJigLib I tried ODE4j,
but it was too slow.   I didn't see JBullet at the time.   Thanks for
the tip on JStackAlloc.

Thanks for the extra points!

-Kevin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en