[Solved] Adjusting Mesh Before attaching to Character

JoshPendergrass

19-10-2007 06:53:20

Is there a way to adjust(roll/rotate) a mesh before attaching it to a character?
Problem I'm having is when I export from 3dmax then load the meshes they are loading at strange angles some times sideways or 45 degrees or upside down. What I'm doing now is making a child node for the character and adjusting it through the child.
Was trying to find a more efficient / clean way to do this.

Any help is appreciated.
Thanks

betajaen

19-10-2007 08:04:03

There is a tool called MeshMagick by haffax you could use.

http://www.ogre3d.org/phpBB2/viewtopic.php?t=32352

JoshPendergrass

19-10-2007 21:56:44

Thanks betajean.
Problem solved :)

katzenjoghurt

20-10-2007 10:27:07

Argh.... ...great tool. Always ignored this exe in the Command Line Tool folder. :roll:

Had that fight yesterday.

solved it by:

Quaternion spin;
spin.FromAngleAxis(Degree(90), Vector3(1,0,0));
NxOgre::ShapeParams sp;
sp.setToDefault();
sp.mLocalPose = NxOgre::Pose(spin).toMat34();
sp.mMeshScale = NxVec3(1,1,1);

NxOgre::TriangleMeshShape* terrainTriMesh = new NxOgre::TriangleMeshShape("terraincollimesh.mesh", sp);