Error with ISkinnedMesh and attach object
Posted: Sun Jul 19, 2009 4:04 am
hi!,
i have a error when attach an object with a ISkinnedMesh in a jointNode.
The white object was attached to the shoulder of the character.
Sampling error for this video:
http://www.youtube.com/watch?v=6hBQP4766Cw
How can I fix this?
this is the code:
....
mesh = (ISkinnedMesh*)game->smgr->getMesh("mesh.x");
node = game->smgr->addAnimatedMeshSceneNode(mesh);
node->setJointMode(E_JOINT_UPDATE_ON_RENDER::EJUOR_CONTROL);
mesh->setInterpolationMode(E_INTERPOLATION_MODE::EIM_CONSTANT);
sl= smgr->addAnimatedMeshSceneNode(game->smgr->getMesh("sl.3ds"));
sl->setParent(node->getJointNode("Bip01_Shoulder"));
......
thanks.
i have a error when attach an object with a ISkinnedMesh in a jointNode.
The white object was attached to the shoulder of the character.
Sampling error for this video:
http://www.youtube.com/watch?v=6hBQP4766Cw
How can I fix this?
this is the code:
....
mesh = (ISkinnedMesh*)game->smgr->getMesh("mesh.x");
node = game->smgr->addAnimatedMeshSceneNode(mesh);
node->setJointMode(E_JOINT_UPDATE_ON_RENDER::EJUOR_CONTROL);
mesh->setInterpolationMode(E_INTERPOLATION_MODE::EIM_CONSTANT);
sl= smgr->addAnimatedMeshSceneNode(game->smgr->getMesh("sl.3ds"));
sl->setParent(node->getJointNode("Bip01_Shoulder"));
......
thanks.