Wednesday, March 16, 2011

Use Irrlicht with the bullet physics engine

This is mainly collected from other peoples work.

First you must install the irrlicht and bullet frameworks.  I use bullet v2.77
[CODE]cd path/to/bullet
mkdir bullet-build
cd bullet-build
cmake .. -G "Unix Makefiles" -DINSTALL_LIBS=ON -DBUILD_SHARED_LIBS=ON -DFRAMEWORK=ON \
-DCMAKE_OSX_ARCHITECTURES='i386;x86_64' -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/Library/Frameworks -DCMAKE_INSTALL_NAME_DIR=/Library/Frameworks \
-DBUILD_DEMOS:BOOL=OFF
make -j4
sudo make install[/CODE]

Example xCode project

Monday, March 7, 2011

Irrlicht XCode templates

You can now build Irrlicht as a framework on MacOS X.  You can download a precomputed framework of 1.7.2 here.  To compile your own, download this, and place it in the folder containing the sourecode.  Then, comment out #define _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ in IrrCompileConfig.h  Open the XCode project in the irrlicht-mac-osx-framework-xcodeproject folder.  Once you have have built and installed, XCode templates are available here.

The Irrlicht framework can only be built for ppc and i386