Bullet Physics and Ogre3D Technology Prototype

100% finished. I finished this prototype project in December 2006. It combines the Ogre3D graphics library with the Bullet Physics real-time physics library. It was a success. It integrated enough of the features of Bullet to do the standard stacking boxes demo. Everything was written in standard C++ using the Codeblocks IDE and the GNU C++ compiler. I only tested under Windows XP but the code should compile nearly effortlessly under Linux or Mac OS.

Project Details

Screenshots

 

Building the Geometry

The geometry was built in Blender along with the scene layout. There are Ogre3D exporter scripts for Blender that allow you to translate Blender geometry into files usable by Ogre3D library functions.

 

Writting the C++ Code

I used the Codeblocks IDE along with the mingw compiler under MS Windows XP. Mingw is a release of the GNU C++ compiler for Windows. Codeblocks is a superb open source integrated development environment. I also used TinyXML to load Blender scene files (the "level" layout) which are stored in XML format. I chose the Bullet Physics library for physics functions because it is actively developed and it is open source. Since 2006 they have added some very impressive features including multi-threading support, Physics on the GPU examples, softbody and cloth physics, and a basic character controller demo. There are versions of the library for various platforms including game consoles, and even for the iPhone.