Loading ODE::World with oSceneloader

simdevode

21-09-2006 01:28:55

I have a OSM file through which I load all my static models (chairs, walls etc.). So, would I need to attach body to each object or there's an alternative?

syedhs

21-09-2006 05:04:05

OgreOde::Body is only needed for rigid body ie sphere body that get rolled when you hit it. Otherwise, objects like houses which will never move regardless of how you hit them should be represented as static boxes (or static trimeshes if you combine all the non-movable entities into one). Generally, I combine all trees, buildings into one huge trimesh so that the performance is at its best. But it is done with sacrifising probably a few features like the ability to produce different sound when you hit tree, and another different sound when you hit building for example.

simdevode

21-09-2006 05:59:58

Thanks syedhs. I have a character with animations with its corresponding .skeleton file, and a bunch of animation mesh files. What would be a good way to add geometry and body to the character?

OgreOde::Body is only needed for rigid body ie sphere body that get rolled when you hit it. Otherwise, objects like houses which will never move regardless of how you hit them should be represented as static boxes (or static trimeshes if you combine all the non-movable entities into one). Generally, I combine all trees, buildings into one huge trimesh so that the performance is at its best. But it is done with sacrifising probably a few features like the ability to produce different sound when you hit tree, and another different sound when you hit building for example.

tuan kuranes

21-09-2006 10:25:56

check Wiki about OgreOde walking character :
http://www.ogre3d.org/wiki/index.php/OgreOde
Check OgreOde SimpleScene demo about ragdolls.