Irrlicht bullet: Difference between revisions

From RpWiki
Jump to navigationJump to search
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 2: Line 2:


== Info ==
== Info ==
This is a small test application using c++, [http://irrlicht.sourceforge.net/ Irrlicht 3d engine] and the [http://www.bulletphysics.com/ bullet physics engine].
This is a small test application using c++, [http://irrlicht.sourceforge.net/ Irrlicht 3d engine], the [http://www.bulletphysics.com/ bullet physics engine] and [http://www.lua.org lua].


You can shoot cubes onto a plane surface and watch them collide.
You can shoot cubes onto a plain surface and watch them collide.


=== Control ===
=== Control ===
Navigate with the cursor keys and shoot with the left mouse button.
  * cursor keys           Navigate
 
  * left mouse button     Shoot
To exit hit ESCAPE.
  * mouse wheel          Increase/Decrease shooting strength
  * F3                    Show/Hide lua editor
  * F5                    Run lua script (reset scene)
  * ESCAPE               Quit application


== Building ==
== Building ==
You will need the Irrlicht library to compile the sample program, you can get it on the [http://irrlicht.sourceforge.net/ Irrlicht] homepage.
You will need the Irrlicht library to compile the sample program, you can get it on the [http://irrlicht.sourceforge.net/ Irrlicht] homepage.
After this you have to set the right library path in the [http://git.oldsch00l.com/?p=irrlicht_bullet.git;a=blob;f=CMakeLists.txt;h=1e6414ff4363c0b3653b293d8bace086cc1b1550;hb=83856bdfdd2c91024f047d7254cb1fdc5e43fde1#l114 CMakeLists.txt] file.
After this you have to set the right library path in the [http://git.oldsch00l.com/?p=irrlicht_bullet.git;a=blob;f=CMakeLists.txt;hb=HEAD#l21 CMakeLists.txt] file.


=== Linux ===
=== Linux ===
On a debian based systems try this to solve building dependencies (tested on kubuntu):
On a debian based systems try this to solve building dependencies (tested on kubuntu):
   apt-get install build-essential cmake
   apt-get install build-essential cmake lua5.1-dev


To build use these commands in the irrlicht_bullet directory:
To build use these commands in the irrlicht_bullet directory:
Line 35: Line 38:


Then open the solution within your visual studio and build it.
Then open the solution within your visual studio and build it.
With -g you can specify a lot of different generators, for more help run cmake.exe or check the documentation.
With -g you can specify a lot of different generators(mingw, codeblocks, ...), for more help run cmake.exe or check the documentation.
 
==== Binary ====
[http://rp.oldsch00l.com/tmp/irrlicht_bullet_win32.rar Here] is a link to a binary distribution from 11 May 2010.


== Source Code ==
== Source Code ==

Latest revision as of 10:28, 11 May 2010

irrlicht_bullet

Info

This is a small test application using c++, Irrlicht 3d engine, the bullet physics engine and lua.

You can shoot cubes onto a plain surface and watch them collide.

Control

 * cursor keys           Navigate
 * left mouse button     Shoot
 * mouse wheel           Increase/Decrease shooting strength
 * F3                    Show/Hide lua editor
 * F5                    Run lua script (reset scene)
 * ESCAPE                Quit application

Building

You will need the Irrlicht library to compile the sample program, you can get it on the Irrlicht homepage. After this you have to set the right library path in the CMakeLists.txt file.

Linux

On a debian based systems try this to solve building dependencies (tested on kubuntu):

 apt-get install build-essential cmake lua5.1-dev

To build use these commands in the irrlicht_bullet directory:

 mkdir build
 cd build
 cmake ../.

Windows

Download and install CMake. Check that cmake is in your PATH, if not add it.

Open a cmd "shell" and navigate to your checked out irrlicht_bullet directory. than issue following commands:

 mkdir build
 cd build
 cmake -g "Visual Studio 8 2005" ..\.

Then open the solution within your visual studio and build it. With -g you can specify a lot of different generators(mingw, codeblocks, ...), for more help run cmake.exe or check the documentation.

Binary

Here is a link to a binary distribution from 11 May 2010.

Source Code

gitweb viewer: irrlicht_bullet

 git clone http://git.oldsch00l.com/irrlicht_bullet.git