Here is what I have:
Code: Select all
scene::IAnimatedMesh *mesh = smgr->getMesh("../../media/enemy.X");
scene::IAnimatedMeshSceneNode *node = smgr->addAnimatedMeshSceneNode( mesh );
if(node)
{
node->setMaterialFlag(video::EMF_LIGHTING, false);
}
Here is the top part of my enemy.X file maybe something is wrong with it.
xof 0302txt 0064
template Header {
<3D82AB43-62DA-11cf-AB39-0020AF71E433>
WORD major;
WORD minor;
DWORD flags;
}
template Vector {
<3D82AB5E-62DA-11cf-AB39-0020AF71E433>
FLOAT x;
FLOAT y;
FLOAT z;
}
template Coords2d {
<F6F23F44-7686-11cf-8F52-0040333594A3>
FLOAT u;
FLOAT v;
}