Ragdoll scaling issue

seanm92

07-03-2007 18:03:51

hello,

For the ragdoll demo I changed the mesh from zombie to robot. However when I shoot the robots the scale of the robots seem to back to 1,1,1 instead of .1,.1,.1

any ideas now how to correct would be grealty appreciated.

Sean

Oozie

07-03-2007 18:53:23

Can you tell me what lines did you change?
When I tried to change the zombie into robot mesh, it didn't work at all.

Also, there doesn't seem to be .material file for the robot...

seanm92

09-03-2007 20:15:40

In the zombie.h code
search for:
static size_t sSelectedMesh = 0;
change it to = 3;

notice the struct
static const String xmlNames[] = {
"zombie",
"zombie",
"ninja",
"robot"
};
static const String meshNames[] = {
"zombie_small.mesh",
"zombie_small.mesh",
"ninja.mesh",
"robot.mesh"
};
static const String meshAnimation [] = {
"Walk1",
"Walk1",
"Walk",
"Walk"
};
static const Ogre::Vector3 meshScale [] = {
Ogre::Vector3(1.0, 1.0, 1.0),
Ogre::Vector3(1.0, 1.0, 1.0),
Ogre::Vector3(0.02, 0.02, 0.02),
Ogre::Vector3(0.10, 0.10, 0.10)
};
static const String ragdollFile [] = {
"zombie.ogreode",
"zombie_auto.ogreode",
"ninja.ogreode",
"robot.ogreode"
};

that is why the varible is used to easyily move from one mech to another.

The robot.mesh and material files are in the ogre directory not the ogreode directory.

Sean

Oozie

13-03-2007 18:46:24

Oh yeah, thanks for the help.
When I shoot the robots, their mesh kind of "explodes".
There seems to be some problem when the robot goes physical and is animated in ode.

Do they only get bigger with you?

I would like to solve this issue. Did you get it to work?

seanm92

14-03-2007 13:36:03

I'm probably get the same error effect that you are. I think it has to do with scaleing becasue if you change the scale :

static const Ogre::Vector3 meshScale [] = {
Ogre::Vector3(1.0, 1.0, 1.0),
Ogre::Vector3(1.0, 1.0, 1.0),
Ogre::Vector3(0.02, 0.02, 0.02),
Ogre::Vector3(0.10, 0.10, 0.10)

to

static const Ogre::Vector3 meshScale [] = {
Ogre::Vector3(1.0, 1.0, 1.0),
Ogre::Vector3(1.0, 1.0, 1.0),
Ogre::Vector3(0.02, 0.02, 0.02),
Ogre::Vector3(1.0, 1.0, 1.0)

they don't explode but the robots are huge. I would love to solve this issue too but I haven't figured it out yet. Is there anyone out there that has solved this problem?

Sean

Oozie

14-03-2007 16:10:53

Hey thanks, that looks already better! But it's still a mystery how we can get the proper sized robots without the mesh "exploding".. I wonder if the mesh and collision box scaling is properly synchronized.

Anyway, first I try to create my own ragdoll.
No luck with Maya: Ogre crashes when loading the .skeleton-file.
Next up: Blender created ragdoll.