I want to make a game what uses MD3 models.
But the MD3 models are seperated to 3 parts, head, upper,lower.
how can I attach it?
I was searching a lot, but didn't find the answer.
i found that:
Code: Select all
head->getMD3Tag
Code: Select all
head->getMD3TagTransformation
so, how can i attach them?
and an other:
can i make tags? so, don't just head torso, legs, and weapon, but more? like clothes, or accessaries. or how can i do it( if don't tag)?
thanks
edit: ohh, and i have an other problem:
Code: Select all
IAnimatedMesh* model1 = smgr->getMesh("captiana\\head.md3");
Unhandled exception at 0x1002999d (Irrlicht.dll) in TPS.exe: 0xC0000005: Access violation reading location 0xcdcdcdd5.
Code: Select all
//! deallocate memory for an array of objects
void deallocate(T* ptr)
{
internal_delete(ptr);
}
the MD3 model (just the upper ^^; ) doesn't want to move..
Code: Select all
body = smgr->addAnimatedMeshSceneNode(smgr->getMesh("captiana\\upper.md3"));
body->setMaterialTexture(0,driver->getTexture("captiana\\blue.tga"));
body->setMaterialFlag(EMF_LIGHTING,false);
body->setPosition(vector3df(-70,-60,0));
ISceneNodeAnimator *anim =
device->getSceneManager()->createFlyStraightAnimator(vector3df(-200,-40,0),vector3df(200,-40,0),2000,true);
body->addAnimator(anim);
anim->drop();