I just noticed that .ms3d models result mirrored in my application. If I export the same models, without any modification in .md2 format they look right, but whenever I load a .ms3d model it will be horizontally flipped. (Applied textures are mirrored too).
Does it happen just to me?
Mirrored meshes?
-
madinitaly
- Posts: 92
- Joined: Sat Nov 29, 2003 8:30 pm
- Contact:
-
madinitaly
- Posts: 92
- Joined: Sat Nov 29, 2003 8:30 pm
- Contact:
-
madinitaly
- Posts: 92
- Joined: Sat Nov 29, 2003 8:30 pm
- Contact:
* FIX *
Here is the code to (temporarily, I presume
) fix the mirroring bug:

Code: Select all
scene::IAnimatedMesh mymesh = smgr->getMesh ("mymesh.ms3d");
smgr->getMeshManipulator ()->flipSurfaces (mymesh->getMesh (0));
scene::IAnimatedMeshSceneNode mynode =
smgr->addAnimatedMeshSceneNode (mymesh);
mynode->setScale (core::vector3df (-1, 1, 1));