pyOgre and PyODE example


30-01-2006 16:50:51

A few days ago I finally managed to get pyODE and pyOgre working together.

The problem I have been having is that the default cube mesh is 100x100x100 and not 1x1x1, as I originally thought. This meant that the cube would look like it was sinking into the ground. After I told ODE that the cube was 100x100x100 things behaved a lot better :)

After this, I thought I'd post my example code, and possibly write a tutorial later, as I've not seen many examples of pyode and pyogre working together oin the web. The example consists of a ground plane with a sphere on it. A sphere is dropped from higher up and right a bit. Sphere B then hits cube A, begins to spin and then bounces around the ground for a bit.

The python file is here: ...

and a Flash frame capture of the demo is here: ... _test1.swf

Hope this may be of use to someone :)

My next aim is to learn Blender 3D and see about importing a scene, lights and objects into ogre and ode with collision detections.



30-01-2006 17:53:30

Awesome; integrating pyode with pyogre is exactly what I'm hoping to do once I got pyogre up and running. I would be pretty excited if you do end up doing a full tutorial.

Thanks for posting,
-- Matt


30-01-2006 19:58:25

Sweet! This is definitely useful stuff. Thanks for posting it.

(BTW, you should put the file/tutorial on the wiki so it won't get lost.) ;)


30-01-2006 20:23:55

No problems :o


28-10-2006 09:52:21

Hey, just wanna say thanks for creating such a need tutorial for us beginnners.

Btw, maybe it's better practice in object-oriented terms, to encapsulate both the node and dBody/dGeom into one class as done in ogreOde.

Have you expended on this tute already? We'd love to see some joints too.

:P :P :P


28-10-2006 16:48:23

This is exactly what I was looking for in my post earlier. Although I am wondering if there is anything other than PyODE that does dynamics in python.