Graphics , Newton for Physics and Audiere for sound.It will be done in not more than 2 minutes, so that beginners get started with learning about game engine rather wandering wastefully in the forums and web.
On To how to integrate audiere with OGRE , see my tutorial elsewhere in forum “Adding Sound to OGRE in 2 Seconds : Tutorial” or go to this link
http://www.ogre3d.org/phpBB2/viewtopic.php?t=18176
Now we are left with integrating Physics,
Unpack NewtonSDK,
In Anjuta(Linux), Go Settings->CompilerandLinkerSettings and add full path to include and library paths . I had for e.g. /home/rohit/newtonSDK/sdk
In Libraries ,
Add Newton (Youll see OgreMain and audiere already there if you followed the tutorial)
Now to your main.cc file add statement1 2 and 3 (from my OGRE+audiere tutorial)
Or simply paste following code.
#include "ExampleApplication.h"
#include “Newton.h” //statement1
#include “audiere.h”
using namespace audiere;
static NewtonWorld *myworld; //statement2
AudioDevicePtr device(OpenDevice());
OutputStreamPtr song(OpenSound(device,”songname.mp3orwhatever”,false));
class Game : public ExampleApplication
{
void createScene()
{
Entity *robo;
robo = mSceneMgr->createEntity( "Robot", "robot.mesh" );
SceneNode *node1;
node1= mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode" );
node1->attachObject( robo );
song->setVolume(0.5f);
song->play();
}
};
int main()
{
myworld=NewtonCreate(NULL,NULL); //statement3
Game mygame;
mygame.go();
return 0;
}
Build and Execute .
Obviously , this will do nothing else than creating a pointer to Newton world and creating it . But if all works then you have a full fledged GameEngine in your hands
On windows (say devcpp) procedure should be same as far as including header files and libraries paths are concerned.
***Remember to make your examples in newtonsdk by typing make in the samples folder to explore possibilities***
***Tips---OGRE+audiere can be easily used to create Great Animated Music Videos and
OGRE+Newton+Audiere = FullBlownGameEngine
I hope It gets Some of You Started in the World of game programming
in no time.
Any Doubts
GoodBye !
