DaveWebster
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:
http://dave-webster.com/downloads/ogre_ ... e_test1.py
and a Flash frame capture of the demo is here:
http://dave-webster.com/downloads/ogre_ ... _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.
Dave
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:
http://dave-webster.com/downloads/ogre_ ... e_test1.py
and a Flash frame capture of the demo is here:
http://dave-webster.com/downloads/ogre_ ... _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.
Dave