[SOLVED with meshMagick] Ogre scale != collision scale

neoranga

21-04-2009 16:10:59

Hello,
I have the scale problem,
I make a model with Google sketchup, export as collada, then import in blender, then export as ogre mesh.

When i scale the model in blender, nothing happens in ogre,
when i scale in ogre, this works but the collision tree does not scale the collision,

does someone know how to scale a model before importing in ogre because the way i make it in blender does not work.

maybe there is a tool to scale a .mesh file ?

all i can say is that collision tree works perfectly, but i dont want to trick by increasing gravity.

[attachment=0]scale.jpg[/attachment]

Zero23

21-04-2009 20:27:40

Look here http://www.ogre3d.org/wiki/index.php/MeshMagick
May this help you ;)

Zero

melven

21-04-2009 21:46:10

Concerning the scaling of the collisions:
The collisions in ogrenewt cannot be rescaled automatically... So the collision is scaled with the scale that is set when creating the collision.
The correct order to create a collision for a scaled node/entity:

create node, entity...
attach the entity to the node
scale the node
create a collision from node/entity
create a body with the collision
attach the node to the body

neoranga

22-04-2009 04:52:06

Thanks to you 2 for these fast answers.

I was trying to do the same thing with nxOgre since a week, with the mesh cooking functions but didnt manage to get anything.

OgreNewt is so far easier to use.