BulletPhysics(Physics Engine) Android Port – Demo App using OpenGL

In my last post I discussed about the BulletPhysics port on android. Now in this post I am going to elaborate how to use it with OpenGL graphics to visualize the the BulletPhysics. In my last post I ported BulletPhysics the using NDK build system for Android. This time I have extended that port to bind the graphics with that. I wrote the drawing logic of the object in OpenGL. I have created a very simple scene in which four balls fall and moves according to the physics laws. The transformation in the balls positions and orientations is handled by the bullet.

Hope you would find this interesting. For more detailed documentation you can refer http://bulletphysics.org/ for Bullet and http://opengl.org/for OpenGL.

Checkout code: https://github.com/manoj-chauhan/AndroBullet


BulletPhysics(Physics Engine) Android Port – Hello World

Technological advancements in mobile computing have affected our life and business as well. Now we expect from our mobile devices(phones, tablets) high quality communication, entertainment, education, gaming and much more.
These days technological advancements have made our mobile device much powerful that the desktop computer we were using 10 years back. Now we have more processing power, graphics processing power, much higher capacity RAM’s in our devices which has opened avenues for the high end computing on our small handheld devices. In this gaming comes very first. Every gamer needs the best in terms of quality and technology. Simulation for the real world is always more catchy and interesting in gaming. I am talking about 3D world simulation. If it is added by the physics simulation in 3D it adds value and interest in the game for gamer. In this article I am going to talk about 3D physics simulation only.

It is always been a hard part to implement the physics laws in the game logic. And to overcome this problem and to get it done easily we have BulletPhysics physics engine. There are so many physics engines available in market most of them are not for mobile platform or propitiatory. The best part of the BulletPhysics is, it is free and open source community project. Enthusiasts and professional developer can use it to add physics to their games.

When someone decides to use this on any mobile platform, the biggest hurdle comes in the way is porting the engine to that platform. As we all know Android is gaining huge acceptance in the market and has a big slice of market pie. I decided to port BulletPhysics to Android. You can download the HelloWord of BulletPhyics ported on android. Right now it doesn’t have the GUI but soon in my next post I would post demos on this. You can download and run this by just importing it to you eclipse IDE. The source you can download from the link mentioned below. The output would come on logcat.

Hope you would find this interesting and for more detailed documentation you can refer the http://bulletphysics.org/.

Checkout code: https://github.com/manoj-chauhan/AndroBullet