with the last exporter I have tried to load in mine programs some DirectX armature animations made with blender with good results except that strangely it seems I must multiply the frame numbers in setFrameLoop by a factor of about 200: this is an example of what I have done in the following code fragment
Considering that in Blender my Gus animation has 40 frames only somebody knows what may be the cause for this?
mesh_pupazzo = smgr->getMesh("media/Gus.x");
nodo_pupazzo = smgr->addAnimatedMeshSceneNode( mesh_pupazzo );
if (nodo_pupazzo) // If pupazzo exists
{
nodo_pupazzo->setScale(core::vector3df(60, 60.0f, 60));
nodo_pupazzo->setPosition(core::vector3df(pupa_x, pupa_y, pupa_z));
nodo_pupazzo->setMaterialFlag(EMF_LIGHTING, false);
//To play the first 20 frames: nodo_pupazzo->setFrameLoop(200, 4000);
//To play all the frames:
nodo_pupazzo->setFrameLoop(200, 8000);
//the triangle selector for pupazzo
sele_pupazzo = smgr->createOctTreeTriangleSelector(mesh_pupazzo->getMesh(0), nodo_pupazzo, 128);
nodo_pupazzo->setTriangleSelector(sele_pupazzo);
sele_pupazzo->drop();
}