minimum example

lexex

25-01-2007 21:20:57

Hi,

would anybody be so kind and write a minimal OgreOde App like having a ball on an Infiniteplane and publish it here? Right now I do not see the necessary steps to get going and the demos are too big( tried to take code of them but I just ended up with exceptions - no matter what I tried)

Please this would be sooo great :D !!!!!

konsumer

03-02-2007 23:57:10

I made a simple demo.

It is not an example of the right way to do things, by any means (I am a total Ogre/ODE/ogreode newbie, and used the making of this as a learning process, myself) but it should get you started. I put all the physics stuff in one class. Look at the comments for more info.

It uses a physics.cfg file to mess around with your physics settings (for tweaking things and seeing what they do without re-compiling) and uses ball.mesh from the ogreode demos, make sure this is in your media dir, along with ball.png and ball.material.

Included is a simple scons script for compiling on linux that uses pkg-config and a nice search-replace function to make resources and plugins cfg files. Use it as reference to setup your environment.

It was tested on Linux (ubuntu unstable) with Ogre Eihort (CVS,) ogreode from CVS, ODE 0.8.-rc1, and OIS 1.0.0.

Hope it helps.